Skip to content

Commit

Permalink
added a percentage for cited works
Browse files Browse the repository at this point in the history
  • Loading branch information
DanCoughlin committed May 15, 2013
1 parent ad39b60 commit c1e0859
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions app/views/citations/index.html.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
<h1>Citations</h1>
<%= @citations.size %> cited journals
<p>
<%= @citations.size %> cited journals in 500 source articles. The % given next to the number cited is
the percent of times out of 500 source articles this journal was used. So number of times cited/500.
</p>
<table class="table table-striped table-hover">
<tr>
<th>Journal</th>
Expand All @@ -9,11 +12,9 @@
<% @journals.each do |journal, count| %>
<tr>
<td><%= journal %></td>
<td><%= count %></td>
<td><%= count %> (<%= number_to_percentage(count.to_f/500.0) %>)</td>
</tr>
<% end %>
</table>

<br />

<%= link_to 'New Citation', new_citation_path %>

0 comments on commit c1e0859

Please sign in to comment.