mirror of
https://github.com/openresty/openresty.git
synced 2024-10-13 00:29:41 +00:00
checked in mising files in the blog demo.
This commit is contained in:
30
demo/Blog/template/elem/recent-comments.tt
Normal file
30
demo/Blog/template/elem/recent-comments.tt
Normal file
@ -0,0 +1,30 @@
|
||||
<ul class="module-list">
|
||||
[% last_id %]
|
||||
[% FOREACH comment IN comments -%]
|
||||
<li class="module-list-item">
|
||||
<a href="#post-[% comment.post %]:comment-[% comment.id %]">
|
||||
[% comment.sender | html %]</a> on
|
||||
<a href="#post-[% comment.post %]">[% comment.title | html %]</a>
|
||||
</li>
|
||||
[%- last_id = comment.id %]
|
||||
[% END -%]
|
||||
</ul>
|
||||
|
||||
<p class="module-more">
|
||||
|
||||
[% IF offset > 0 %]
|
||||
<a href="javascript:getRecentComments([% offset - count %])"><<</a>
|
||||
[% END %]
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
[% IF last_id > 1 && comments.size == count %]
|
||||
<a id="more-recent-comments" href="javascript:getRecentComments([% offset + count %]);">
|
||||
Next...
|
||||
</a>
|
||||
[% END %]
|
||||
|
||||
</p>
|
||||
|
Reference in New Issue
Block a user