From 7aa121341e52571c740006bc8b787d816aaa45fa Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Fri, 4 Sep 2015 14:59:31 +0200 Subject: [PATCH] Moved to new @Icon('icon-name', 'icon-size') helper for .eco files. --- app/assets/javascripts/app/index.js.coffee | 4 ++ .../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 | 18 +++---- .../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 | 50 +++++++++---------- .../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 | 6 +-- .../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 | 18 +++---- .../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 | 12 ++++- 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 | 3 +- .../views/widget/ticket_stats_list.jst.eco | 2 +- 71 files changed, 175 insertions(+), 170 deletions(-) diff --git a/app/assets/javascripts/app/index.js.coffee b/app/assets/javascripts/app/index.js.coffee index 602831265..46a8f30fc 100644 --- a/app/assets/javascripts/app/index.js.coffee +++ b/app/assets/javascripts/app/index.js.coffee @@ -229,6 +229,10 @@ class App extends Spine.Controller humanTime = App.PrettyDate.humanTime(time, escalation) "" + # define icon helper + params.Icon = (name, className = '') -> + "" + # define template JST["app/views/#{name}"](params) template 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 4b6b4dd94..60cef79ce 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 08d301a53..1bc7f2b1a 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 1d8e9c1f9..42834a2ab 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 %>
- <%- @T('Delete File') %> + <%- @Icon('icon-diagonal-cross', 'icon 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 5af10670c..951eb6f03 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') %>
<% 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 4ce46e3f0..6f36d6de8 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') %>

<%- @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 19f720785..fb22fb00d 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') %>

<%- @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 3ad3a7033..de4bf0416 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') %>

<%- @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 be4f998b2..968c8005d 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 2eb8e3f13..18ee3ccf0 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') %>
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 c1f4674ec..d75b45afe 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()) %>