From 4355c4156a6eacf99525ff1807a07eb5497f7f94 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Fri, 4 Sep 2015 16:03:03 +0200 Subject: [PATCH] Improved @Icon helper - @Icon('name', 'other classes') for .eco files. --- app/assets/javascripts/app/index.js.coffee | 2 +- .../app/views/agent_ticket_create.jst.eco | 6 +-- .../app/views/agent_user_create.jst.eco | 2 +- .../channel/email_account_overview.jst.eco | 4 +- .../channel/email_account_wizard.jst.eco | 12 ++--- .../channel/email_notification_wizard.jst.eco | 6 +-- .../first_steps_clues_content.jst.eco | 2 +- .../app/views/generic/actions.jst.eco | 4 +- .../app/views/generic/attachment.jst.eco | 2 +- .../app/views/generic/attachment_item.jst.eco | 2 +- .../app/views/generic/attribute.jst.eco | 2 +- .../app/views/generic/error/generic.jst.eco | 2 +- .../app/views/generic/error/not_found.jst.eco | 2 +- .../views/generic/error/unauthorized.jst.eco | 2 +- .../app/views/generic/radio.jst.eco | 4 +- .../views/generic/searchable_select.jst.eco | 2 +- .../app/views/generic/select.jst.eco | 2 +- .../app/views/generic/sidebar_tabs.jst.eco | 4 +- .../app/views/generic/table.jst.eco | 16 +++---- .../views/generic/user_search/input.jst.eco | 2 +- .../user_search/item_organization.jst.eco | 4 +- .../item_organization_members.jst.eco | 2 +- .../generic/user_search/item_user.jst.eco | 2 +- .../generic/user_search/new_user.jst.eco | 2 +- .../app/views/getting_started/admin.jst.eco | 2 +- .../app/views/getting_started/agent.jst.eco | 2 +- .../auto_wizard_enabled.jst.eco | 2 +- .../auto_wizard_failed.jst.eco | 2 +- .../auto_wizard_splash.jst.eco | 2 +- .../app/views/getting_started/base.jst.eco | 2 +- .../app/views/getting_started/channel.jst.eco | 2 +- .../app/views/getting_started/email.jst.eco | 2 +- .../email_notification.jst.eco | 2 +- .../email_pre_configured.jst.eco | 2 +- .../app/views/getting_started/finish.jst.eco | 2 +- .../app/views/getting_started/intro.jst.eco | 2 +- .../app/views/import/index.jst.eco | 2 +- .../javascripts/app/views/import/otrs.jst.eco | 16 +++---- .../app/views/layout_ref/clue_content.jst.eco | 2 +- .../layout_ref/communication_reply.jst.eco | 6 +-- .../app/views/layout_ref/content.jst.eco | 48 +++++++++---------- .../app/views/layout_ref/error.jst.eco | 2 +- .../app/views/layout_ref/highlight.jst.eco | 12 ++--- .../app/views/layout_ref/inputs.jst.eco | 2 +- .../layout_ref/insufficient_rights.jst.eco | 2 +- .../app/views/layout_ref/local_modal.jst.eco | 2 +- .../views/layout_ref/merge_customer.jst.eco | 22 ++++----- .../layout_ref/organization_profile.jst.eco | 6 +-- .../javascripts/app/views/link/info.jst.eco | 4 +- .../javascripts/app/views/login.jst.eco | 6 +-- .../javascripts/app/views/modal.jst.eco | 2 +- .../javascripts/app/views/navigation.jst.eco | 6 +-- .../app/views/navigation/menu.jst.eco | 10 ++-- .../app/views/navigation/personal.jst.eco | 6 +-- .../app/views/navigation/result.jst.eco | 2 +- .../views/organization_profile/object.jst.eco | 2 +- .../app/views/profile/avatar-holder.jst.eco | 2 +- .../app/views/profile/avatar.jst.eco | 2 +- .../app/views/profile/devices.jst.eco | 2 +- .../javascripts/app/views/session.jst.eco | 2 +- .../app/views/task_widget_tasks.jst.eco | 8 ++-- .../javascripts/app/views/ticket_zoom.jst.eco | 8 ++-- .../views/ticket_zoom/article_view.jst.eco | 4 +- .../ticket_zoom/article_view_actions.jst.eco | 2 +- .../app/views/ticket_zoom/highlighter.jst.eco | 4 +- .../ticket_zoom/overview_navigator.jst.eco | 8 ++-- app/assets/javascripts/app/views/user.jst.eco | 2 +- .../app/views/widget/organization.jst.eco | 2 +- .../views/widget/switch_back_to_user.jst.eco | 4 +- .../javascripts/app/views/widget/tag.jst.eco | 2 +- .../views/widget/ticket_stats_list.jst.eco | 2 +- 71 files changed, 164 insertions(+), 164 deletions(-) diff --git a/app/assets/javascripts/app/index.js.coffee b/app/assets/javascripts/app/index.js.coffee index 46a8f30fc..9594524ad 100644 --- a/app/assets/javascripts/app/index.js.coffee +++ b/app/assets/javascripts/app/index.js.coffee @@ -231,7 +231,7 @@ class App extends Spine.Controller # define icon helper params.Icon = (name, className = '') -> - "" + "" # define template JST["app/views/#{name}"](params) diff --git a/app/assets/javascripts/app/views/agent_ticket_create.jst.eco b/app/assets/javascripts/app/views/agent_ticket_create.jst.eco index 60cef79ce..a874a0b26 100644 --- a/app/assets/javascripts/app/views/agent_ticket_create.jst.eco +++ b/app/assets/javascripts/app/views/agent_ticket_create.jst.eco @@ -9,17 +9,17 @@ diff --git a/app/assets/javascripts/app/views/agent_user_create.jst.eco b/app/assets/javascripts/app/views/agent_user_create.jst.eco index 1bc7f2b1a..09d947c51 100644 --- a/app/assets/javascripts/app/views/agent_user_create.jst.eco +++ b/app/assets/javascripts/app/views/agent_user_create.jst.eco @@ -3,7 +3,7 @@
diff --git a/app/assets/javascripts/app/views/generic/attachment_item.jst.eco b/app/assets/javascripts/app/views/generic/attachment_item.jst.eco index 42834a2ab..dfa927c95 100644 --- a/app/assets/javascripts/app/views/generic/attachment_item.jst.eco +++ b/app/assets/javascripts/app/views/generic/attachment_item.jst.eco @@ -2,6 +2,6 @@
<%= @fileName %>
<%= @fileSize %>
- <%- @Icon('icon-diagonal-cross', 'icon icon-diagonal-cross') %><%- @T('Delete File') %> + <%- @Icon('diagonal-cross') %><%- @T('Delete File') %>
\ No newline at end of file diff --git a/app/assets/javascripts/app/views/generic/attribute.jst.eco b/app/assets/javascripts/app/views/generic/attribute.jst.eco index 951eb6f03..6c45d2493 100644 --- a/app/assets/javascripts/app/views/generic/attribute.jst.eco +++ b/app/assets/javascripts/app/views/generic/attribute.jst.eco @@ -9,7 +9,7 @@ <% end %> <% if @attribute.note: %>
- <%- @Icon('icon-help', 'icon-help') %> + <%- @Icon('help') %>
<% end %> diff --git a/app/assets/javascripts/app/views/generic/error/generic.jst.eco b/app/assets/javascripts/app/views/generic/error/generic.jst.eco index 6f36d6de8..180360653 100644 --- a/app/assets/javascripts/app/views/generic/error/generic.jst.eco +++ b/app/assets/javascripts/app/views/generic/error/generic.jst.eco @@ -1,4 +1,4 @@
- <%- @Icon('icon-diagonal-cross', 'icon-error icon-diagonal-cross') %> + <%- @Icon('diagonal-cross', 'icon-error') %>

