diff --git a/app/coffee/modules/tasks/detail.coffee b/app/coffee/modules/tasks/detail.coffee index bc8d768d..7a567e3e 100644 --- a/app/coffee/modules/tasks/detail.coffee +++ b/app/coffee/modules/tasks/detail.coffee @@ -26,6 +26,7 @@ groupBy = @.taiga.groupBy module = angular.module("taigaTasks") + ############################################################################# ## Task Detail Controller ############################################################################# @@ -285,11 +286,12 @@ module.directive("tgTaskStatusButton", ["$rootScope", "$tgRepo", "$tgConfirm", " "$compile", "$translate", TaskStatusButtonDirective]) -TaskIsIocaineButtonDirective = ($rootscope, $tgrepo, $confirm, $loading, $qqueue) -> +TaskIsIocaineButtonDirective = ($rootscope, $tgrepo, $confirm, $loading, $qqueue, $compile) -> template = _.template(""" -
+
@@ -309,7 +311,7 @@ TaskIsIocaineButtonDirective = ($rootscope, $tgrepo, $confirm, $loading, $qqueue isIocaine: task.is_iocaine isEditable: isEditable() } - html = template(ctx) + html = $compile(template(ctx))($scope) $el.html(html) save = $qqueue.bindAdd (is_iocaine) => @@ -351,4 +353,5 @@ TaskIsIocaineButtonDirective = ($rootscope, $tgrepo, $confirm, $loading, $qqueue require: "ngModel" } -module.directive("tgTaskIsIocaineButton", ["$rootScope", "$tgRepo", "$tgConfirm", "$tgLoading", "$tgQqueue", TaskIsIocaineButtonDirective]) +module.directive("tgTaskIsIocaineButton", ["$rootScope", "$tgRepo", "$tgConfirm", "$tgLoading", "$tgQqueue", + "$compile", TaskIsIocaineButtonDirective]) diff --git a/app/locales/locale-en.json b/app/locales/locale-en.json index 1fa780dc..be9a26b5 100644 --- a/app/locales/locale-en.json +++ b/app/locales/locale-en.json @@ -657,7 +657,9 @@ "MILESTONE": "Sprint", "USER_STORY": "User story", "IS_IOCAINE": "Is iocaine" - } + }, + "ACTION_IOCAINE": "Iocaine", + "TITLE_ACTION_IOCAINE": "Feeling a bit overwhelmed by a task? Make sure others know about it by clicking on Iocaine when editing a task. It's possible to become immune to this (fictional) deadly poison by consuming small amounts over time just as it's possible to get better at what you do by occasionally taking on extra challenges!" }, "NOTIFICATION": { "OK": "Everything is ok", diff --git a/app/locales/locale-es.json b/app/locales/locale-es.json index 797738b2..3c78d229 100644 --- a/app/locales/locale-es.json +++ b/app/locales/locale-es.json @@ -654,7 +654,9 @@ "MILESTONE": "Sprint", "USER_STORY": "Historia de usuario", "IS_IOCAINE": "Tiene iocaína" - } + }, + "ACTION_IOCAINE": "Iocaína", + "TITLE_ACTION_IOCAINE": "¿Te sientes fuera de tu zona de confort en una tarea? Asegúrate de que los demás están al tanto de ello, marca el check de la Iocaína al editar una tarea. Igual eu era posible llegar a ser inmune a este veneno mortal a base de consumir pequeñas dosis a lo largo del tiempo, es posible conseguir mejor en lo que estás haciendo si afrontas de vez en cuando esta clase de retos!" }, "NOTIFICATION": { "OK": "Todo está bien", @@ -741,33 +743,44 @@ "TITLE_NEXT_ISSUE": "petición siguiente", "ACTION_DELETE": "Borrar petición", "LIGHTBOX_TITLE_BLOKING_ISSUE": "Petición bloqueada", - "FIELDS": { - "PRIORITY": "prioridad", - "SEVERITY": "gravedad", - "TYPE": "tipo" - }, "CONFIRM_PROMOTE": { "TITLE": "Promover esta petición a una nueva historia de usuario", "MESSAGE": "¿Está seguro de que desea crear una nueva Historia de Usuario a partir de esta Petición?" }, "FILTERS": { + "TITLE": "Filtros", + "INPUT_SEARCH_PLACEHOLDER": "Asunto o referencia", + "TITLE_ACTION_SEARCH": "Buscar", "ACTION_SAVE_CUSTOM_FILTER": "guardar como atributo personalizado", + "BREADCRUMB": "Filtros", + "TITLE_BREADCRUMB": "Filtros", + "CATEGORIES": { + "TYPE": "Tipo", + "STATUS": "Estado", + "SEVERITY": "Gravedad", + "PRIORITIES": "Prioridad", + "TAGS": "Etiquetas", + "ASSIGNED_TO": "Asignado a", + "CREATED_BY": "Creada por", + "CUSTOM_FILTERS": "Filtros personalizados" + }, "CONFIRM_DELETE": { "TITLE": "Eliminar filtros personalizados", "MESSAGE": "el atributo personalizado '{{customFilterName}}'" - }, - "FILTER_CATEGORY_TYPE": "Tipo", - "FILTER_CATEGORY_STATUS": "Estado", - "FILTER_CATEGORY_SEVERITY": "Gravedad", - "FILTER_CATEGORY_PRIORITIES": "Prioridades", - "FILTER_CATEGORY_TAGS": "Etiquetas", - "FILTER_CATEGORY_ASSIGNED_TO": "Asignado a", - "FILTER_CATEGORY_CREATED_BY": "Creado por", - "CUSTOM_FILTERS": "Filtros personalizados" + } }, "TABLE": { - "COLUMN_CREATED": "Creado", + "COLUMNS": { + "TYPE": "Tipo", + "SEVERITY": "Gravedad", + "PRIORITY": "Prioridad", + "SUBJECT": "Asunto", + "STATUS": "Estado", + "CREATED": "Creado", + "ASSIGNED_TO": "Asignado a" + }, "TITLE_ACTION_CHANGE_STATUS": "Cambio de estado", + "TITLE_ACTION_ASSIGNED_TO": "Asignado a", "EMPTY": { "TITLE": "No hay peticiones a reportar :-)", "SUBTITLE": "¿Ha encontrado una petición?",