Merge pull request #40 from finnlabs/feature/improve_icon_font

pull/6827/head
Hagen Schink 11 years ago
commit 3e402dfb4b
  1. 1
      CHANGELOG.md
  2. 2
      lib/open_project/reporting/engine.rb
  3. 12
      lib/widget/entry_table.rb

@ -1,5 +1,6 @@
# Changelog
* Adaptations for new icon font
* added icon for new project menu
## 4.0.0.pre8

@ -98,7 +98,7 @@ module OpenProject::Reporting
:after => :cost_objects,
:caption => :cost_reports_title,
:if => Proc.new { |project| project.module_enabled?(:reporting_module) },
:html => {:'data-icon2' => "w"}
:html => {:class => 'icon2 icon-stats'}
end
end
end

@ -73,13 +73,17 @@ class Widget::Table::EntryTable < Widget::Table
icons = ""
with_project(result.fields['project_id']) do
if entry_for(result).editable_by? User.current
icons = link_to(image_tag('webalys/edit.png'),
icons = link_to(icon_wrapper('icon-context icon-edit', l(:button_edit)),
action_for(result, :action => 'edit'),
:class => 'no-decoration-on-hover',
:title => l(:button_edit))
icons << link_to(image_tag('webalys/delete.png'),
icons << link_to(icon_wrapper('icon-context icon-delete', l(:button_delete)),
(action_for(result, :action => 'destroy').reverse_merge(:authenticity_token => form_authenticity_token)),
:title => l(:button_edit), :confirm => l(:text_are_you_sure),
:method => :delete, :title => l(:button_delete))
:title => l(:button_edit),
:confirm => l(:text_are_you_sure),
:method => :delete,
:class => 'no-decoration-on-hover',
:title => l(:button_delete))
end
end
icons

Loading…
Cancel
Save