projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Set version to 0.3.1.
[Sone.git]
/
src
/
main
/
resources
/
templates
/
viewSone.html
diff --git
a/src/main/resources/templates/viewSone.html
b/src/main/resources/templates/viewSone.html
index
71fba4f
..
b736f8d
100644
(file)
--- a/
src/main/resources/templates/viewSone.html
+++ b/
src/main/resources/templates/viewSone.html
@@
-1,35
+1,39
@@
<%include include/head.html>
<%include include/head.html>
- <script language="javascript">
- $(document).ready(function() {
- addCommentLinks();
- });
- </script>
+ <div class="page-id hidden">view-sone</div>
+ <div class="sone-id hidden"><% sone.id|html></div>
- <%ifnull sone
.name
>
+ <%ifnull sone>
<h1><%= Page.ViewSone.Page.TitleWithoutSone|l10n|html></h1>
<h1><%= Page.ViewSone.Page.TitleWithoutSone|l10n|html></h1>
- <div><%= Page.ViewSone.UnknownSone.Description|l10n|html></div>
+ <p><%= Page.ViewSone.NoSone.Description|l10n|insert needle="{sone}" key=sone.id|html></p>
+
+ <%elseifnull sone.name>
+
+ <h1><%= Page.ViewSone.Page.TitleWithoutSone|l10n|html></h1>
+
+ <p><%= Page.ViewSone.UnknownSone.Description|l10n|html></p>
<%else>
<%else>
- <%include include/viewSone.html>
+ <%if ! sone.current>
+ <%include include/viewSone.html>
+ <%/if>
+
+ <h1><%= Page.ViewSone.PostList.Title|l10n|insert needle="{sone}" key=sone.niceName|html></h1>
<div id="posts">
<div id="posts">
- <%foreach sone.posts post>
+ <%getpage parameter=postPage>
+ <%paginate list=sone.posts pagesize=25>
+ <%= postPage|store key=pageParameter>
+ <%include include/pagination.html>
+ <%foreach pagination.items post>
<%include include/viewPost.html>
<%foreachelse>
<div><%= Page.ViewSone.PostList.Text.NoPostYet|l10n|html></div>
<%/foreach>
<%include include/viewPost.html>
<%foreachelse>
<div><%= Page.ViewSone.PostList.Text.NoPostYet|l10n|html></div>
<%/foreach>
- </div>
-
- <h1><%= Page.ViewSone.Following.Title|l10n|html></h1>
-
- <div id="following">
- <%foreach sone.friends sone>
- <%include include/viewSone.html>
- <%/foreach>
+ <%include include/pagination.html>
</div>
<%/if>
</div>
<%/if>