Permalink
Browse files

followers and following: template changes

  • Loading branch information...
1 parent 5891bb5 commit 216fed6b3aae928a505fb034a54b1058e4a1c5a5 @garu committed Jun 14, 2010
Showing with 17 additions and 0 deletions.
  1. +17 −0 tweetylicious.pl
View
@@ -372,6 +372,11 @@ package main;
<input id="submit" tabindex="2" type="submit" value="Tell the World!" />
</form>
% } else {
+% if ( stash 'followed' ) {
+ <a class="fineprint" href="<%= url_for %>/unfollow">[-] unfollow</a>
+% } else {
+ <a class="fineprint" href="<%= url_for %>/follow">[+] follow!</a>
+% }
<h2 id="title"><%= $user->{username} %>'s posts</h2>
% }
<ul class="messages">
@@ -391,6 +396,18 @@ package main;
<li><span>Name</span><%= $user->{username} %></li>
<li><span>Bio</span><%= $user->{bio} %></li>
</ul>
+ <ul id="followers">
+ <li><span><%= scalar keys %$followers %></span> Followers</li>
+% foreach my $face ( keys %$followers ) {
+ <li><a href="/<%= $face %>"><img src="http://www.gravatar.com/avatar/<%= $followers->{$face}->{gravatar} %>?s=20.jpg" /></a></li>
+% }
+ </ul>
+ <ul id="following">
+ <li><span><%= scalar keys %$following %></span> Following</li>
+% foreach my $face ( keys %$following ) {
+ <li><a href="/<%= $face %>"><img src="http://www.gravatar.com/avatar/<%= $following->{$face}->{gravatar} %>?s=20.jpg" /></a></li>
+% }
+ </ul>
<div id="totalposts"><span><%= $total_posts %></span> Posts</div>
</div>

0 comments on commit 216fed6

Please sign in to comment.