- <%= link_to l(:button_quote), quoted_issue_path(@issue), :remote => true, :method => 'post', :class => 'icon icon-comment' if authorize_for('issues', 'edit') %>
+
+
+
+
+ <%= link_to l(:button_quote), quoted_issue_path(@issue), :remote => true, :method => 'post', :class => 'icon icon-comment' if authorize_for('issues', 'edit') %>
+
+
+
+
+ <%=l(:field_description)%>
+
-
-
<%=l(:field_description)%>
-
- <%= textilizable @issue, :description, :attachments => @issue.attachments %>
+
+
+ <%= textilizable @issue, :description, :attachments => @issue.attachments %>
+
-
+
<% end %>
<%= link_to_attachments @issue, :thumbnails => true %>
<% end -%>
diff -r 6433fb065032 -r 71fe2451b6dc public/javascripts/application.js
--- a/public/javascripts/application.js Fri Dec 12 09:20:05 2014 +0100
+++ b/public/javascripts/application.js Wed Jan 07 15:03:04 2015 +0100
@@ -62,6 +62,46 @@
}
}
+function toggleExpanderDiv(el) {
+ var expItem = $(el).parents('div.expander-item').first();
+ var n = expItem.next();
+ expItem.toggleClass('open');
+ while (n.length && !n.hasClass('group')) {
+ n.toggle();
+ n = n.next('expItem');
+ }
+}
+
+function collapseAllExpanderDivs(el) {
+ var exp = $(el).parents('div.expander').first();
+ exp.find('div.expander-item').each(function(index) {
+ if ($(this).hasClass('group')) {
+ $(this).removeClass('open');
+ } else {
+ $(this).hide();
+ }
+ });
+}
+function expandAllExpanderDivs(el) {
+ var exp = $(el).parents('div.expander').first();
+ exp.find('div.expander-item').each(function(index) {
+ if ($(this).hasClass('group')) {
+ $(this).addClass('open');
+ } else {
+ $(this).show();
+ }
+ });
+}
+
+function toggleAllExpanderDivs(el) {
+ var expItem = $(el).parents('div.expander-item').first();
+ if (expItem.hasClass('open')) {
+ collapseAllExpanderDivs(el);
+ } else {
+ expandAllExpanderDivs(el);
+ }
+}
+
function toggleFieldset(el) {
var fieldset = $(el).parents('fieldset').first();
fieldset.toggleClass('collapsed');
diff -r 6433fb065032 -r 71fe2451b6dc public/stylesheets/application.css
--- a/public/stylesheets/application.css Fri Dec 12 09:20:05 2014 +0100
+++ b/public/stylesheets/application.css Wed Jan 07 15:03:04 2015 +0100
@@ -180,8 +180,8 @@
tr.entry.file td.filename a { margin-left: 16px; }
tr.entry.file td.filename_no_report a { margin-left: 16px; }
-tr span.expander {background-image: url(../images/bullet_toggle_plus.png); padding-left: 8px; margin-left: 0; cursor: pointer;}
-tr.open span.expander {background-image: url(../images/bullet_toggle_minus.png);}
+tr span.expander, div span.expander {background-image: url(../images/bullet_toggle_plus.png); padding-left: 8px; margin-left: 0; cursor: pointer;}
+tr.open span.expander, div.open span.expander {background-image: url(../images/bullet_toggle_minus.png);}
tr.changeset { height: 20px }
tr.changeset ul, ol { margin-top: 0px; margin-bottom: 0px; }
@@ -230,8 +230,8 @@
table.list tbody tr.group td { padding: 0.8em 0 0.5em 0.3em; font-weight: bold; border-bottom: 1px solid #ccc; text-align:left; }
table.list tbody tr.group span.count {position:relative; top:-1px; color:#fff; font-size:10px; background:#9DB9D5; padding:0px 6px 1px 6px; border-radius:3px; margin-left:4px;}
-tr.group a.toggle-all { color: #aaa; font-size: 80%; font-weight: normal; display:none;}
-tr.group:hover a.toggle-all { display:inline;}
+tr.group a.toggle-all, div.group a.toggle-all { color: #aaa; font-size: 80%; font-weight: normal; display:none;}
+tr.group:hover a.toggle-all, div.group:hover a.toggle-all { display:inline;}
a.toggle-all:hover {text-decoration:none;}
table.list tbody tr:hover { background-color:#ffffdd; }