- <%= link_to(l(:label_edit_attachments),
+ <%= link_to(fa_icon("pencil", :text => l(:label_edit_attachments), :icon_only => true),
container_attachments_edit_path(container),
:title => l(:label_edit_attachments),
- :class => 'icon-only icon-edit'
+ :class => 'icon'
) if options[:editable] %>
<% for attachment in attachments %>
-
<%= link_to_attachment attachment, :class => 'icon icon-attachment', :download => true -%>
+
<%= link_to_attachment attachment, :class => 'icon', :download => true -%>
<% if attachment.is_text? || attachment.is_image? %>
- <%= link_to l(:button_view),
+ <%= link_to fa_icon("search", :text => l(:button_view), :icon_only => true),
{ :controller => 'attachments', :action => 'show',
:id => attachment, :filename => attachment.filename },
- :class => 'icon-only icon-magnifier',
+ :class => 'icon',
:title => l(:button_view) %>
<% end %>
<%= " - #{attachment.description}" unless attachment.description.blank? %>
(<%= number_to_human_size attachment.filesize %>)
<% if options[:deletable] %>
- <%= link_to l(:button_delete), attachment_path(attachment),
+ <%= link_to fa_icon("trash", :text => l(:button_delete), :icon_only => true), attachment_path(attachment),
:data => {:confirm => l(:text_are_you_sure)},
:method => :delete,
- :class => 'delete icon-only icon-del',
+ :class => 'delete icon',
:title => l(:button_delete) %>
<% end %>
<% if options[:author] %>
diff --git a/app/views/issues/_action_menu.html.erb b/app/views/issues/_action_menu.html.erb
index b535fae..8e5e5dd 100644
--- a/app/views/issues/_action_menu.html.erb
+++ b/app/views/issues/_action_menu.html.erb
@@ -1,7 +1,7 @@
-<%= link_to l(:button_edit), edit_issue_path(@issue), :onclick => 'showAndScrollTo("update", "issue_notes"); return false;', :class => 'icon icon-edit', :accesskey => accesskey(:edit) if @issue.editable? %>
-<%= link_to l(:button_log_time), new_issue_time_entry_path(@issue), :class => 'icon icon-time-add' if User.current.allowed_to?(:log_time, @project) %>
+<%= link_to fa_icon("pencil", :text => l(:button_edit)), edit_issue_path(@issue), :onclick => 'showAndScrollTo("update", "issue_notes"); return false;', :class => 'icon', :accesskey => accesskey(:edit) if @issue.editable? %>
+<%= link_to fa_icon("clock-o", :text => l(:button_log_time)), new_issue_time_entry_path(@issue), :class => 'icon' if User.current.allowed_to?(:log_time, @project) %>
<%= watcher_link(@issue, User.current) %>
-<%= link_to l(:button_copy), project_copy_issue_path(@project, @issue), :class => 'icon icon-copy' if User.current.allowed_to?(:copy_issues, @project) && Issue.allowed_target_projects.any? %>
-<%= link_to l(:button_delete), issue_path(@issue), :data => {:confirm => issues_destroy_confirmation_message(@issue)}, :method => :delete, :class => 'icon icon-del' if @issue.deletable? %>
+<%= link_to fa_icon("clone", :text => l(:button_copy)), project_copy_issue_path(@project, @issue), :class => 'icon' if User.current.allowed_to?(:copy_issues, @project) && Issue.allowed_target_projects.any? %>
+<%= link_to fa_icon("trash", :text => l(:button_delete)), issue_path(@issue), :data => {:confirm => issues_destroy_confirmation_message(@issue)}, :method => :delete, :class => 'icon' if @issue.deletable? %>
diff --git a/app/views/issues/_relations.html.erb b/app/views/issues/_relations.html.erb
index dcf0795..ec11f48 100644
--- a/app/views/issues/_relations.html.erb
+++ b/app/views/issues/_relations.html.erb
@@ -19,13 +19,13 @@
<%= other_issue.status.name %> |
<%= format_date(other_issue.start_date) %> |
<%= format_date(other_issue.due_date) %> |
-
<%= link_to(l(:label_relation_delete),
+ | <%= link_to(fa_icon("chain-broken", :text => l(:label_relation_delete), :icon_only => true),
relation_path(relation),
:remote => true,
:method => :delete,
:data => {:confirm => l(:text_are_you_sure)},
:title => l(:label_relation_delete),
- :class => 'icon-only icon-link-break'
+ :class => 'icon'
) if User.current.allowed_to?(:manage_issue_relations, @project) %> |
<% end %>
diff --git a/app/views/issues/show.html.erb b/app/views/issues/show.html.erb
index 2cbff32..a0c65d6 100644
--- a/app/views/issues/show.html.erb
+++ b/app/views/issues/show.html.erb
@@ -37,7 +37,6 @@
<%= issue_fields_rows do |rows|
rows.left l(:field_status), @issue.status.name, :class => 'status'
rows.left l(:field_priority), @issue.priority.name, :class => 'priority'
-
unless @issue.disabled_core_fields.include?('assigned_to_id')
rows.left l(:field_assigned_to), avatar(@issue.assigned_to, :size => "14").to_s.html_safe + (@issue.assigned_to ? link_to_user(@issue.assigned_to) : "-"), :class => 'assigned-to'
end
@@ -47,7 +46,6 @@
unless @issue.disabled_core_fields.include?('fixed_version_id') || (@issue.fixed_version.nil? && @issue.assignable_versions.none?)
rows.left l(:field_fixed_version), (@issue.fixed_version ? link_to_version(@issue.fixed_version) : "-"), :class => 'fixed-version'
end
-
unless @issue.disabled_core_fields.include?('start_date')
rows.right l(:field_start_date), format_date(@issue.start_date), :class => 'start-date'
end
@@ -77,7 +75,7 @@ end %>
<% if @issue.description? %>
- <%= link_to l(:button_quote), quoted_issue_path(@issue), :remote => true, :method => 'post', :class => 'icon icon-comment' if @issue.notes_addable? %>
+ <%= link_to fa_icon("quote-left", :text => l(:button_quote)), quoted_issue_path(@issue), :remote => true, :method => 'post', :class => 'icon' if @issue.notes_addable? %>
<%=l(:field_description)%>
diff --git a/app/views/layouts/base.html.erb b/app/views/layouts/base.html.erb
index 6c5a9b2..7dbbdc1 100644
--- a/app/views/layouts/base.html.erb
+++ b/app/views/layouts/base.html.erb
@@ -16,6 +16,7 @@
<%= call_hook :view_layouts_base_html_head %>
<%= yield :header_tags -%>
+
<%= call_hook :view_layouts_base_body_top %>
diff --git a/public/stylesheets/application.css b/public/stylesheets/application.css
index da89fe2..2cc55df 100644
--- a/public/stylesheets/application.css
+++ b/public/stylesheets/application.css
@@ -1128,13 +1128,7 @@ a.close-icon:hover {background-image:url('../images/close_hl.png');}
.version-overdue a, .issue-overdue a, .project-overdue a {color: #f00;}
/***** Icons *****/
-.icon {
- background-position: 0% 50%;
- background-repeat: no-repeat;
- padding-left: 20px;
- padding-top: 2px;
- padding-bottom: 3px;
-}
+.icon {}
.icon-only {
background-position: 0% 50%;
background-repeat: no-repeat;
@@ -1387,3 +1381,7 @@ color: #555; text-shadow: 1px 1px 0 #fff;
height:1px;
overflow:hidden;
}
+
+a.icon i.fa {
+ font-size: 13px;
+}