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
9b458639
Commit
9b458639
authored
Feb 17, 2017
by
Van
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
#12180 dynamic
parent
2d54f891
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
34 deletions
+16
-34
src/main/webapp/skins/9IPHP/common-comment.ftl
src/main/webapp/skins/9IPHP/common-comment.ftl
+1
-1
src/main/webapp/skins/9IPHP/dynamic.ftl
src/main/webapp/skins/9IPHP/dynamic.ftl
+14
-30
src/main/webapp/skins/9IPHP/macro-comments.ftl
src/main/webapp/skins/9IPHP/macro-comments.ftl
+1
-3
No files found.
src/main/webapp/skins/9IPHP/common-comment.ftl
View file @
9b458639
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
<#else>
<#else>
<a class="user-name" href="${comment.commentURL}" target="_blank">${comment.commentName}</a>
<a class="user-name" href="${comment.commentURL}" target="_blank">${comment.commentName}</a>
</#if>
</#if>
<#if
tru
e> comment.isReply
<#if
fals
e> comment.isReply
@
@
<a class="user-name" href="${servePath}${article.permalink}#${comment.commentOriginalCommentId}"
<a class="user-name" href="${servePath}${article.permalink}#${comment.commentOriginalCommentId}"
onmouseover="page.showComment(this, '${comment.commentOriginalCommentId}', 23);"
onmouseover="page.showComment(this, '${comment.commentOriginalCommentId}', 23);"
...
...
src/main/webapp/skins/9IPHP/dynamic.ftl
View file @
9b458639
...
@@ -9,40 +9,24 @@
...
@@ -9,40 +9,24 @@
</head>
</head>
<body>
<body>
<
#include
"
header
.
ftl
"
>
<
#include
"
header
.
ftl
"
>
<main
class=
"main wrapper"
>
<div
class=
"wrapper"
>
<div
class=
"content"
>
<div
class=
"main-wrap"
>
<
#if
0
!=
recentComments
?
size
>
<main>
<ul
class=
"comments"
id=
"comments"
>
<
#if
0
!=
recentComments
?
size
>
<
#list
recentComments
as
comment
>
<ul
class=
"comments"
id=
"comments"
>
<li
class=
"fn-clear"
>
<
#list
recentComments
as
comment
>
<img
class=
"avatar-48"
title=
"${comment.commentName}"
src=
"${comment.commentThumbnailURL}"
>
<
#include
'
common-comment
.
ftl
'
/>
<div
class=
"comment-body"
>
</
#
list>
<div
class=
"fn-clear comment-meta"
>
</ul>
<span
class=
"fn-left"
>
</
#
if>
<
#if
"
http:
//"
==
comment
.
commentURL
>
</main>
<span>
${comment.commentName}
</span>
<
#include
"
side
.
ftl
"
>
<
#else
>
<a
href=
"${comment.commentURL}"
target=
"_blank"
>
${comment.commentName}
</a>
</
#
if>
<time>
${comment.commentDate?string("yyyy-MM-dd HH:mm")}
</time>
</span>
<a
class=
"fn-right"
href=
"${servePath}${comment.commentSharpURL}"
>
${viewLabel}»
</a>
</div>
<div
class=
"comment-content post-body article-body"
>
${comment.commentContent}
</div>
</div>
</li>
</
#
list>
</ul>
</
#
if>
</div>
</div>
<
#include
"
side
.
ftl
"
>
</div>
</main>
<
#include
"
footer
.
ftl
"
>
<
#include
"
footer
.
ftl
"
>
<script>
<script>
var
$commentContents
=
$
(
"
.comments .co
mment-conten
t
"
);
var
$commentContents
=
$
(
"
.comments .co
ntent-rese
t
"
);
for
(
var
i
=
0
;
i
<
$commentContents
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
$commentContents
.
length
;
i
++
)
{
var
str
=
$commentContents
[
i
].
innerHTML
;
var
str
=
$commentContents
[
i
].
innerHTML
;
$commentContents
[
i
].
innerHTML
=
Util
.
replaceEmString
(
str
);
$commentContents
[
i
].
innerHTML
=
Util
.
replaceEmString
(
str
);
...
...
src/main/webapp/skins/9IPHP/macro-comments.ftl
View file @
9b458639
<#macro comments commentList article>
<#macro comments commentList article>
<#if commentList?size gt 0>
<header class='title'><h2>${commentLabel}</h2></header>
<header class='title'><h2>${commentList?size} ${commentLabel}</h2></header>
</#if>
<ul class="comments" id="comments">
<ul class="comments" id="comments">
<#list commentList as comment>
<#list commentList as comment>
<#include 'common-comment.ftl'/>
<#include 'common-comment.ftl'/>
...
...
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