Fixing translations
parent
c7835769e7
commit
f614c3eb19
|
@ -1067,14 +1067,16 @@ module.directive("tgBurndownBacklogGraph", ["$translate", BurndownBacklogGraphDi
|
||||||
## Backlog progress bar directive
|
## Backlog progress bar directive
|
||||||
#############################################################################
|
#############################################################################
|
||||||
|
|
||||||
TgBacklogProgressBarDirective = ($template) ->
|
TgBacklogProgressBarDirective = ($template, $compile) ->
|
||||||
template = $template.get("backlog/progress-bar.html", true)
|
template = $template.get("backlog/progress-bar.html", true)
|
||||||
|
|
||||||
render = (el, projectPointsPercentaje, closedPointsPercentaje) ->
|
render = (scope, el, projectPointsPercentaje, closedPointsPercentaje) ->
|
||||||
el.html(template({
|
html = template({
|
||||||
projectPointsPercentaje: projectPointsPercentaje,
|
projectPointsPercentaje: projectPointsPercentaje,
|
||||||
closedPointsPercentaje:closedPointsPercentaje
|
closedPointsPercentaje:closedPointsPercentaje
|
||||||
}))
|
})
|
||||||
|
html = $compile(html)(scope)
|
||||||
|
el.html(html)
|
||||||
|
|
||||||
adjustPercentaje = (percentage) ->
|
adjustPercentaje = (percentage) ->
|
||||||
adjusted = _.max([0 , percentage])
|
adjusted = _.max([0 , percentage])
|
||||||
|
@ -1098,11 +1100,11 @@ TgBacklogProgressBarDirective = ($template) ->
|
||||||
|
|
||||||
projectPointsPercentaje = adjustPercentaje(projectPointsPercentaje - 3)
|
projectPointsPercentaje = adjustPercentaje(projectPointsPercentaje - 3)
|
||||||
closedPointsPercentaje = adjustPercentaje(closedPointsPercentaje - 3)
|
closedPointsPercentaje = adjustPercentaje(closedPointsPercentaje - 3)
|
||||||
render($el, projectPointsPercentaje, closedPointsPercentaje)
|
render($scope, $el, projectPointsPercentaje, closedPointsPercentaje)
|
||||||
|
|
||||||
$scope.$on "$destroy", ->
|
$scope.$on "$destroy", ->
|
||||||
$el.off()
|
$el.off()
|
||||||
|
|
||||||
return {link: link}
|
return {link: link}
|
||||||
|
|
||||||
module.directive("tgBacklogProgressBar", ["$tgTemplate", TgBacklogProgressBarDirective])
|
module.directive("tgBacklogProgressBar", ["$tgTemplate", "$compile", TgBacklogProgressBarDirective])
|
||||||
|
|
|
@ -343,7 +343,7 @@
|
||||||
"DESCRIPTION": "Type a short description",
|
"DESCRIPTION": "Type a short description",
|
||||||
"DEPRECATED": "(deprecated)",
|
"DEPRECATED": "(deprecated)",
|
||||||
"DEPRECATED_FILE": "Deprecated?",
|
"DEPRECATED_FILE": "Deprecated?",
|
||||||
"ADD": "Add new attachment. <%- maxFileSizeMsg %>",
|
"ADD": "Add new attachment. {{maxFileSizeMsg}}",
|
||||||
"MAX_FILE_SIZE": "[Max. size: {{maxFileSize}}]",
|
"MAX_FILE_SIZE": "[Max. size: {{maxFileSize}}]",
|
||||||
"SHOW_DEPRECATED": "+ show deprecated atachments",
|
"SHOW_DEPRECATED": "+ show deprecated atachments",
|
||||||
"HIDE_DEPRECATED": "- hide deprecated atachments",
|
"HIDE_DEPRECATED": "- hide deprecated atachments",
|
||||||
|
|
|
@ -75,6 +75,6 @@ div.wrapper(ng-controller="UserStoryDetailController as ctrl",
|
||||||
on-delete-go-to-url="onDeleteGoToUrl",
|
on-delete-go-to-url="onDeleteGoToUrl",
|
||||||
ng-model="us")
|
ng-model="us")
|
||||||
|
|
||||||
div.lightbox.lightbox-block(tg-lb-block, title="US.LIGHTBOX_TITLE_BLOKING_US", ng-model="us")
|
div.lightbox.lightbox-block(tg-lb-block, title="{{ 'US.LIGHTBOX_TITLE_BLOKING_US' | translate }}", ng-model="us")
|
||||||
div.lightbox.lightbox-select-user(tg-lb-assignedto)
|
div.lightbox.lightbox-select-user(tg-lb-assignedto)
|
||||||
div.lightbox.lightbox-select-user(tg-lb-watchers)
|
div.lightbox.lightbox-select-user(tg-lb-watchers)
|
||||||
|
|
Loading…
Reference in New Issue