Sprints sidebar emty fixes

stable
Xavier Julián 2015-10-05 14:27:32 +02:00 committed by Alejandro Alonso
parent feea0cb823
commit c1fa656d90
4 changed files with 38 additions and 21 deletions

View File

@ -946,8 +946,7 @@
"LINK_TASKBOARD": "Sprint Taskboard", "LINK_TASKBOARD": "Sprint Taskboard",
"TITLE_LINK_TASKBOARD": "Go to Taskboard of \"{{name}}\"", "TITLE_LINK_TASKBOARD": "Go to Taskboard of \"{{name}}\"",
"NUMBER_SPRINTS": "<br/>sprints", "NUMBER_SPRINTS": "<br/>sprints",
"EMPTY": "YOU HAVE NO SPRINTS CREATED", "EMPTY": "YOU HAVE NO SPRINTS",
"ACTION_NEW_SPRINT": "+ New sprint",
"TITLE_ACTION_NEW_SPRINT": "Add new sprint", "TITLE_ACTION_NEW_SPRINT": "Add new sprint",
"TEXT_ACTION_NEW_SPRINT": "You may want to create a new sprint in your project", "TEXT_ACTION_NEW_SPRINT": "You may want to create a new sprint in your project",
"ACTION_SHOW_CLOSED_SPRINTS": "Show closed sprints", "ACTION_SHOW_CLOSED_SPRINTS": "Show closed sprints",

View File

@ -1,14 +1,19 @@
section.sprints section.sprints
header header.sprint-header
h1(translate="BACKLOG.SPRINTS.TITLE") h1
//- span.number(
div.summary ng-bind="totalMilestones"
div.total-sprints ng-if="totalMilestones"
span.number(ng-bind="totalMilestones") -- )
a.button-green.add-sprint(href="", title="{{ 'BACKLOG.SPRINTS.TITLE_ACTION_NEW_SPRINT' | translate }}", span(translate="BACKLOG.SPRINTS.TITLE")
span.description(translate="BACKLOG.SPRINTS.NUMBER_SPRINTS") a.add-sprint(
ng-click="ctrl.addNewSprint()", tg-check-permission="add_milestone") href=""
span.text(translate="BACKLOG.SPRINTS.ACTION_NEW_SPRINT") title="{{ 'BACKLOG.SPRINTS.TITLE_ACTION_NEW_SPRINT' | translate}}"
ng-click="ctrl.addNewSprint()"
ng-if="totalMilestones"
tg-check-permission="add_milestone"
)
include ../../../svg/add.svg
div.sprints-empty(ng-if="!totalMilestones") div.sprints-empty(ng-if="!totalMilestones")
img( img(

View File

@ -1,17 +1,27 @@
.sprints { .sprints {
.summary { .sprint-header {
background: darken($whitish, 10%); align-content: center;
align-items: center;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
} }
.total-sprints { h1 {
align-items: flex-start; margin: 0;
color: $grayer;
display: flex;
} }
.add-sprint { .add-sprint {
margin: 0; background: $primary;
padding: .3rem 1.5rem; padding: .25rem .25rem 0;
transition: background .2s;
&:hover {
background: $primary-light;
}
svg {
height: 1.4rem;
width: 1.5rem;
}
path {
fill: $whitish;
}
} }
.filter-closed-sprints { .filter-closed-sprints {
@extend %small; @extend %small;
@ -237,7 +247,7 @@
text-align: center; text-align: center;
img { img {
margin: 1rem 0; margin: 1rem 0;
width: 60%; width: 50%;
} }
.title { .title {
@extend %large; @extend %large;

3
app/svg/add.svg Normal file
View File

@ -0,0 +1,3 @@
<svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000" version="1.1">
<path d="m462.1 73.3 0 352.3-352.4 0 0 75.8 352.4 0 0 352.3 75.8 0 0-352.3 352.4 0 0-75.8-352.4 0 0-352.3-75.8 0z"/>
</svg>

After

Width:  |  Height:  |  Size: 246 B