Skip to content

Commit

Permalink
Merge pull request #77 from jcnventura/contributor2cgit
Browse files Browse the repository at this point in the history
Link from number of mentions to cgit list of those mentions.
  • Loading branch information
lewisnyman committed Oct 30, 2015
2 parents 3e28bf3 + 8f6514f commit 30063f9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
5 changes: 4 additions & 1 deletion app/templates/companies.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@
<td><%= values['link'] %> <img src="images/icon_info.png" alt="Info" title="Toggle employees" class="toggle">
<table class="employees" style="display: none">
<% values['contributors'].each do |contributor, mentions| %>
<tr><td><a href="https://www.drupal.org/u/<%= contributor.gsub ' ', '-' %>"><%= contributor %></a></td><td><%= mentions %></td></tr>
<tr>
<td><a href="https://www.drupal.org/u/<%= contributor.gsub ' ', '-' %>"><%= contributor %></a></td>
<td><a href="http://cgit.drupalcode.org/drupal/log/?qt=grep&q=<%= contributor.gsub ' ', '+' %>"><%= mentions %></a></td>
</tr>
<% end %>
</table>
</td>
Expand Down
5 changes: 4 additions & 1 deletion app/templates/countries.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@
<td><%= values['link'] %> <img src="images/icon_info.png" alt="Info" title="Toggle employees" class="toggle">
<table class="employees" style="display: none">
<% values['contributors'].each do |contributor, mentions| %>
<tr><td><a href="https://www.drupal.org/u/<%= contributor.gsub ' ', '-' %>"><%= contributor %></a></td><td><%= mentions %></td></tr>
<tr>
<td><a href="https://www.drupal.org/u/<%= contributor.gsub ' ', '-' %>"><%= contributor %></a></td>
<td><a href="http://cgit.drupalcode.org/drupal/log/?qt=grep&q=<%= contributor.gsub ' ', '+' %>"><%= mentions %></a></td>
</tr>
<% end %>
</table>
</td>
Expand Down
2 changes: 1 addition & 1 deletion app/templates/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<tr id="<%= name %>">
<td><%= (lastMentions == mentions) ? lastOrder : i %></td>
<td><a href="https://www.drupal.org/u/<%= name.gsub ' ', '-' %>"><%= name %></a></td>
<td><%= mentions %></td>
<td><a href="http://cgit.drupalcode.org/drupal/log/?qt=grep&q=<%= name.gsub ' ', '+' %>"><%= mentions %></a></td>
<td><%= ((mentions/sum)*100).round(4) %>%</td>
<% if lastMentions != mentions %>
<% lastOrder = i %>
Expand Down

0 comments on commit 30063f9

Please sign in to comment.