# HG changeset patch # User olivier # Date 1420626361 -3600 # Wed Jan 07 11:26:01 2015 +0100 # Node ID 3069fb9e37e6c67801001d84d52c6822d98c03ed # Parent 6433fb0650326cd73296f7fe9a1b1f135bbea320 #42140: add code to make History and Description collapsable/expandable in the same way as grouped issue lists diff -r 6433fb065032 -r 3069fb9e37e6 app/views/issues/_history.html.erb --- a/app/views/issues/_history.html.erb Fri Dec 12 09:20:05 2014 +0100 +++ b/app/views/issues/_history.html.erb Wed Jan 07 11:26:01 2015 +0100 @@ -1,12 +1,22 @@ <% reply_links = authorize_for('issues', 'edit') -%> +
+ <%= link_to "##{journal.indice}", {:anchor => "note-#{journal.indice}"}, :class => "journal-link" %> <%= avatar(journal.user, :size => "24") %> + ++ <%= authoring journal.created_on, journal.user, :label => :label_updated_time_by %> + <%= link_to_function("#{l(:button_collapse_all)}/#{l(:button_expand_all)}", + "toggleAllRowGroups(this)", :class => 'toggle-all') %> + <%= content_tag('span', l(:field_is_private), :class => 'private') if journal.private_notes? %> |
<% if journal.details.any? %>
|
+
+
+ <%= 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)%> + |
+
+ <%= textilizable @issue, :description, :attachments => @issue.attachments %>
+
+ |