|
13 | 13 | <table class="dashboard-table sortable">
|
14 | 14 | <thead>
|
15 | 15 | <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> |
24 | 25 | </tr>
|
25 | 26 | </thead>
|
26 | 27 | <tbody>
|
27 | 28 | <% Editor.active.order('LOWER(login)').each do |editor| %>
|
28 | 29 | <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> |
30 | 31 | <td sorttable_customkey=<%= in_progress_no_paused_for_editor(editor) %>><%= in_progress_for_editor(editor) %></td>
|
31 | 32 | <td class="text-center"><%= sprintf("%.1f", @papers_last_3_months[editor.id].to_i / 3.0) %></td>
|
32 | 33 | <td class="text-center"><%= @papers_last_week[editor.id].to_i %></td>
|
33 | 34 | <td class="text-center"><%= @papers_last_month[editor.id].to_i %></td>
|
34 | 35 | <td class="text-center"><%= @papers_last_3_months[editor.id].to_i %></td>
|
35 | 36 | <td class="text-center"><%= @papers_last_year[editor.id].to_i %></td>
|
36 | 37 | <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> |
37 | 39 | </tr>
|
38 | 40 | <% end %>
|
39 | 41 | </tbody>
|
40 | 42 | <tfoot>
|
41 | 43 | <% Editor.emeritus.order('LOWER(login)').each do |editor| %>
|
42 | 44 | <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> |
44 | 46 | <td><%= in_progress_for_editor(editor) %></td>
|
45 | 47 | <td class="text-center"><%= sprintf("%.1f", @papers_last_3_months[editor.id].to_i / 3.0) %></td>
|
46 | 48 | <td class="text-center"><%= @papers_last_week[editor.id].to_i %></td>
|
|
0 commit comments