Added support of own icon's in taskbar.

This commit is contained in:
Martin Edenhofer 2014-07-19 23:46:45 +02:00
parent fddfe53538
commit e6cf28b222
3 changed files with 11 additions and 8 deletions

View file

@ -33,13 +33,14 @@ class App.TicketZoom extends App.Controller
meta: =>
meta =
url: @url()
id: @ticket_id
url: @url()
id: @ticket_id
iconClass: "priority"
if @ticket
@ticket = App.Ticket.retrieve( @ticket.id )
meta.head = @ticket.title
meta.title = '#' + @ticket.number + ' - ' + @ticket.title
meta.class = "level-#{@ticket.priority_id}"
@ticket = App.Ticket.retrieve( @ticket.id )
meta.head = @ticket.title
meta.title = '#' + @ticket.number + ' - ' + @ticket.title
meta.class = "level-#{@ticket.priority_id}"
meta
url: =>

View file

@ -15,7 +15,9 @@ class App.UserZoom extends App.Controller
meta =
url: @url()
id: @user_id
class: "level-1"
class: ""
iconClass: "user"
if @user
meta.head = @user.displayName()

View file

@ -1,7 +1,7 @@
<% for item in @item_list: %>
<a href="<%- item.data.url %>" title="<%= item.data.title %>" class="task <%= item.data.class %> horizontal center <% if item.task.active: %>active<% end %>" data-key="<%- item.task.key %>">
<div class="icon-holder centered">
<div class="priority icon<% if item.task.notify: %> modified<% end %>"></div>
<div class="<%= item.data.iconClass %> icon<% if item.task.notify: %> modified<% end %>"></div>
</div>
<div class="name contain-text flex"><%= item.data.head %></div>
<div class="close-task button horizontal centered">