<%- @T('Status Code') %>: <%= @status %>. <%= @detail %>

\ No newline at end of file diff --git a/app/assets/javascripts/app/views/generic/error/not_found.jst.eco b/app/assets/javascripts/app/views/generic/error/not_found.jst.eco index fb22fb00d..358b76c33 100644 --- a/app/assets/javascripts/app/views/generic/error/not_found.jst.eco +++ b/app/assets/javascripts/app/views/generic/error/not_found.jst.eco @@ -1,4 +1,4 @@
- <%- @Icon('icon-diagonal-cross', 'icon-error icon-diagonal-cross') %> + <%- @Icon('diagonal-cross', 'icon-error') %>

<%- @T('Opps.. I\'m sorry, but I can\'t find this %s.', @objectName ) %>

\ No newline at end of file diff --git a/app/assets/javascripts/app/views/generic/error/unauthorized.jst.eco b/app/assets/javascripts/app/views/generic/error/unauthorized.jst.eco index de4bf0416..380c5e5d3 100644 --- a/app/assets/javascripts/app/views/generic/error/unauthorized.jst.eco +++ b/app/assets/javascripts/app/views/generic/error/unauthorized.jst.eco @@ -1,4 +1,4 @@
- <%- @Icon('icon-diagonal-cross', 'icon-error icon-diagonal-cross') %> + <%- @Icon('diagonal-cross', 'icon-error') %>

<%- @T('Opps.. I\'m sorry, but you have insufficient rights to open this %s.', @objectName ) %>

\ No newline at end of file diff --git a/app/assets/javascripts/app/views/generic/radio.jst.eco b/app/assets/javascripts/app/views/generic/radio.jst.eco index 968c8005d..ea7282ac2 100644 --- a/app/assets/javascripts/app/views/generic/radio.jst.eco +++ b/app/assets/javascripts/app/views/generic/radio.jst.eco @@ -2,8 +2,8 @@ <% for row in @attribute.options: %> <% end %> diff --git a/app/assets/javascripts/app/views/generic/searchable_select.jst.eco b/app/assets/javascripts/app/views/generic/searchable_select.jst.eco index 18ee3ccf0..5463b410a 100644 --- a/app/assets/javascripts/app/views/generic/searchable_select.jst.eco +++ b/app/assets/javascripts/app/views/generic/searchable_select.jst.eco @@ -16,7 +16,7 @@ - <%- @Icon('icon-arrow-down', 'dropdown-arrow') %> + <%- @Icon('arrow-down', 'dropdown-arrow') %>
diff --git a/app/assets/javascripts/app/views/widget/ticket_stats_list.jst.eco b/app/assets/javascripts/app/views/widget/ticket_stats_list.jst.eco index d75b45afe..ff3d4513f 100644 --- a/app/assets/javascripts/app/views/widget/ticket_stats_list.jst.eco +++ b/app/assets/javascripts/app/views/widget/ticket_stats_list.jst.eco @@ -5,7 +5,7 @@ <% ticket = App.Ticket.fullLocal(ticket_id) %>
  • - <%- @Icon('icon-priority', ticket.icon()) %> + <%- @Icon('priority', ticket.icon()) %>