diff --git a/app/fonts/taiga.eot b/app/fonts/taiga.eot
index e241754a..4e72611c 100644
Binary files a/app/fonts/taiga.eot and b/app/fonts/taiga.eot differ
diff --git a/app/fonts/taiga.svg b/app/fonts/taiga.svg
index 8bfe4808..3d754751 100644
--- a/app/fonts/taiga.svg
+++ b/app/fonts/taiga.svg
@@ -41,4 +41,5 @@
+
diff --git a/app/fonts/taiga.ttf b/app/fonts/taiga.ttf
index d6db0a28..79b6f95f 100644
Binary files a/app/fonts/taiga.ttf and b/app/fonts/taiga.ttf differ
diff --git a/app/fonts/taiga.woff b/app/fonts/taiga.woff
index b8a180d4..a7544e2e 100644
Binary files a/app/fonts/taiga.woff and b/app/fonts/taiga.woff differ
diff --git a/app/partials/issues-detail-edit.jade b/app/partials/issues-detail-edit.jade
index 2b2a6ab9..3ddbb40d 100644
--- a/app/partials/issues-detail-edit.jade
+++ b/app/partials/issues-detail-edit.jade
@@ -12,14 +12,12 @@ block content
a.button.button-green.save-issue(href="", title="Save") Save
section.us-story-main-data
- div.us-title
+ div.us-title(ng-class="{blocked: issue.is_blocked}")
input(type="text", ng-model="issue.subject")
-
- div.blocked-warning(ng-show="issue.is_blocked")
- span.icon.icon-warning
- p.blocked Blocked!
- p(tg-bind-html="issue.blocked_note || 'This issue is blocked'")
- a.button.button-red.button-block.unblock(ng-click="ctrl.unblock()", href="", title="Unblock US") Unblock
+ p.block-desc-container(ng-show="issue.is_blocked")
+ span.block-description-title Blocked
+ span.block-description(tg-bind-html="issue.blocked_note || 'This issue is blocked'")
+ a.unblock(ng-click="ctrl.unblock()", href="", title="Unblock issue") Unblock
div.user-story-tags(tg-tag-line, editable="true", ng-model="issue.tags")
diff --git a/app/partials/issues-detail.jade b/app/partials/issues-detail.jade
index 0cfdaae5..8f972ffb 100644
--- a/app/partials/issues-detail.jade
+++ b/app/partials/issues-detail.jade
@@ -12,20 +12,18 @@ block content
a.button.button-green(href="", title="Edit", tg-nav="project-issues-detail-edit:project=project.slug,ref=issue.ref") Edit
section.us-story-main-data
- div.us-title
+ div.us-title(ng-class="{blocked: issue.is_blocked}")
h2.us-title-text
span.us-number(tg-bo-html="issue.ref")
span.us-name(ng-bind="issue.subject")
+ p.block-desc-container(ng-show="issue.is_blocked")
+ span.block-description-title Blocked
+ span.block-description(tg-bind-html="issue.blocked_note || 'This issue is blocked'")
div.issue-nav
a.icon.icon-arrow-left(ng-show="nextUrl", href="{{ nextUrl }}", title="next issue")
a.icon.icon-arrow-right(ng-show="previousUrl",href="{{ previousUrl }}", title="previous issue")
- div.blocked-warning(ng-show="issue.is_blocked")
- span.icon.icon-warning
- p.blocked Blocked!
- p(tg-bind-html="issue.blocked_note || 'This issue is blocked'")
-
- div.user-story-tags(tg-tag-line, ng-model="issue.tags")
+ div.user-story-tags(tg-tag-line, ng-model="issue.tags", ng-show="issue.tags")
section.us-content.wysiwyg(tg-bind-html="issue.description_html")
diff --git a/app/partials/task-detail-edit.jade b/app/partials/task-detail-edit.jade
index e6bdefe1..5731466b 100644
--- a/app/partials/task-detail-edit.jade
+++ b/app/partials/task-detail-edit.jade
@@ -12,14 +12,12 @@ block content
a.button.button-green.save-task(href="", title="Save") Save
section.us-story-main-data
- div.us-title
+ div.us-title(ng-class="{blocked: task.is_blocked}")
input(type="text", ng-model="task.subject")
-
- div.blocked-warning(ng-show="task.is_blocked")
- span.icon.icon-warning
- p.blocked Blocked!
- p(tg-bind-html="task.blocked_note || 'This task is blocked'")
- a.button.button-red.button-block.unblock(ng-click="ctrl.unblock()", href="", title="Unblock US") Unblock
+ p.block-desc-container(ng-show="task.is_blocked")
+ span.block-description-title Blocked
+ span.block-description(tg-bind-html="task.blocked_note || 'This task is blocked'")
+ a.unblock(ng-click="ctrl.unblock()", href="", title="Unblock task") Unblock
div.user-story-tags(tg-tag-line, editable="true", ng-model="task.tags")
diff --git a/app/partials/task-detail.jade b/app/partials/task-detail.jade
index d5bb6339..bd7dae91 100644
--- a/app/partials/task-detail.jade
+++ b/app/partials/task-detail.jade
@@ -12,20 +12,18 @@ block content
a.button.button-green(href="", title="Edit", tg-nav="project-tasks-detail-edit:project=project.slug,ref=task.ref") Edit
section.us-story-main-data
- div.us-title
+ div.us-title(ng-class="{blocked: task.is_blocked}")
h2.us-title-text
span.us-number(tg-bo-html="task.ref")
span.us-name(ng-bind="task.subject")
+ p.block-desc-container(ng-show="task.is_blocked")
+ span.block-description-title Blocked
+ span.block-description(tg-bind-html="task.blocked_note || 'This task is blocked'")
div.issue-nav
a.icon.icon-arrow-left(ng-show="nextUrl", href="{{ nextUrl }}", title="next task")
a.icon.icon-arrow-right(ng-show="previousUrl",href="{{ previousUrl }}", title="previous task")
- div.blocked-warning(ng-show="task.is_blocked")
- span.icon.icon-warning
- p.blocked Blocked!
- p(tg-bind-html="task.blocked_note || 'This task is blocked'")
-
- div.user-story-tags(tg-tag-line, ng-model="task.tags")
+ div.user-story-tags(tg-tag-line, ng-model="task.tags", ng-show="task.tags")
section.us-content.wysiwyg(tg-bind-html="task.description_html")
diff --git a/app/partials/us-detail-edit.jade b/app/partials/us-detail-edit.jade
index af572dc8..bc6b1bda 100644
--- a/app/partials/us-detail-edit.jade
+++ b/app/partials/us-detail-edit.jade
@@ -12,14 +12,12 @@ block content
a.button.button-green.save-us(href="", title="Save") Save
section.us-story-main-data
- div.us-title
+ div.us-title(ng-class="{blocked: us.is_blocked}")
input(type="text", ng-model="us.subject")
-
- div.blocked-warning(ng-show="us.is_blocked")
- span.icon.icon-warning
- p.blocked Blocked!
- p(tg-bind-html="us.blocked_note || 'This user story is blocked'")
- a.button.button-red.button-block.unblock(ng-click="ctrl.unblock()", href="", title="Unblock US") Unblock
+ p.block-desc-container(ng-show="us.is_blocked")
+ span.block-description-title Blocked
+ span.block-description(tg-bind-html="us.blocked_note || 'This US is blocked'")
+ a.unblock(ng-click="ctrl.unblock()", href="", title="Unblock US") Unblock
div.user-story-tags(tg-tag-line, editable="true", ng-model="us.tags")
diff --git a/app/partials/us-detail.jade b/app/partials/us-detail.jade
index bceb6c69..1099a4a5 100644
--- a/app/partials/us-detail.jade
+++ b/app/partials/us-detail.jade
@@ -12,20 +12,20 @@ block content
a.button.button-green(href="", title="Edit", tg-nav="project-userstories-detail-edit:project=project.slug,ref=us.ref") Edit
section.us-story-main-data
- div.us-title
+ div.us-title(ng-class="{blocked: us.is_blocked}")
h2.us-title-text
span.us-number(tg-bo-html="us.ref")
span.us-name(ng-bind="us.subject")
+
+ p.block-desc-container(ng-show="us.is_blocked")
+ span.block-description-title Blocked
+ span.block-description(tg-bind-html="us.blocked_note || 'This user story is blocked'")
div.issue-nav
a.icon.icon-arrow-left(ng-show="nextUrl", href="{{ nextUrl }}", title="next user story")
a.icon.icon-arrow-right(ng-show="previousUrl",href="{{ previousUrl }}", title="previous user story")
- div.blocked-warning(ng-show="us.is_blocked")
- span.icon.icon-warning
- p.blocked Trolrororo!
- p(tg-bind-html="us.blocked_note || 'This user story is blocked'")
- div.user-story-tags(tg-tag-line, ng-model="us.tags")
+ div.user-story-tags(tg-tag-line, ng-model="us.tags", ng-show="us.tags")
section.us-content.wysiwyg(tg-bind-html="us.description_html")
diff --git a/app/styles/dependencies/typography.scss b/app/styles/dependencies/typography.scss
index 1756ebc8..28f693a0 100755
--- a/app/styles/dependencies/typography.scss
+++ b/app/styles/dependencies/typography.scss
@@ -227,3 +227,6 @@ a:visited {
.icon-check-square:before {
content: 'H';
}
+.icon-warning-alt:before {
+ content: 'I';
+}
diff --git a/app/styles/layout/us-detail.scss b/app/styles/layout/us-detail.scss
index 59ddbf48..f78f9cfb 100644
--- a/app/styles/layout/us-detail.scss
+++ b/app/styles/layout/us-detail.scss
@@ -13,10 +13,33 @@
.us-title {
@extend %large;
@extend %text;
+ @include transition(all .2s linear);
background: $whitish;
- margin-bottom: 1rem;
- padding: 2rem 1rem;
+ margin-bottom: .5rem;
+ padding: 1rem;
position: relative;
+ &.blocked {
+ background: $red;
+ vertical-align: middle;
+ @include transition(all .2s linear);
+ .us-title-text,
+ input {
+ margin-bottom: .5rem;
+ }
+ .us-number,
+ .us-name {
+ color: $white;
+ }
+ .unblock {
+ @extend %bold;
+ color: $white;
+ float: right;
+ &:hover {
+ @include transition(color .3s linear);
+ color: $red-light;
+ }
+ }
+ }
input {
background: $white;
}
@@ -37,42 +60,44 @@
text-transform: uppercase;
white-space: nowrap;
}
- }
- .blocked-warning {
- background: $red;
- color: $white;
- margin-bottom: 1rem;
- padding: 1rem;
- position: relative;
- .icon {
- @extend %xxlarge;
- display: inline;
- left: 1rem;
- position: absolute;
- top: 1rem;
- }
- .blocked {
- @extend %xlarge;
- @extend %bold;
- margin-bottom: .3em;
- }
- p {
+ .block-desc-container {
+ @extend %small;
margin-bottom: 0;
- margin-left: 4rem;
- margin-right: 10rem;
}
- .button-block {
- position: absolute;
- right: 1rem;
- top: 1rem;
+ .block-description-title {
+ @extend %bold;
+ color: $white;
+ margin-right: .5rem;
}
+ .block-description {
+ color: $white;
+ }
+ }
+}
+
+.blocked-warning {
+ margin-bottom: 1rem;
+ .blocked {
+ @extend %title;
+ @extend %xlarge;
+ color: $red;
+ line-height: 2.5rem;
+ margin-bottom: .5rem;
+ }
+ .icon {
+ @extend %xlarge;
+ vertical-align: middle;
+ }
+ .block-description {
+ color: $grayer;
+ margin: 0;
}
}
.issue-nav {
position: absolute;
right: 1rem;
- top: 1.5rem;
+ top: .7rem;
a {
@extend %xlarge;
}