Patch #42794 » 0001-Hide-buttons-column-in-time-table-when-printing.patch
| app/views/timelog/_list.html.erb | ||
|---|---|---|
|
<% @query.inline_columns.each do |column| %>
|
||
|
<%= column_header(@query, column) %>
|
||
|
<% end %>
|
||
|
<th></th>
|
||
|
<th class="hide-when-print"></th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
| ... | ... | |
|
<% @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),
|
||