use icons from icon font

pull/6827/head
Christian Ratz 11 years ago
parent b7468bb228
commit 79b857e7dc
  1. 8
      app/views/my_projects_overviews/_page_layout_attachments.html.erb
  2. 20
      app/views/my_projects_overviews/blocks/_spent_time.html.erb
  3. 2
      app/views/my_projects_overviews/index.html.erb

@ -22,11 +22,11 @@ See doc/COPYRIGHT.md for more details.
<p><%= link_to_attachment attachment, :class => 'icon icon-attachment' -%>
<%= h(" - #{attachment.description}") unless attachment.description.blank? %>
<span class="size">(<%= number_to_human_size attachment.filesize %>)</span>
<%= link_to_remote image_tag('webalys/delete.png'),
:url => { :action => 'destroy_attachment', :attachment_id => attachment.id, :id => project.id },
<%= link_to_remote icon_wrapper('icon-context icon-delete', l(:button_delete)),
:url => { :action => 'destroy_attachment', :attachment_id => attachment.id, :id => project.id },
:confirm => l(:text_are_you_sure),
:class => 'delete',
:class => 'delete no-decoration-on-hover',
:title => l(:button_delete),
:update => 'page_layout_attachments' %>
:update => 'page_layout_attachments' %>
</p>
<% end %>

@ -56,14 +56,18 @@ See doc/COPYRIGHT.md for more details.
<td class="hours"><%= html_hours("%.2f" % entry.hours) %></td>
<td align="center">
<% if entry.editable_by?(@user) -%>
<%= link_to image_tag('webalys/edit.png'), {:controller => '/timelog', :action => 'edit', :id => entry},
:alt => l(:button_edit),
:title => l(:button_edit) %>
<%= link_to image_tag('webalys/delete.png'), {:controller => '/timelog', :action => 'destroy', :id => entry},
:confirm => l(:text_are_you_sure),
:method => :delete,
:alt => l(:button_delete),
:title => l(:button_delete) %>
<%= link_to icon_wrapper('icon-context icon-edit', t(:button_edit)),
{:controller => '/timelog', :action => 'edit', :id => entry},
:alt => l(:button_edit),
:class => 'no-decoration-on-hover',
:title => l(:button_edit) %>
<%= link_to icon_wrapper('icon-context icon-delete', t(:button_delete)),
{:controller => '/timelog', :action => 'destroy', :id => entry},
:confirm => l(:text_are_you_sure),
:method => :delete,
:class => 'no-decoration-on-hover',
:alt => l(:button_delete),
:title => l(:button_delete) %>
<% end -%>
</td>
</tr>

@ -64,7 +64,7 @@ See doc/COPYRIGHT.md for more details.
<% content_for :sidebar do %>
<% if total_hours.present? %>
<h3><%= l(:label_spent_time) %></h3>
<p><span class="icon" data-icon3="f"><%= l_hours(total_hours) %></span></p>
<p><span class="icon icon-time"><%= l_hours(total_hours) %></span></p>
<p>
<%= link_to(l(:label_details), {:controller => 'timelog', :action => 'index', :project_id => project}) %> |

Loading…
Cancel
Save