mirror of
https://github.com/meineerde/redmine.git
synced 2025-10-17 17:01:01 +00:00
Hide action buttons when printing (#42794).
Patch by Luc Luc (user:iq2luc). git-svn-id: https://svn.redmine.org/redmine/trunk@23860 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
69dde23d5c
commit
e29a4f73e6
@ -791,7 +791,7 @@ module ApplicationHelper
|
||||
end
|
||||
|
||||
def other_formats_links(&)
|
||||
concat('<p class="other-formats">'.html_safe + l(:label_export_to))
|
||||
concat('<p class="other-formats hide-when-print">'.html_safe + l(:label_export_to))
|
||||
yield Redmine::Views::OtherFormatsBuilder.new(self)
|
||||
concat('</p>'.html_safe)
|
||||
end
|
||||
|
||||
@ -15,7 +15,7 @@
|
||||
<% query.inline_columns.each do |column| %>
|
||||
<%= column_header(query, column, query_options) %>
|
||||
<% end %>
|
||||
<th class="buttons"></th>
|
||||
<th class="buttons hide-when-print"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@ -36,7 +36,7 @@
|
||||
<% query.inline_columns.each do |column| %>
|
||||
<%= content_tag('td', column_content(column, issue), :class => column.css_classes) %>
|
||||
<% end %>
|
||||
<td class="buttons"><%= link_to_context_menu %></td>
|
||||
<td class="buttons hide-when-print"><%= link_to_context_menu %></td>
|
||||
</tr>
|
||||
<% query.block_columns.each do |column|
|
||||
if (text = column_content(column, issue)) && text.present? -%>
|
||||
|
||||
@ -11,7 +11,7 @@
|
||||
<% @query.inline_columns.each do |column| %>
|
||||
<%= column_header(@query, column) %>
|
||||
<% end %>
|
||||
<th></th>
|
||||
<th class="hide-when-print"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@ -36,7 +36,7 @@
|
||||
<% @query.inline_columns.each do |column| %>
|
||||
<%= content_tag('td', column_content(column, entry), :class => column.css_classes) %>
|
||||
<% end %>
|
||||
<td class="buttons">
|
||||
<td class="buttons hide-when-print">
|
||||
<% if entry.editable_by?(User.current) -%>
|
||||
<%= link_to sprite_icon('edit', l(:button_edit)), edit_time_entry_path(entry),
|
||||
:title => l(:button_edit),
|
||||
|
||||
@ -40,7 +40,7 @@
|
||||
<td class="checkbox"><%= check_box_tag 'ids[]', issue.id, false, :id => nil %></td>
|
||||
<td class="assigned_to"><%= assignee_avatar(issue.assigned_to, :size => 16) %></td>
|
||||
<td class="subject"><%= link_to_issue(issue, :project => (@project != issue.project)) %></td>
|
||||
<td class="buttons"><%= link_to_context_menu %></td>
|
||||
<td class="buttons hide-when-print"><%= link_to_context_menu %></td>
|
||||
</tr>
|
||||
<% end -%>
|
||||
</table>
|
||||
|
||||
@ -54,7 +54,7 @@
|
||||
<td class="checkbox"><%= check_box_tag 'ids[]', issue.id, false, :id => nil %></td>
|
||||
<td class="assigned_to"><%= assignee_avatar(issue.assigned_to, :size => 16) %></td>
|
||||
<td class="subject"><%= link_to_issue(issue, :project => (@project != issue.project)) %></td>
|
||||
<td class="buttons"><%= link_to_context_menu %></td>
|
||||
<td class="buttons hide-when-print"><%= link_to_context_menu %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</table>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user