Skip to content

Commit 05f84bb

Browse files
committed
Adding active since to dashboard
1 parent b74e0a9 commit 05f84bb

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

app/views/home/dashboard.html.erb

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,34 +13,36 @@
1313
<table class="dashboard-table sortable">
1414
<thead>
1515
<tr>
16-
<th scope="col" width="25%">Editor</th>
17-
<th scope="col" width="10%">Assigned</th>
18-
<th scope="col" class="text-center" width="15%">3M average</th>
19-
<th scope="col" class="text-center" width="10%">Week</th>
20-
<th scope="col" class="text-center" width="10%">Month</th>
21-
<th scope="col" class="text-center" width="10%">Quarter</th>
22-
<th scope="col" class="text-center" width="10%">Year</th>
23-
<th scope="col" class="text-center" width="10%">All time</th>
16+
<th scope="col" width="20%">Editor</th>
17+
<th scope="col" width="8%">Assigned</th>
18+
<th scope="col" class="text-center" width="12%">3M average</th>
19+
<th scope="col" class="text-center" width="8%">Week</th>
20+
<th scope="col" class="text-center" width="8%">Month</th>
21+
<th scope="col" class="text-center" width="8%">Quarter</th>
22+
<th scope="col" class="text-center" width="8%">Year</th>
23+
<th scope="col" class="text-center" width="8%">All time</th>
24+
<th scope="col" class="text-center" width="10%">Active since</th>
2425
</tr>
2526
</thead>
2627
<tbody>
2728
<% Editor.active.order('LOWER(login)').each do |editor| %>
2829
<tr class='<%= availability_class(editor) %>'>
29-
<td sorttable_customkey=<%= editor.login.downcase %>><%= image_tag(avatar(editor.login), size: "24x24", class: "avatar", title: editor.login) %> <%= link_to editor.login, "/dashboard/#{editor.login}" %><% if editor.retired? %> <em>(emeritus)</em><% end %></td>
30+
<td sorttable_customkey=<%= editor.login.downcase %>><%= image_tag(avatar(editor.login), size: "24x24", class: "avatar", title: editor.login) %> <%= link_to editor.login, "/dashboard/#{editor.login}", style: "font-size: 0.9em;" %><% if editor.retired? %> <em>(emeritus)</em><% end %></td>
3031
<td sorttable_customkey=<%= in_progress_no_paused_for_editor(editor) %>><%= in_progress_for_editor(editor) %></td>
3132
<td class="text-center"><%= sprintf("%.1f", @papers_last_3_months[editor.id].to_i / 3.0) %></td>
3233
<td class="text-center"><%= @papers_last_week[editor.id].to_i %></td>
3334
<td class="text-center"><%= @papers_last_month[editor.id].to_i %></td>
3435
<td class="text-center"><%= @papers_last_3_months[editor.id].to_i %></td>
3536
<td class="text-center"><%= @papers_last_year[editor.id].to_i %></td>
3637
<td class="text-center"><%= @papers_all_time[editor.id].to_i %></td>
38+
<td class="text-center" style="font-size: 0.9em;"><%= time_ago_in_words(editor.created_at) %> ago</td>
3739
</tr>
3840
<% end %>
3941
</tbody>
4042
<tfoot>
4143
<% Editor.emeritus.order('LOWER(login)').each do |editor| %>
4244
<tr class="<%= cycle('odd', 'even') -%>">
43-
<td><%= image_tag(avatar(editor.login), size: "24x24", class: "avatar", title: editor.login) %> <%= link_to editor.login, "/dashboard/#{editor.login}" %><% if editor.retired? %> <em>(emeritus)</em><% end %></td>
45+
<td><%= image_tag(avatar(editor.login), size: "24x24", class: "avatar", title: editor.login) %> <%= link_to editor.login, "/dashboard/#{editor.login}", style: "font-size: 0.9em;" %><% if editor.retired? %> <em>(emeritus)</em><% end %></td>
4446
<td><%= in_progress_for_editor(editor) %></td>
4547
<td class="text-center"><%= sprintf("%.1f", @papers_last_3_months[editor.id].to_i / 3.0) %></td>
4648
<td class="text-center"><%= @papers_last_week[editor.id].to_i %></td>

0 commit comments

Comments
 (0)