parent
4e6f49f8a4
commit
dc423af0e9
|
@ -63,7 +63,7 @@ ColorizeTagsDirective = ->
|
|||
backlog: _.template("""
|
||||
<% _.each(tags, function(tag) { %>
|
||||
<span class="tag"
|
||||
<% if (tag[1] === null || tag[1] == undefined) { %>
|
||||
<% if (tag[1] !== null) { %>
|
||||
style="border-left: 5px solid <%- tag[1] %>"
|
||||
<% } %>
|
||||
title="<%- tag[0] %>"><%- tag[0] %></span>
|
||||
|
@ -73,7 +73,7 @@ ColorizeTagsDirective = ->
|
|||
<% _.each(tags, function(tag) { %>
|
||||
<a class="kanban-tag"
|
||||
href=""
|
||||
<% if (tag[1] === null || tag[1] == undefined) { %>
|
||||
<% if (tag[1] !== null) { %>
|
||||
style="border-color: <%- tag[1] %>"
|
||||
<% } %>
|
||||
title="<%- tag[0] %>" />
|
||||
|
@ -83,7 +83,7 @@ ColorizeTagsDirective = ->
|
|||
<% _.each(tags, function(tag) { %>
|
||||
<a class="taskboard-tag"
|
||||
href=""
|
||||
<% if (tag[1] === null || tag[1] == undefined) { %>
|
||||
<% if (tag[1] !== null) { %>
|
||||
style="border-color: <%- tag[1] %>"
|
||||
<% } %>
|
||||
title="<%- tag[0] %>" />
|
||||
|
|
|
@ -176,8 +176,7 @@ class KanbanUserstoriesService extends taiga.Service
|
|||
us.id = usModel.id
|
||||
us.assigned_to = @.usersById[usModel.assigned_to]
|
||||
us.colorized_tags = _.map us.model.tags, (tag) =>
|
||||
color = @.project.tags_colors[tag]
|
||||
return {name: tag, color: color}
|
||||
return {name: tag[0], color: tag[1]}
|
||||
|
||||
return us
|
||||
|
||||
|
|
|
@ -163,8 +163,7 @@ class TaskboardTasksService extends taiga.Service
|
|||
task.id = taskModel.id
|
||||
task.assigned_to = @.usersById[taskModel.assigned_to]
|
||||
task.colorized_tags = _.map task.model.tags, (tag) =>
|
||||
color = @.project.tags_colors[tag]
|
||||
return {name: tag, color: color}
|
||||
return {name: tag[0], color: tag[1]}
|
||||
|
||||
usTasks[taskModel.user_story][taskModel.status].push(task)
|
||||
|
||||
|
|
Loading…
Reference in New Issue