From: Go MAEDA Date: Mon, 17 Jan 2022 13:53:35 +0000 (+0000) Subject: Make issue tabs DOM more consistent (#36429). X-Git-Tag: 5.0.0~105 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8cc4cff362b6c5ff76c6bf18b4e6778dd08bc81f;p=redmine.git Make issue tabs DOM more consistent (#36429). Patch by Felix Schäfer. git-svn-id: http://svn.redmine.org/redmine/trunk@21367 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/views/issues/tabs/_changesets.html.erb b/app/views/issues/tabs/_changesets.html.erb index f869a5da2..b06fd4b7e 100644 --- a/app/views/issues/tabs/_changesets.html.erb +++ b/app/views/issues/tabs/_changesets.html.erb @@ -1,6 +1,7 @@ <% @changesets.each do |changeset| %>
-

+
+

<%= avatar(changeset.user, :size => "24") %> <%= authoring changeset.committed_on, changeset.author, :label => :label_added_time_by %>

@@ -19,6 +20,7 @@
<%= format_changeset_comments changeset %>
+

<%= call_hook(:view_issues_history_changeset_bottom, { :changeset => changeset }) %> <% end %> diff --git a/app/views/issues/tabs/_history.html.erb b/app/views/issues/tabs/_history.html.erb index 0769f5725..4b908acb5 100644 --- a/app/views/issues/tabs/_history.html.erb +++ b/app/views/issues/tabs/_history.html.erb @@ -6,7 +6,7 @@ <% reply_links = issue.notes_addable? -%> <% for journal in journals %>
-
+
<%= render_journal_actions(issue, journal, :reply_links => reply_links) %> #<%= journal.indice %> diff --git a/app/views/issues/tabs/_time_entries.html.erb b/app/views/issues/tabs/_time_entries.html.erb index c34edc074..1807475bd 100644 --- a/app/views/issues/tabs/_time_entries.html.erb +++ b/app/views/issues/tabs/_time_entries.html.erb @@ -1,7 +1,9 @@ <% for time_entry in time_entries%>
+
<% if time_entry.editable_by?(User.current) -%>
+ <%= link_to l(:button_edit), edit_time_entry_path(time_entry), :title => l(:button_edit), :class => 'icon-only icon-edit' %> @@ -10,9 +12,10 @@ :method => :delete, :title => l(:button_delete), :class => 'icon-only icon-del' %> +
<% end -%> -

+

<%= avatar(time_entry.user, :size => "24") %> <%= authoring time_entry.created_on, time_entry.user, :label => :label_added_time_by %>

@@ -23,6 +26,7 @@

<%= time_entry.comments %>

+
<%= call_hook(:view_issues_history_time_entry_bottom, { :time_entry => time_entry }) %> <% end %> \ No newline at end of file