projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add javascript version of “like” button.
[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
dea7f53
..
38ab779
100644
(file)
--- a/
src/main/resources/templates/viewSone.html
+++ b/
src/main/resources/templates/viewSone.html
@@
-8,40
+8,27
@@
<%else>
<%else>
- <h1><%= Page.ViewSone.Page.TitleWithSone|l10n|insert needle="{sone}" key=sone.niceName|html></h1>
+ <%if ! sone.current>
+ <%include include/viewSone.html>
+ <%/if>
- <h1><%= Page.ViewSone.PostList.Title|l10n|insert needle="{sone}" key=sone.niceName|html></h1>
+ <div id="import-key">
+ <div class="import-key"><% sone.requestUri|html></div>
+ </div>
- <%if ! sone.isCurrent>
- <%if sone.isFriend>
- <div><a href="unfollowSone.html?sone=<% sone.id>"><%= Page.ViewSone.UnfollowSone.Text|l10n|html></a></div>
- <%else>
- <div><a href="followSone.html?sone=<% sone.id>"><%= Page.ViewSone.FollowSone.Text|l10n|html></a></div>
- <%/if>
- <%/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 friend>
- <%first>
- <ul>
- <%/first>
- <li><a href="viewSone.html?sone=<% friend.id>"><% friend.niceName|html></a> (<% friend.requestUri|html>)</li>
- <%last>
- </ul>
- <%/last>
- <%foreachelse>
- <div><%= Page.ViewSone.Following.FollowingNone.Text|l10n|html></div>
- <%/foreach>
+ <%include include/pagination.html>
</div>
<%/if>
</div>
<%/if>