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