Use new template engine.
[Sone.git] / src / main / resources / templates / viewSone.html
index 884fa0f..a54c2cb 100644 (file)
 
                <%if ! sone.current>
                        <%include include/viewSone.html>
+               <%/if>
+
+               <h1><%= Page.ViewSone.Profile.Title|l10n|html></h1>
 
+                       <div class="profile-field">
+                               <div class="name"><%= Page.ViewSone.Profile.Label.Name|l10n|html></div>
+                               <div class="value"><a href="/WoT/ShowIdentity?id=<% sone.id|html>"><% sone.niceName|html></a></div>
+                       </div>
+
+                       <%foreach sone.profile.fields field>
+                               <div class="profile-field">
+                                       <div class="name"><% field.name|html></div>
+                                       <div class="value"><% field.value|parse></div>
+                               </div>
+                       <%/foreach>
+
+               <%if ! sone.current>
                        <p><%= Page.ViewSone.WriteAMessage|l10n|html></p>
 
                        <form action="createPost.html" id="post-message" method="post">
                        </form>
                <%/if>
 
-
                <h1><%= Page.ViewSone.PostList.Title|l10n|insert needle="{sone}" key=sone.niceName|html></h1>
 
                <div id="posts">
-                       <%getpage parameter=postPage>
-                       <%paginate list=sone.posts pagesize=25>
+                       <%:getpage parameter=postPage>
+                       <%:paginate list=sone.posts pagesize=25>
                        <%= postPage|store key=pageParameter>
                        <%include include/pagination.html>
                        <%foreach pagination.items post>