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