Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
solo
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
solo
Commits
1708b2e3
Commit
1708b2e3
authored
Jan 21, 2013
by
Vanessa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
timeline index
parent
ead17c8d
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
144 additions
and
37 deletions
+144
-37
war/src/main/webapp/skins/timeline/article-list.ftl
war/src/main/webapp/skins/timeline/article-list.ftl
+16
-12
war/src/main/webapp/skins/timeline/css/timeline.css
war/src/main/webapp/skins/timeline/css/timeline.css
+66
-3
war/src/main/webapp/skins/timeline/footer.ftl
war/src/main/webapp/skins/timeline/footer.ftl
+2
-2
war/src/main/webapp/skins/timeline/header.ftl
war/src/main/webapp/skins/timeline/header.ftl
+3
-11
war/src/main/webapp/skins/timeline/images/icons.png
war/src/main/webapp/skins/timeline/images/icons.png
+0
-0
war/src/main/webapp/skins/timeline/index.ftl
war/src/main/webapp/skins/timeline/index.ftl
+3
-7
war/src/main/webapp/skins/timeline/js/timeline.js
war/src/main/webapp/skins/timeline/js/timeline.js
+51
-0
war/src/main/webapp/skins/timeline/lang/lang_en_US.properties
...src/main/webapp/skins/timeline/lang/lang_en_US.properties
+1
-0
war/src/main/webapp/skins/timeline/lang/lang_zh_CN.properties
...src/main/webapp/skins/timeline/lang/lang_zh_CN.properties
+2
-1
war/src/main/webapp/top-bar.ftl
war/src/main/webapp/top-bar.ftl
+0
-1
No files found.
war/src/main/webapp/skins/timeline/article-list.ftl
View file @
1708b2e3
...
@@ -7,11 +7,7 @@
...
@@ -7,11 +7,7 @@
<div class="arrow"></div>
<div class="arrow"></div>
<time>
<time>
<span>
<span>
<#if article.hasUpdated>
${article.articleUpdateDate?string("yy-MM-dd HH:mm")}
<#else>
${article.articleCreateDate?string("yy-MM-dd HH:mm")}
${article.articleCreateDate?string("yy-MM-dd HH:mm")}
</#if>
</span>
</span>
</time>
</time>
<h2>
<h2>
...
@@ -28,23 +24,31 @@
...
@@ -28,23 +24,31 @@
${topArticleLabel}
${topArticleLabel}
</sup>
</sup>
</#if>
</#if>
<a rel="nofollow" href="${servePath}${article.articlePermalink}">
${article.articleViewCount} ${viewLabel}
</a>
</h2>
</h2>
<p>
<p>
${article.articleAbstract}
${article.articleAbstract}
</p>
</p>
<span class="ico-author">
<span class="ico-tags" title="${tagLabel}">
<a rel="author" href="${servePath}/authors/${article.authorId}">${article.authorName}</a>
</span>
<span class="ico-tags">
<#list article.articleTags?split(",") as articleTag><a rel="category tag" href="${servePath}/tags/${articleTag?url('UTF-8')}">${articleTag}</a><#if articleTag_has_next>,</#if></#list>
<#list article.articleTags?split(",") as articleTag><a rel="category tag" href="${servePath}/tags/${articleTag?url('UTF-8')}">${articleTag}</a><#if articleTag_has_next>,</#if></#list>
</span>
</span>
<span class="ico-comment">
<span class="ico-author" title="${authorLabel}">
<a rel="author" href="${servePath}/authors/${article.authorId}">${article.authorName}</a>
</span>
<span class="ico-comment" title="${commentLabel}">
<#if article.articleCommentCount == 0>
<a rel="nofollow" href="${servePath}${article.articlePermalink}#comments">
${noCommentLabel}
</a>
<#else>
<a rel="nofollow" href="${servePath}${article.articlePermalink}#comments">
<a rel="nofollow" href="${servePath}${article.articlePermalink}#comments">
${article.articleCommentCount}
${article.articleCommentCount}
</a>
</a>
</#if>
</span>
<span class="ico-view" title="${viewLabel}">
<a rel="nofollow" href="${servePath}${article.articlePermalink}">
${article.articleViewCount}
</a>
</span>
</span>
</div>
</div>
</article>
</article>
...
...
war/src/main/webapp/skins/timeline/css/timeline.css
View file @
1708b2e3
...
@@ -57,6 +57,7 @@ a:hover {
...
@@ -57,6 +57,7 @@ a:hover {
img
{
img
{
max-width
:
100%
;
max-width
:
100%
;
vertical-align
:
middle
;
}
}
::selection
{
::selection
{
...
@@ -222,14 +223,18 @@ img {
...
@@ -222,14 +223,18 @@ img {
.articles
.arrow
,
.articles
.arrow
,
.ico-author
,
.ico-author
,
.ico-tags
,
.ico-tags
,
.ico-comment
{
.ico-comment
,
.ico-top
,
.ico-view
,
#search
{
background-repeat
:
no-repeat
;
background-repeat
:
no-repeat
;
background-image
:
url("../../timeline/images/icons.png")
;
background-image
:
url("../../timeline/images/icons.png")
;
}
}
.ico-author
,
.ico-author
,
.ico-tags
,
.ico-tags
,
.ico-comment
{
.ico-comment
,
.ico-view
{
padding-left
:
20px
;
padding-left
:
20px
;
background-position
:
-1px
-63px
;
background-position
:
-1px
-63px
;
margin-right
:
10px
;
margin-right
:
10px
;
...
@@ -242,6 +247,41 @@ img {
...
@@ -242,6 +247,41 @@ img {
.ico-comment
{
.ico-comment
{
background-position
:
-1px
-41px
;
background-position
:
-1px
-41px
;
}
}
.ico-view
{
background-position
:
0
-122px
;
}
#search
{
background-position
:
5px
-138px
;
border
:
medium
none
;
border-radius
:
12px
12px
12px
12px
;
box-shadow
:
0
1px
0
rgba
(
0
,
0
,
0
,
0.4
)
inset
,
0
1px
0
rgba
(
255
,
255
,
255
,
0.1
);
color
:
#A5A099
;
height
:
22px
;
margin-top
:
14px
;
padding-left
:
25px
;
transition
:
width
0.7s
ease
0s
;
width
:
60px
;
}
#search
:focus
{
color
:
#333
;
width
:
140px
;
}
.ico-top
{
background-color
:
#363A3D
;
background-position
:
4px
-100px
;
border-radius
:
20em
20em
20em
20em
;
bottom
:
60px
;
box-shadow
:
0
-1px
2px
rgba
(
0
,
0
,
0
,
0.3
)
inset
,
0
1px
0
rgba
(
255
,
255
,
255
,
0.15
);
height
:
25px
;
position
:
fixed
;
left
:
90%
;
width
:
25px
;
cursor
:
pointer
;
}
/* end icon */
/* end icon */
/* start framework */
/* start framework */
...
@@ -281,6 +321,28 @@ img {
...
@@ -281,6 +321,28 @@ img {
}
}
/* end framework */
/* end framework */
/* start header */
.header
.title
{
font-size
:
150%
;
margin
:
3px
0
0
;
}
.header
a
{
color
:
#414141
;
text-shadow
:
0
1px
0
rgba
(
255
,
255
,
255
,
0.7
);
}
.header
a
:hover
{
color
:
#000
;
}
.header
li
{
float
:
left
;
list-style-type
:
none
;
margin-right
:
20px
;
}
/* end header */
/* start article list */
/* start article list */
.articles
{
.articles
{
position
:
relative
;
position
:
relative
;
...
@@ -309,6 +371,7 @@ img {
...
@@ -309,6 +371,7 @@ img {
border-radius
:
5px
5px
5px
5px
;
border-radius
:
5px
5px
5px
5px
;
margin-bottom
:
20px
;
margin-bottom
:
20px
;
padding
:
15px
;
padding
:
15px
;
box-shadow
:
0
1px
1px
rgba
(
0
,
0
,
0
,
0.1
);
}
}
.articles
>
article
.l
>
div
{
.articles
>
article
.l
>
div
{
...
@@ -351,7 +414,7 @@ img {
...
@@ -351,7 +414,7 @@ img {
}
}
.articles
>
article
time
{
.articles
>
article
time
{
top
:
-
10
px
;
top
:
-
8
px
;
left
:
50%
;
left
:
50%
;
position
:
absolute
;
position
:
absolute
;
}
}
...
...
war/src/main/webapp/skins/timeline/footer.ftl
View file @
1708b2e3
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
<div class="clear"></div>
<div class="clear"></div>
</div>
</div>
</div>
</div>
<div
id="goTop" onclick="Util.goTop()">TOP
</div>
<div
class="ico-top none" onclick="Util.goTop()" title="TOP">
</div>
<script type="text/javascript">
<script type="text/javascript">
var latkeConfig = {
var latkeConfig = {
"servePath": "${servePath}",
"servePath": "${servePath}",
...
@@ -40,7 +40,7 @@
...
@@ -40,7 +40,7 @@
};
};
var Label = {
var Label = {
"tag
1Label": "${tag1
Label}",
"tag
Label": "${tag
Label}",
"viewLabel": "${viewLabel}",
"viewLabel": "${viewLabel}",
"commentLabel": "${commentLabel}",
"commentLabel": "${commentLabel}",
"topArticleLabel": "${topArticleLabel}",
"topArticleLabel": "${topArticleLabel}",
...
...
war/src/main/webapp/skins/timeline/header.ftl
View file @
1708b2e3
<div class="header">
<div class="header">
<div class="wrapper fn-clear">
<div class="wrapper fn-clear">
<div class="left">
<div class="left">
<h1>
<h1
class="title"
>
<a href="${servePath}">
<a href="${servePath}">
${blogTitle}
${blogTitle}
</a>
</a>
</h1>
</h1>
<span>${blogSubtitle}</span>
<span>${blogSubtitle}</span>
</div>
</div>
<#if "" != noticeBoard>
<div class="left">
${noticeBoard}
</div>
</#if>
<ul class="left">
<ul class="left">
<li>
<a rel="nofollow" href="${servePath}/">${indexLabel}</a>
</li>
<#list pageNavigations as page>
<#list pageNavigations as page>
<li>
<li>
<a href="${page.pagePermalink}" target="${page.pageOpenTarget}">${page.pageTitle}</a>
<a href="${page.pagePermalink}" target="${page.pageOpenTarget}">${page.pageTitle}</a>
...
@@ -35,10 +27,10 @@
...
@@ -35,10 +27,10 @@
<a href="${servePath}/links.html">${linkLabel}</a>
<a href="${servePath}/links.html">${linkLabel}</a>
</li>
</li>
<li>
<li>
<a rel="alternate" href="${servePath}/blog-articles-feed.do">Atom<img src="${staticServePath}/images/feed.png" alt="Atom"/></a>
<a rel="alternate" href="${servePath}/blog-articles-feed.do">Atom
<img src="${staticServePath}/images/feed.png" alt="Atom"/></a>
</li>
</li>
</ul>
</ul>
<form target="_blank" method="get" action="http://www.google.com/search">
<form
class="right"
target="_blank" method="get" action="http://www.google.com/search">
<input id="search" type="text" name="q" />
<input id="search" type="text" name="q" />
<input type="submit" name="btnG" value="" class="none" />
<input type="submit" name="btnG" value="" class="none" />
<input type="hidden" name="oe" value="UTF-8" />
<input type="hidden" name="oe" value="UTF-8" />
...
...
war/src/main/webapp/skins/timeline/images/icons.png
View replaced file @
ead17c8d
View file @
1708b2e3
1.45 KB
|
W:
|
H:
2.46 KB
|
W:
|
H:
2-up
Swipe
Onion skin
war/src/main/webapp/skins/timeline/index.ftl
View file @
1708b2e3
...
@@ -15,17 +15,13 @@
...
@@ -15,17 +15,13 @@
</div>
</div>
<
#include
"
footer
.
ftl
"
>
<
#include
"
footer
.
ftl
"
>
<script>
<script>
var
timeline
=
{
timeline
.
$articles
=
$
(
"
.articles
"
);
colH
:[
0
,
20
],
$articles
:
$
(
"
.articles
"
)
};
$
(
window
).
resize
(
function
()
{
$
(
window
).
resize
(
function
()
{
timeline
.
colH
=
[
0
,
20
];
timeline
.
colH
=
[
0
,
20
];
timeline
.
$articles
.
find
(
"
article
"
).
each
(
function
()
{
timeline
.
$articles
.
find
(
"
article
"
).
each
(
function
()
{
var
$it
=
$
(
this
),
var
$it
=
$
(
this
),
isLeft
=
timeline
.
colH
[
1
]
>
timeline
.
colH
[
0
],
isLeft
=
timeline
.
colH
[
1
]
>
timeline
.
colH
[
0
],
left
=
isLeft
?
0
:
parseInt
(
timeline
.
$articles
.
width
()
/
2
),
left
=
isLeft
?
0
:
Math
.
floor
(
timeline
.
$articles
.
width
()
/
2
),
top
=
isLeft
?
timeline
.
colH
[
0
]
:
timeline
.
colH
[
1
];
top
=
isLeft
?
timeline
.
colH
[
0
]
:
timeline
.
colH
[
1
];
$it
.
css
({
$it
.
css
({
"
left
"
:
left
+
"
px
"
,
"
left
"
:
left
+
"
px
"
,
...
@@ -44,7 +40,7 @@
...
@@ -44,7 +40,7 @@
timeline
.
$articles
.
height
(
timeline
.
colH
[
0
]
>
timeline
.
colH
[
1
]
?
timeline
.
colH
[
0
]
:
timeline
.
colH
[
1
]);
timeline
.
$articles
.
height
(
timeline
.
colH
[
0
]
>
timeline
.
colH
[
1
]
?
timeline
.
colH
[
0
]
:
timeline
.
colH
[
1
]);
});
});
$
(
window
).
resize
();
$
(
window
).
resize
();
$
(
window
).
resize
();
</script>
</script>
</body>
</body>
</html>
</html>
war/src/main/webapp/skins/timeline/js/timeline.js
View file @
1708b2e3
...
@@ -20,6 +20,55 @@
...
@@ -20,6 +20,55 @@
* @author <a href="mailto:LLY219@gmail.com">Liyuan Li</a>
* @author <a href="mailto:LLY219@gmail.com">Liyuan Li</a>
* @version 1.0.0.1, Jan 14, 2013
* @version 1.0.0.1, Jan 14, 2013
*/
*/
var
timeline
=
{
$articles
:
$
(
"
.articles
"
),
layoutArticleList
:
function
()
{
timeline
.
colH
=
[
0
,
20
];
timeline
.
$articles
.
find
(
"
article
"
).
each
(
function
()
{
var
$it
=
$
(
this
),
isLeft
=
timeline
.
colH
[
1
]
>
timeline
.
colH
[
0
],
left
=
isLeft
?
0
:
Math
.
floor
(
timeline
.
$articles
.
width
()
/
2
),
top
=
isLeft
?
timeline
.
colH
[
0
]
:
timeline
.
colH
[
1
];
$it
.
css
({
"
left
"
:
left
+
"
px
"
,
"
top
"
:
top
+
"
px
"
});
if
(
isLeft
)
{
$it
.
addClass
(
"
l
"
);
}
else
{
$it
.
addClass
(
"
r
"
);
}
timeline
.
colH
[(
isLeft
?
'
0
'
:
'
1
'
)]
+=
parseInt
(
$it
.
outerHeight
(
true
));
});
timeline
.
$articles
.
height
(
timeline
.
colH
[
0
]
>
timeline
.
colH
[
1
]
?
timeline
.
colH
[
0
]
:
timeline
.
colH
[
1
]);
},
initArticleList
:
function
()
{
$
(
window
).
resize
(
function
()
{
timeline
.
layoutArticleList
();
});
$
(
window
).
resize
();
$
(
window
).
resize
();
},
init
:
function
()
{
$
(
window
).
scroll
(
function
()
{
if
(
$
(
window
).
scrollTop
()
>
60
)
{
$
(
"
.ico-top
"
).
show
();
}
else
{
$
(
"
.ico-top
"
).
hide
();
}
});
if
(
$
(
"
.articles
"
).
length
===
1
)
{
timeline
.
initArticleList
();
}
}
};
var
goTranslate
=
function
()
{
var
goTranslate
=
function
()
{
window
.
open
(
"
http://translate.google.com/translate?sl=auto&tl=auto&u=
"
+
location
.
href
);
window
.
open
(
"
http://translate.google.com/translate?sl=auto&tl=auto&u=
"
+
location
.
href
);
};
};
...
@@ -28,4 +77,6 @@ var goTranslate = function () {
...
@@ -28,4 +77,6 @@ var goTranslate = function () {
Util
.
init
();
Util
.
init
();
Util
.
replaceSideEm
(
$
(
"
.recent-comments-content
"
));
Util
.
replaceSideEm
(
$
(
"
.recent-comments-content
"
));
Util
.
buildTags
(
"
tagsSide
"
);
Util
.
buildTags
(
"
tagsSide
"
);
timeline
.
init
();
})();
})();
\ No newline at end of file
war/src/main/webapp/skins/timeline/lang/lang_en_US.properties
View file @
1708b2e3
...
@@ -60,6 +60,7 @@ em12Label=Heart
...
@@ -60,6 +60,7 @@ em12Label=Heart
em13Label
=
Heart Broken
em13Label
=
Heart Broken
em14Label
=
Devil
em14Label
=
Devil
commentLabel
=
Comment
commentLabel
=
Comment
noCommentLabel
=
No Comment
viewLabel
=
View
viewLabel
=
View
authorLabel
=
Author
authorLabel
=
Author
previousPageLabel
=
Previous Page
previousPageLabel
=
Previous Page
...
...
war/src/main/webapp/skins/timeline/lang/lang_zh_CN.properties
View file @
1708b2e3
...
@@ -62,6 +62,7 @@ em12Label=\u7231\u5fc3
...
@@ -62,6 +62,7 @@ em12Label=\u7231\u5fc3
em13Label
=
\u
5fc3
\u
788e
em13Label
=
\u
5fc3
\u
788e
em14Label
=
\u
9b54
\u
9b3c
em14Label
=
\u
9b54
\u
9b3c
commentLabel
=
\u
8bc4
\u
8bba
commentLabel
=
\u
8bc4
\u
8bba
noCommentLabel
=
\u
65e0
\u
8bc4
\u
8bba
viewLabel
=
\u
6d4f
\u
89c8
viewLabel
=
\u
6d4f
\u
89c8
authorLabel
=
\u
4f5c
\u8005
authorLabel
=
\u
4f5c
\u8005
previousPageLabel=
\u
4e0a
\u
4e00
\u9875
previousPageLabel=
\u
4e0a
\u
4e00
\u9875
...
@@ -70,7 +71,7 @@ firstPageLabel=\u7b2c\u4e00\u9875
...
@@ -70,7 +71,7 @@ firstPageLabel=\u7b2c\u4e00\u9875
lastPageLabel=
\u6700\u
540e
\u
4e00
\u9875
lastPageLabel=
\u6700\u
540e
\u
4e00
\u9875
archive1Label=
\u
5b58
\u6863\u
ff1a
archive1Label=
\u
5b58
\u6863\u
ff1a
author1Label
=
\u
4f5c
\u8005\u
ff1a
author1Label
=
\u
4f5c
\u8005\u
ff1a
tag
1Label
=
\u6807\u
7b7e
\u
ff1a
tag
Label
=
\u6807\u
7b7e
sorryLabel
=
\u
5bf9
\u
4e0d
\u
8d77
\u
ff01
sorryLabel
=
\u
5bf9
\u
4e0d
\u
8d77
\u
ff01
notFoundLabel
=
\u
627e
\u
4e0d
\u5230\u
ff01
notFoundLabel
=
\u
627e
\u
4e0d
\u5230\u
ff01
returnTo1Label
=
\u
8fd4
\u
56de
\u
ff1a
returnTo1Label
=
\u
8fd4
\u
56de
\u
ff1a
...
...
war/src/main/webapp/top-bar.ftl
View file @
1708b2e3
...
@@ -7,7 +7,6 @@
...
@@ -7,7 +7,6 @@
background-image: -webkit-linear-gradient(#FFFFFF,#E5E5E5);
background-image: -webkit-linear-gradient(#FFFFFF,#E5E5E5);
filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0, startColorstr='#FFFFFF', endColorstr='#E5E5E5');
filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0, startColorstr='#FFFFFF', endColorstr='#E5E5E5');
border-bottom: 1px solid #E5E5E5;
border-bottom: 1px solid #E5E5E5;
height: 26px;
line-height: 26px;
line-height: 26px;
display: none;
display: none;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment