Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #1207 from CPAN-API/leo/less_plussers
Move plussers to right and limit number of icons
  • Loading branch information
ranguard committed May 27, 2014
2 parents d500bba + 81b8eec commit 0edd081
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 22 deletions.
27 changes: 26 additions & 1 deletion root/inc/author-pic.html
@@ -1,3 +1,28 @@
<!-- For plussers -->
<% IF plusser_authors.size or plusser_others %>
<b class="hidden-phone">++ed by:</b>

<div class ="plussers_div hidden-phone">
<% author_nums = plusser_authors.size <= 5 ? plusser_authors.size : 5 %>
<%# display the gravatar url for each pause plusser alongwith their author page as a link. %>
<% FOREACH plusser IN plusser_authors.slice(0, author_nums - 1) %>

<a class="display-all" href="/author/<% plusser.id %>"><img src="<% plusser.pic.gravatar_fixup(20) || '/static/icons/user.png' %>" title="<% plusser.id %>" alt="<% plusser.id %>"></a>

<% END %>

<!-- Display counts of plussers-->
<p>
<% IF plusser_authors.size %>
<% plusser_authors.size %> PAUSE user(s)</b><br>
<% END %>
<% IF plusser_others %>
<% plusser_others %> non-PAUSE user(s).
<% END %>
</p>
</div>
<% END %>

<div class="author-pic">
<%- IF author.gravatar_url %>
<a href="/author/<% author.pauseid %>">
Expand All @@ -14,7 +39,7 @@
%>
<div class="coderwall">
<a href="https://coderwall.com/<% p.id %>">
<img alt="Endorse <% author.asciiname %> on Coderwall"
<img alt="Endorse <% author.asciiname %> on Coderwall"
title="Endorse <% author.asciiname %> on Coderwall"
width="110" height="20"
src="https://api.coderwall.com/<% p.id %>/endorsecount.png" /></a></div>
Expand Down
21 changes: 0 additions & 21 deletions root/inc/breadcrumbs.html
Expand Up @@ -50,24 +50,3 @@
<% module.documentation %></span>
<%- END %>
</div>

<!-- For plussers -->
<div class ="plussers_div">

<%# display the gravatar url for each pause plusser alongwith their author page as a link. %>
<% FOREACH plusser IN plusser_authors%>

<a class="display-all" href="/author/<% plusser.id %>"><img src="<% plusser.pic.gravatar_fixup(20) || '/static/icons/user.png' %>" title="<% plusser.id %>" alt="<% plusser.id %>"></a>

<% IF loop.count%35 == 0 %>
<!--To display 35 plussers in one row. -->
<p> </p>
<% END %>
<% END %>

</div>

<!-- Display the count of non pauseid plussers-->
<% IF plusser_others %>
<p><b>and <% plusser_others %> non-PAUSE user(s)</b> ++ed this.</b></p>
<% END %>

0 comments on commit 0edd081

Please sign in to comment.