From 51865bf78ea61d352e60e8aa8eb43f83e050d2ba Mon Sep 17 00:00:00 2001 From: Denny Bresch Date: Fri, 12 Jul 2019 12:55:11 +0200 Subject: [PATCH] Maintenance: Improves layout_ref/ui. --- .../app/views/layout_ref/ui.jst.eco | 80 +++++++++++++++++-- 1 file changed, 72 insertions(+), 8 deletions(-) diff --git a/app/assets/javascripts/app/views/layout_ref/ui.jst.eco b/app/assets/javascripts/app/views/layout_ref/ui.jst.eco index 53547c58d..962a6e4b0 100644 --- a/app/assets/javascripts/app/views/layout_ref/ui.jst.eco +++ b/app/assets/javascripts/app/views/layout_ref/ui.jst.eco @@ -1,23 +1,87 @@
+
<%- @T('Back') %>
+
+

Tiki

- <% for state in ['supergood', 'good', 'ok', 'bad', 'super-bad']: %> - <%- @Icon("mood-#{state}", 'stat-icon mood-icon') %> - <% end %> + + + + + + <% for state in ['supergood', 'good', 'ok', 'bad', 'superbad']: %> + + + + + <% end %> +
TikiName
+ <%- @Icon("mood-#{state}", 'stat-icon mood-icon') %> + + mood-<%- state %> +
+

Ticket traffic light colors

- <%- @Icon("task-state", 'open') %> - <%- @Icon("task-state", 'pending') %> - <%- @Icon("task-state", 'escalating') %> - <%- @Icon("task-state", 'closed') %> + + + + + + <% for state in ['open', 'pending', 'escalating', 'closed']: %> + + + + + <% end %> +
task-stateName
+ <%- @Icon("task-state", "#{state}") %> + + <%- state %> +

-

Colors

+

Colors via css classes

+ + + + + + <% for state in ['icon-checkbox', 'supergood-color', 'good-color', 'ok-color', 'bad-color', 'superbad-color', 'u-high-priority-color', 'u-low-priority-color', 'icon-error', 'icon-knowledge-base','icon-checkmark' ]: %> + + + + + <% end %> +
ViewClass
+ <%- @Icon("logotype", "#{state}") %> + + <%- state %> +
+
+

Icons

+ + + + + + + <% for icon in ['archived-modifier','arrow-down','arrow-left','arrow-right','arrow-up','bold','chain','chat','checkbox-checked','checkbox-indeterminate','checkbox','checkmark','clipboard','clock','cloud','cog','crown','danger','dashboard','diagonal-cross','document','download','draft-modifier','draggable','dropdown-list','email-button','email','external','eye','eyedropper','facebook-button','facebook','file-archive','file-code','file-email','file-excel','file-pdf','file-powerpoint','file-text','file-unknown','file-word','form','forward','full-logo','github-button','gitlab-button','google-button','group','help','horizontal-rule','important','in-process','inactive-organization','inactive-user','info','internal-modifier','italic','knowledge-base-answer','knowledge-base','line-left-arrow','line-right-arrow','linkedin-button','list','loading','lock-open','lock','logo','logotype','long-arrow-down','long-arrow-right','low-priority','magnifier','marker','message','minus-small','minus','mood-bad','mood-good','mood-ok','mood-sad','mood-superbad','mood-supergood','mute','note','oauth2-button','office365-button','one-ticket','organization','outbound-calls','overflow-button','overviews','package','paperclip','pen','person','phone','plus-small','plus','printer','radio-checked','radio','rearange','received-calls','reload','reopening','reply-all','reply','report','searchdetail','signout','small-dot','sms','spinner-small','split','status-modified-outer-circle','status','stopwatch','strikethrough','switchView','task-state','team','telegram','templates','tools','total-tickets','trash','twitter-button','twitter','underline','unmute','unordered-list','user','web','weibo-button','zoom-in','zoom-out']: %> + + + + + <% end %> +
IconName
+ <%- @Icon( "#{icon}") %> + + <%- icon %> +
\ No newline at end of file