diff --git a/app/locales/taiga/locale-en.json b/app/locales/taiga/locale-en.json index 199bb05c..cd747b34 100644 --- a/app/locales/taiga/locale-en.json +++ b/app/locales/taiga/locale-en.json @@ -1027,6 +1027,7 @@ "TITLE_LINK_TASKBOARD": "Go to Taskboard of \"{{name}}\"", "NUMBER_SPRINTS": "
sprints", "EMPTY": "There are no sprints yet", + "WARNING_EMPTY_SPRINT_ANONYMOUS": "This sprint has no User Stories", "WARNING_EMPTY_SPRINT": "Drop here Stories from your backlog to start a new sprint", "TITLE_ACTION_NEW_SPRINT": "Add new sprint", "TEXT_ACTION_NEW_SPRINT": "You may want to create a new sprint in your project", diff --git a/app/partials/includes/modules/sprint.jade b/app/partials/includes/modules/sprint.jade index 29d229ac..ae867c33 100644 --- a/app/partials/includes/modules/sprint.jade +++ b/app/partials/includes/modules/sprint.jade @@ -3,7 +3,9 @@ header(tg-backlog-sprint-header, ng-model="sprint") div.sprint-progress-bar(tg-progress-bar="100 * sprint.closed_points / sprint.total_points") div.sprint-table - div.sprint-empty(ng-if="!sprint.user_stories.length") {{ 'BACKLOG.SPRINTS.WARNING_EMPTY_SPRINT' | translate }} + div.sprint-empty(ng-if="!sprint.user_stories.length") + span(tg-class-permission="{'hidden': 'modify_us'}") {{ 'BACKLOG.SPRINTS.WARNING_EMPTY_SPRINT_ANONYMOUS' | translate }} + span(tg-class-permission="{'hidden': '!modify_us'}") {{ 'BACKLOG.SPRINTS.WARNING_EMPTY_SPRINT' | translate }} div.row.milestone-us-item-row( ng-repeat="us in sprint.user_stories track by us.id" tg-bind-scope