@@ -15,8 +15,9 | |||
|
15 | 15 | <% if @query.grouped? && issue.send(@query.group_by) != group %> |
|
16 | 16 | <% group = issue.send(@query.group_by) %> |
|
17 | 17 | <% reset_cycle %> |
|
18 | <tr class="group"> | |
|
18 | <tr class="group open"> | |
|
19 | 19 | <td colspan="<%= query.columns.size + 2 %>"> |
|
20 | <span class="expander" onclick="toggleRowGroup(this); return false;"> </span> | |
|
20 | 21 | <%= group.blank? ? 'None' : group %> <span class="count">(<%= @issue_count_by_group[group] %>)</span> |
|
21 | 22 | </td> |
|
22 | 23 | </tr> |
@@ -23,6 +23,16 function showAndScrollTo(id, focus) { | |||
|
23 | 23 | Element.scrollTo(id); |
|
24 | 24 | } |
|
25 | 25 | |
|
26 | function toggleRowGroup(el) { | |
|
27 | var tr = Element.up(el, 'tr'); | |
|
28 | var n = Element.next(tr); | |
|
29 | tr.toggleClassName('open'); | |
|
30 | while (n != undefined && !n.hasClassName('group')) { | |
|
31 | Element.toggle(n); | |
|
32 | n = Element.next(n); | |
|
33 | } | |
|
34 | } | |
|
35 | ||
|
26 | 36 | var fileFieldCount = 1; |
|
27 | 37 | |
|
28 | 38 | function addFileField() { |
@@ -102,11 +102,11 tr.entry td.filename { width: 30%; } | |||
|
102 | 102 | tr.entry td.size { text-align: right; font-size: 90%; } |
|
103 | 103 | tr.entry td.revision, tr.entry td.author { text-align: center; } |
|
104 | 104 | tr.entry td.age { text-align: right; } |
|
105 | ||
|
106 | tr.entry span.expander {background-image: url(../images/bullet_toggle_plus.png); padding-left: 8px; margin-left: 0; cursor: pointer;} | |
|
107 | tr.entry.open span.expander {background-image: url(../images/bullet_toggle_minus.png);} | |
|
108 | 105 | tr.entry.file td.filename a { margin-left: 16px; } |
|
109 | 106 | |
|
107 | tr span.expander {background-image: url(../images/bullet_toggle_plus.png); padding-left: 8px; margin-left: 0; cursor: pointer;} | |
|
108 | tr.open span.expander {background-image: url(../images/bullet_toggle_minus.png);} | |
|
109 | ||
|
110 | 110 | tr.changeset td.author { text-align: center; width: 15%; } |
|
111 | 111 | tr.changeset td.committed_on { text-align: center; width: 15%; } |
|
112 | 112 |
General Comments 0
You need to be logged in to leave comments.
Login now