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
69b44ad2
Commit
69b44ad2
authored
Jan 28, 2013
by
Vanessa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
D,文章页面不能评论,首页无法使用 archivesDate,赶紧滴
parent
1a2bbdf9
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
170 additions
and
66 deletions
+170
-66
war/src/main/webapp/js/admin/latkeAdmin.js
war/src/main/webapp/js/admin/latkeAdmin.js
+12
-24
war/src/main/webapp/js/admin/latkeAdmin.min.js
war/src/main/webapp/js/admin/latkeAdmin.min.js
+1
-0
war/src/main/webapp/js/admin/pluginList.js
war/src/main/webapp/js/admin/pluginList.js
+12
-24
war/src/main/webapp/skins/timeline/css/timeline.css
war/src/main/webapp/skins/timeline/css/timeline.css
+32
-14
war/src/main/webapp/skins/timeline/header.ftl
war/src/main/webapp/skins/timeline/header.ftl
+10
-0
war/src/main/webapp/skins/timeline/index.ftl
war/src/main/webapp/skins/timeline/index.ftl
+67
-3
war/src/main/webapp/skins/timeline/js/timeline.js
war/src/main/webapp/skins/timeline/js/timeline.js
+36
-1
No files found.
war/src/main/webapp/js/admin/latkeAdmin.js
View file @
69b44ad2
...
...
@@ -3060,9 +3060,9 @@ admin.pluginList = {
datas
[
i
].
expendRow
+=
"
</a>
"
;
if
(
datas
[
i
].
setting
!=
"
{}
"
){
datas
[
i
].
expendRow
+=
"
<a href='javascript:void(0)' onclick=
\"
admin.pluginList.toSetting('
"
+
datas
[
i
].
oId
+
"
')
\"
>
"
+
Label
.
settingLabel
+
"
</a>
"
;
}
datas
[
i
].
expendRow
+=
"
<a href='javascript:void(0)' onclick=
\"
admin.pluginList.toSetting('
"
+
datas
[
i
].
oId
+
"
')
\"
>
"
+
Label
.
settingLabel
+
"
</a>
"
;
}
}
that
.
tablePagination
.
updateTablePagination
(
result
.
plugins
,
pageNum
,
result
.
pagination
);
...
...
@@ -3085,27 +3085,17 @@ admin.pluginList = {
data
:
JSON
.
stringify
(
requestJSONObject
),
success
:
function
(
result
,
textStatus
){
$
(
"
#tipMsg
"
).
text
(
result
.
msg
);
$
(
"
#PluginSetting
"
).
html
(
result
);
$
(
"
#PluginSetting
"
).
dialog
({
width
:
700
,
height
:
400
,
"
modal
"
:
true
,
"
hideFooter
"
:
true
});
=======
>>>>>>>
branch
'
0.5.6
'
of
https
:
//github.com/b3log/b3log-solo.git
$
(
"
#pluginSetting
"
).
html
(
result
);
$
(
"
#pluginSetting
"
).
dialog
(
"
open
"
);
=======
>>>>>>>
branch
'
0.5.6
'
of
https
:
//github.com/b3log/b3log-solo.git
$
(
},
$
(
"
#loadMsg
"
).
text
(
""
);
}
});
},
changeStatus
:
function
(
pluginId
,
status
)
{
$
(
"
#loadMsg
"
).
text
(
Label
.
loadingLabel
);
if
(
status
===
"
ENABLED
"
)
{
status
=
"
DISABLED
"
;
}
else
{
...
...
@@ -3134,13 +3124,11 @@ admin.pluginList = {
}
});
}
};
/*
* 注册到 admin 进行管理
*/
* 注册到 admin 进行管理
*/
admin
.
register
[
"
plugin-list
"
]
=
{
"
obj
"
:
admin
.
pluginList
,
"
init
"
:
admin
.
pluginList
.
init
,
...
...
war/src/main/webapp/js/admin/latkeAdmin.min.js
View file @
69b44ad2
This diff is collapsed.
Click to expand it.
war/src/main/webapp/js/admin/pluginList.js
View file @
69b44ad2
...
...
@@ -99,9 +99,9 @@ admin.pluginList = {
datas
[
i
].
expendRow
+=
"
</a>
"
;
if
(
datas
[
i
].
setting
!=
"
{}
"
){
datas
[
i
].
expendRow
+=
"
<a href='javascript:void(0)' onclick=
\"
admin.pluginList.toSetting('
"
+
datas
[
i
].
oId
+
"
')
\"
>
"
+
Label
.
settingLabel
+
"
</a>
"
;
}
datas
[
i
].
expendRow
+=
"
<a href='javascript:void(0)' onclick=
\"
admin.pluginList.toSetting('
"
+
datas
[
i
].
oId
+
"
')
\"
>
"
+
Label
.
settingLabel
+
"
</a>
"
;
}
}
that
.
tablePagination
.
updateTablePagination
(
result
.
plugins
,
pageNum
,
result
.
pagination
);
...
...
@@ -124,27 +124,17 @@ admin.pluginList = {
data
:
JSON
.
stringify
(
requestJSONObject
),
success
:
function
(
result
,
textStatus
){
$
(
"
#tipMsg
"
).
text
(
result
.
msg
);
$
(
"
#PluginSetting
"
).
html
(
result
);
$
(
"
#PluginSetting
"
).
dialog
({
width
:
700
,
height
:
400
,
"
modal
"
:
true
,
"
hideFooter
"
:
true
});
=======
>>>>>>>
branch
'
0.5.6
'
of
https
:
//github.com/b3log/b3log-solo.git
$
(
"
#pluginSetting
"
).
html
(
result
);
$
(
"
#pluginSetting
"
).
dialog
(
"
open
"
);
=======
>>>>>>>
branch
'
0.5.6
'
of
https
:
//github.com/b3log/b3log-solo.git
$
(
},
$
(
"
#loadMsg
"
).
text
(
""
);
}
});
},
changeStatus
:
function
(
pluginId
,
status
)
{
$
(
"
#loadMsg
"
).
text
(
Label
.
loadingLabel
);
if
(
status
===
"
ENABLED
"
)
{
status
=
"
DISABLED
"
;
}
else
{
...
...
@@ -173,13 +163,11 @@ admin.pluginList = {
}
});
}
};
/*
* 注册到 admin 进行管理
*/
* 注册到 admin 进行管理
*/
admin
.
register
[
"
plugin-list
"
]
=
{
"
obj
"
:
admin
.
pluginList
,
"
init
"
:
admin
.
pluginList
.
init
,
...
...
war/src/main/webapp/skins/timeline/css/timeline.css
View file @
69b44ad2
...
...
@@ -58,6 +58,7 @@ a:hover {
img
{
max-width
:
100%
;
border
:
0
;
vertical-align
:
middle
;
}
...
...
@@ -231,6 +232,7 @@ img {
margin-bottom
:
30px
;
padding
:
15px
;
word-wrap
:
break-word
;
position
:
relative
;
}
.module
>
h3
{
...
...
@@ -410,6 +412,7 @@ a:hover > .ico-pre {
color
:
#444
;
padding
:
19px
;
text-shadow
:
0
1px
0
rgba
(
255
,
255
,
255
,
0.7
);
white-space
:
nowrap
;
}
.header
li
a
.current
{
...
...
@@ -432,6 +435,17 @@ a:hover > .ico-pre {
margin-top
:
11px
;
}
.articles
>
div
.fn-clear
{
position
:
relative
;
margin-bottom
:
20px
;
}
.articles
>
div
.fn-clear
>
h2
{
margin
:
0
;
text-align
:
center
;
height
:
28px
;
}
.articles
>
.vertical
{
background-color
:
#9EB5C6
;
border-radius
:
20em
20em
20em
20em
;
...
...
@@ -444,19 +458,20 @@ a:hover > .ico-pre {
width
:
6px
}
.articles
>
article
{
.articles
article
{
width
:
50%
;
}
.articles
>
article
.l
>
div
.module
{
.articles
article
.l
>
div
.module
{
margin-right
:
30px
;
left
:
0
;
}
.articles
>
article
.r
{
.articles
article
.r
{
left
:
50%
;
}
.articles
>
article
.r
>
div
{
.articles
article
.r
>
div
{
margin-left
:
30px
;
position
:
relative
;
}
...
...
@@ -467,7 +482,7 @@ a:hover > .ico-pre {
border-radius
:
20em
20em
20em
20em
;
height
:
6px
;
position
:
absolute
;
right
:
-
6
px
;
right
:
-
37
px
;
top
:
22px
;
width
:
6px
;
}
...
...
@@ -480,7 +495,7 @@ a:hover > .ico-pre {
.articles
.arrow
{
height
:
15px
;
position
:
absolute
;
right
:
22
px
;
right
:
-9
px
;
top
:
21px
;
width
:
9px
;
}
...
...
@@ -491,20 +506,12 @@ a:hover > .ico-pre {
right
:
inherit
}
.article
{
position
:
relative
;
}
time
.article-time
{
top
:
-8px
;
left
:
50%
;
position
:
absolute
;
}
.article
time
.article-time
{
top
:
-40px
;
}
time
.article-time
>
span
{
background-color
:
#FFFFFF
;
border
:
1px
solid
#A8A9A9
;
...
...
@@ -553,6 +560,16 @@ article .article-title a {
height
:
19px
;
width
:
26px
;
}
.article-archive
{
background-color
:
#60829F
;
border-radius
:
20em
20em
20em
20em
;
box-shadow
:
0
1px
0
rgba
(
0
,
0
,
0
,
0.2
)
inset
,
0
1px
0
rgba
(
255
,
255
,
255
,
0.6
);
color
:
#FFFFFF
;
font-size
:
80%
;
font-weight
:
normal
;
padding
:
5px
20px
;
}
/* end article list */
/* start dynamic */
...
...
@@ -667,5 +684,6 @@ article .article-title a {
top
:
61px
;
z-index
:
1
;
text-align
:
center
;
white-space
:
nowrap
;
}
/* end others */
\ No newline at end of file
war/src/main/webapp/skins/timeline/header.ftl
View file @
69b44ad2
<!--[if lt IE 9]>
<script type="text/javascript">
(function () {
var element = ['time', 'article'];
for (var i = 0; i < element.length; i++) {
document.createElement(element[i]);
}
})();
</script>
<![endif]-->
<div class="header">
<div class="container fn-clear">
<div class="left">
...
...
war/src/main/webapp/skins/timeline/index.ftl
View file @
69b44ad2
...
...
@@ -10,10 +10,74 @@
<body>
${topBarReplacement}
<
#include
"
header
.
ftl
"
>
<div
class=
"nav-abs"
>
<span>
201201
</span>
<div
class=
"wrapper"
>
<div
class=
"articles container"
>
<div
class=
"vertical"
></div>
<
#list
["
17:02
",
"
17:01
"]
as
date
>
<div
class=
"fn-clear"
>
<h2>
<span
class=
"article-archive"
>
${date}
</span>
</h2>
<
#list
articles
as
article
>
<
#if
article
.
articleCreateDate
?
string
("
HH:mm
"
) =
=
date
>
<article>
<div
class=
"module"
>
<div
class=
"dot"
></div>
<div
class=
"arrow"
></div>
<time
class=
"article-time"
>
<span>
${article.articleCreateDate?string("yy-MM-dd HH:mm")}
</span>
</time>
<h3
class=
"article-title"
>
<a
rel=
"bookmark"
href=
"${servePath}${article.articlePermalink}"
>
${article.articleTitle}
</a>
<
#if
article
.
hasUpdated
>
<sup>
${updatedLabel}
</sup>
</
#
if>
<
#if
article
.
articlePutTop
>
<sup>
${topArticleLabel}
</sup>
</
#
if>
</h3>
<p>
${article.articleAbstract}
</p>
<span
class=
"ico-tags ico"
title=
"${tagLabel}"
>
<
#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
class=
"ico-author ico"
title=
"${authorLabel}"
>
<a
rel=
"author"
href=
"${servePath}/authors/${article.authorId}"
>
${article.authorName}
</a>
</span>
<span
class=
"ico-comment ico"
title=
"${commentLabel}"
>
<a
rel=
"nofollow"
href=
"${servePath}${article.articlePermalink}#comments"
>
<
#if
article.articleCommentCount =
=
0
>
${noCommentLabel}
<
#else
>
${article.articleCommentCount}
</
#
if>
</a>
</span>
<span
class=
"ico-view ico"
title=
"${viewLabel}"
>
<a
rel=
"nofollow"
href=
"${servePath}${article.articlePermalink}"
>
${article.articleViewCount}
</a>
</span>
</div>
</article>
<
#if
paginationCurrentPageNum
!=
paginationPageCount
&&
0
!=
paginationPageCount
&&
!
article_has_next
>
<div
class=
"article-more"
onclick=
"timeline.getNextPage(this, '${date}')"
data-page=
"${paginationCurrentPageNum}"
>
${moreLabel}
</div>
</
#
if>
</
#
if>
</
#
list>
</div>
</
#
list>
</div>
</div>
<
#include
"
article-list
.
ftl
"
>
<
#include
"
footer
.
ftl
"
>
</body>
</html>
war/src/main/webapp/skins/timeline/js/timeline.js
View file @
69b44ad2
...
...
@@ -25,7 +25,7 @@ var timeline = {
_COLHB
:
20
,
_initArticleList
:
function
()
{
var
$articles
=
$
(
"
.articles
"
);
if
(
$articles
.
length
===
0
)
{
if
(
$articles
.
length
===
0
||
$
(
"
.articles > .fn-clear
"
).
length
>
0
)
{
return
;
}
...
...
@@ -57,6 +57,40 @@ var timeline = {
$
(
window
).
resize
();
},
_initIndexList
:
function
()
{
var
$archives
=
$
(
"
.articles > .fn-clear
"
);
if
(
$archives
.
length
===
0
)
{
return
;
}
$
(
window
).
resize
(
function
()
{
$archives
.
each
(
function
()
{
var
colH
=
[
timeline
.
_COLHA
+
60
,
timeline
.
_COLHB
*
4
];
$
(
this
).
find
(
"
article
"
).
each
(
function
()
{
var
$it
=
$
(
this
),
isLeft
=
colH
[
1
]
>
colH
[
0
],
top
=
isLeft
?
colH
[
0
]
:
colH
[
1
];
$it
.
css
({
"
top
"
:
top
+
"
px
"
,
"
position
"
:
"
absolute
"
});
if
(
isLeft
)
{
$it
.
addClass
(
"
l
"
);
}
else
{
$it
.
addClass
(
"
r
"
);
}
colH
[(
isLeft
?
'
0
'
:
'
1
'
)]
+=
parseInt
(
$it
.
outerHeight
(
true
));
});
$
(
this
).
height
(
colH
[
0
]
>
colH
[
1
]
?
colH
[
0
]
:
colH
[
1
]);
});
});
$
(
window
).
resize
();
},
_setNavCurrent
:
function
()
{
$
(
"
.header li a
"
).
each
(
function
()
{
if
(
$
(
this
).
attr
(
"
href
"
)
===
location
.
href
.
split
(
"
#
"
)[
0
])
{
...
...
@@ -75,6 +109,7 @@ var timeline = {
$
(
"
.ico-top
"
).
hide
();
}
});
timeline
.
_initIndexList
();
timeline
.
_initArticleList
();
timeline
.
_setNavCurrent
();
},
...
...
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