Add related tasks in a US #723
parent
bfbf5d3b46
commit
142a592042
|
@ -30,6 +30,8 @@ block content
|
||||||
|
|
||||||
section.us-content.wysiwyg(tg-bind-html="us.description_html")
|
section.us-content.wysiwyg(tg-bind-html="us.description_html")
|
||||||
|
|
||||||
|
include views/modules/related-tasks
|
||||||
|
|
||||||
- var attachModel = "us"
|
- var attachModel = "us"
|
||||||
- var permissionSuffix = "us"
|
- var permissionSuffix = "us"
|
||||||
include views/modules/attachments
|
include views/modules/attachments
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
section.related-tasks
|
||||||
|
h2 Related Tasks
|
||||||
|
ul.task-list
|
||||||
|
li.single-related-task(ng-repeat="task in tasks", ng-class="{'closed': task.finished_date, 'blocked': task.is_blocked, 'iocaine': task.is_iocaine}")
|
||||||
|
span.icon.icon-iocaine(ng-show="task.is_iocaine")
|
||||||
|
a(href="", title="{{task.subject}}") {{task.subject}}
|
||||||
|
span.blocked-text(ng-show="task.is_iocaine") (Blocked)
|
|
@ -59,6 +59,7 @@ $prefix-for-spec: true;
|
||||||
@import 'modules/common/comments';
|
@import 'modules/common/comments';
|
||||||
@import 'modules/common/comment-activity';
|
@import 'modules/common/comment-activity';
|
||||||
@import 'modules/common/activity';
|
@import 'modules/common/activity';
|
||||||
|
@import 'modules/common/related-tasks';
|
||||||
|
|
||||||
//Project modules
|
//Project modules
|
||||||
@import 'modules/home-projects-list';
|
@import 'modules/home-projects-list';
|
||||||
|
|
|
@ -38,7 +38,7 @@
|
||||||
input {
|
input {
|
||||||
&:checked {
|
&:checked {
|
||||||
+label {
|
+label {
|
||||||
background: $green-taiga;
|
background: $fresh-taiga;
|
||||||
color: $white;
|
color: $white;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,38 @@
|
||||||
|
.related-tasks {
|
||||||
|
ul {
|
||||||
|
list-style: disc inside;
|
||||||
|
}
|
||||||
|
li {
|
||||||
|
margin-bottom: .5rem;
|
||||||
|
&.iocaine {
|
||||||
|
list-style: none inside;
|
||||||
|
}
|
||||||
|
&.blocked {
|
||||||
|
color: $red;
|
||||||
|
text-decoration: line-through;
|
||||||
|
a {
|
||||||
|
color: $red;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
&.closed {
|
||||||
|
color: $gray-light;
|
||||||
|
text-decoration: line-through;
|
||||||
|
a,
|
||||||
|
.icon-iocaine {
|
||||||
|
color: $gray-light;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
a {
|
||||||
|
color: $grayer;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.icon-iocaine {
|
||||||
|
color: $green-taiga;
|
||||||
|
margin-right: .3rem;
|
||||||
|
position: relative;
|
||||||
|
right: .3rem;
|
||||||
|
}
|
||||||
|
.blocked-text {
|
||||||
|
margin-left: .3rem;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue