Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
followers and following: template changes
  • Loading branch information
garu committed Jun 14, 2010
1 parent 5891bb5 commit 216fed6
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tweetylicious.pl
Expand Up @@ -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">
Expand All @@ -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>
Expand Down

0 comments on commit 216fed6

Please sign in to comment.