mirror of
https://github.com/TracksApp/tracks.git
synced 2026-04-17 17:54:35 +02:00
Statistics for longest running projects now includes completed and hidden projects. fixes #1725
This commit is contained in:
parent
ff9edcc309
commit
2883d1b7f4
6 changed files with 57 additions and 27 deletions
|
|
@ -1,7 +1,8 @@
|
|||
<%- i18n_key ||= "actions_midsentence" -%>
|
||||
<div class="stats_module">
|
||||
<h3><%= t("stats.top10_#{key}") %></h3>
|
||||
<% projects.each_with_index do |p, i| -%>
|
||||
<%= i + 1 -%> - <%= link_to p.name, project_path(p) %> (<%=p.send(n)%> <%= t('common.actions_midsentence', :count => p.send(n)) %>) <br/>
|
||||
<%= i + 1 -%> - <%= link_to p.name, project_path(p) %> (<%=p.send(n)%> <%= t("common.#{i18n_key}", :count => p.send(n)) %>) <br/>
|
||||
<% end -%>
|
||||
<%= render :partial => 'null_list_item', :locals => {:from => projects.size + 1, :to => 10} -%>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue