Move most of the JavaScript to sone.js.
[Sone.git] / src / main / resources / templates / viewSone.html
index 84c9c51..827aa11 100644 (file)
@@ -8,20 +8,19 @@
 
        <%else>
 
-               <h1><%= Page.ViewSone.Page.TitleWithSone|l10n|insert needle="{sone}" key=sone.niceName|html></h1>
-
-               <h1><%= Page.ViewSone.PostList.Title|l10n|insert needle="{sone}" key=sone.niceName|html></h1>
-
-               <%if ! sone.isCurrent>
-                       <%if sone.friend>
-                               <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 ! sone.current>
+                       <%include include/viewSone.html>
                <%/if>
 
+               <div id="import-key">
+                       <div class="import-key"><% sone.requestUri|html></div>
+               </div>
+
                <div id="posts">
                        <%foreach sone.posts post>
+                               <%first>
+                                       <h1><%= Page.ViewSone.PostList.Title|l10n|insert needle="{sone}" key=sone.niceName|html></h1>
+                               <%/first>
                                <%include include/viewPost.html>
                        <%foreachelse>
                                <div><%= Page.ViewSone.PostList.Text.NoPostYet|l10n|html></div>
@@ -33,6 +32,8 @@
                <div id="following">
                        <%foreach sone.friends sone>
                                <%include include/viewSone.html>
+                       <%foreachelse>
+                               <div><%= Page.ViewSone.Following.FollowingNone.Text|l10n|html></div>
                        <%/foreach>
                </div>