bolo-fantastic/bolo-NeoEase/macro-comments.ftl

40 lines
1.7 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<#--
Bolo - A stable and beautiful blogging system based in Solo.
Copyright (c) 2020, https://github.com/adlered
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
<#macro comments commentList article>
<div class="share">
<a class="share-comment" href="#commentForm">
${commentList?size}&nbsp;&nbsp;${commentLabel}
</a>
<span class="clear"></span>
</div>
<div id="comments">
<#list commentList as comment>
<#include "common-comment.ftl"/>
</#list>
</div>
<#if article.commentable>
<div class="form">
<h4>${postCommentsLabel}</h4>
<input id="boloUser" placeholder="你的昵称" style="padding: 5px; width: fill-available; width: -webkit-fill-available;">
<input id="boloSite" placeholder="你的个人主页URL选填" style="margin-top: 3px; margin-bottom: 10px; padding: 5px; width: fill-available; width: -webkit-fill-available;">
<textarea rows="3" placeholder="${postCommentsLabel}" id="comment"></textarea>
<script type="text/javascript" src="${staticServePath}/js/bolo/sweetalert.min.js"></script></div></div>
</#if>
</#macro>