Merge pull request #819 from taigaio/sprint-empty-anonymous
Add message for anonymous users in empty sprintsstable
commit
a443b99d49
|
@ -1027,6 +1027,7 @@
|
|||
"TITLE_LINK_TASKBOARD": "Go to Taskboard of \"{{name}}\"",
|
||||
"NUMBER_SPRINTS": "<br/>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",
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue