display: none;
}
-#sone #known-sones .profile-link {
+#sone .sone .profile-link {
display: inline;
}
-#sone #known-sones .request-uri {
+#sone .sone .request-uri {
display: inline;
}
-#sone #known-sones .last-update {
+#sone .sone .last-update {
display: inline;
}
-#sone #known-sones form.block button, #sone #known-sones form.unblock button, #sone #known-sones form.follow button, #sone #known-sones form.unfollow button {
+#sone .sone form.block button, #sone .sone form.unblock button, #sone .sone form.follow button, #sone .sone form.unfollow button {
display: inline;
color: rgb(28, 131, 191);
background: none;
padding: 0px;
}
-#sone #known-sones form.block button:hover, #sone #known-sones form.unblock button:hover, #sone #known-sones form.follow button:hover, #sone #known-sones form.unfollow button:hover {
+#sone .sone form.block button:hover, #sone .sone form.unblock button:hover, #sone .sone form.follow button:hover, #sone .sone form.unfollow button:hover {
display: inline;
color: rgb(255, 172, 0);
}
-#sone #known-sones form {
+#sone .sone form {
display: inline;
}
--- /dev/null
+<div class="sone">
+ <div class="profile-link"><a href="viewSone.html?sone=<% sone.id>" title="<% sone.requestUri|html>"><% sone.niceName|html></a></div>
+ <div class="last-update">(<%= View.Sone.Label.LastUpdate|l10n|html> <% sone.time|date format="MMM d, yyyy, HH:mm:ss">)</div>
+ <%ifnull ! currentSone>
+ <%if ! sone.isCurrent>
+ <%if sone.isFriend>
+ <form class="unfollow" action="unfollowSone.html" method="post">
+ <input type="hidden" name="formPassword" value="<% formPassword|html>" />
+ <input type="hidden" name="sone" value="<% sone.id>" />
+ <button type="submit"><%= View.Sone.Button.UnfollowSone|l10n|html></button>
+ </form>
+ <%else>
+ <form class="follow" action="followSone.html" method="post">
+ <input type="hidden" name="formPassword" value="<% formPassword|html>" />
+ <input type="hidden" name="sone" value="<% sone.id>" />
+ <button type="submit"><%= View.Sone.Button.FollowSone|l10n|html></button>
+ </form>
+ <%/if>
+ <%if sone.isBlocked>
+ <form class="unblock" action="unblockSone.html" method="post">
+ <input type="hidden" name="formPassword" value="<% formPassword|html>" />
+ <input type="hidden" name="sone" value="<% sone.id>" />
+ <button type="submit"><%= View.Sone.Button.UnblockSone|l10n|html></button>
+ </form>
+ <%else>
+ <form class="block" action="blockSone.html" method="post">
+ <input type="hidden" name="formPassword" value="<% formPassword|html>" />
+ <input type="hidden" name="sone" value="<% sone.id>" />
+ <button type="submit"><%= View.Sone.Button.BlockSone|l10n|html></button>
+ </form>
+ <%/if>
+ <%/if>
+ <%/if>
+</div>
<div id="known-sones">
<%foreach knownSones sone>
- <div>
- <div class="profile-link"><a href="viewSone.html?sone=<% sone.id>" title="<% sone.requestUri|html>"><% sone.niceName|html></a></div>
- <div class="last-update">(<%= View.Sone.Label.LastUpdate|l10n|html> <% sone.time|date format="MMM d, yyyy, HH:mm:ss">)</div>
- <%ifnull ! currentSone>
- <%if ! sone.isCurrent>
- <%if sone.isFriend>
- <form class="unfollow" action="unfollowSone.html" method="post">
- <input type="hidden" name="formPassword" value="<% formPassword|html>" />
- <input type="hidden" name="sone" value="<% sone.id>" />
- <button type="submit"><%= View.Sone.Button.UnfollowSone|l10n|html></button>
- </form>
- <%else>
- <form class="follow" action="followSone.html" method="post">
- <input type="hidden" name="formPassword" value="<% formPassword|html>" />
- <input type="hidden" name="sone" value="<% sone.id>" />
- <button type="submit"><%= View.Sone.Button.FollowSone|l10n|html></button>
- </form>
- <%/if>
- <%if sone.isBlocked>
- <form class="unblock" action="unblockSone.html" method="post">
- <input type="hidden" name="formPassword" value="<% formPassword|html>" />
- <input type="hidden" name="sone" value="<% sone.id>" />
- <button type="submit"><%= View.Sone.Button.UnblockSone|l10n|html></button>
- </form>
- <%else>
- <form class="block" action="blockSone.html" method="post">
- <input type="hidden" name="formPassword" value="<% formPassword|html>" />
- <input type="hidden" name="sone" value="<% sone.id>" />
- <button type="submit"><%= View.Sone.Button.BlockSone|l10n|html></button>
- </form>
- <%/if>
- <%/if>
- <%/if>
- </div>
+ <%include include/viewSone.html>
<%foreachelse>
<div><%= Page.KnownSones.Text.NoKnownSones|l10n|html></div>
<%/foreach>
<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 sone.friends sone>
+ <%include include/viewSone.html>
<%/foreach>
</div>