Moved modules to components for watchers and assigned

stable
Xavier Julián 2014-07-02 10:08:18 +02:00
parent 33f540e663
commit c56f85cb11
5 changed files with 30 additions and 28 deletions

View File

@ -11,9 +11,11 @@ block content
include views/components/mainTitle include views/components/mainTitle
a.button.button-green(href="", title="Edit") Edit a.button.button-green(href="", title="Edit") Edit
section.us-story-main-data section.us-story-main-data
h2.us-title div.us-title
h2
span.us-number(tg-bo-html="issue.ref") span.us-number(tg-bo-html="issue.ref")
span.us-name(ng-bind="issue.subject") span.us-name(ng-bind="issue.subject")
input(type="text", placeholder="Set title")
// div.blocked-warning // div.blocked-warning
// span.icon.icon-warning // span.icon.icon-warning
@ -61,17 +63,9 @@ block content
span.points 10 span.points 10
span.role UX span.role UX
include views/components/assigned-to
// TODO: change clase section.watchers
section.us-detail-assigned-to include views/components/watchers
div.user-avatar
a.avatar(href="", title="Assigned to")
img(src="http://thecodeplayer.com/u/uifaces/18.jpg", alt="username")
div.assigned-to
span.assigned-title Assigned to
span.user-assigned Anler Hernández
include views/modules/watchers
// NOTE: only for user story? // NOTE: only for user story?
// section.us-detail-settings // section.us-detail-settings

View File

@ -0,0 +1,7 @@
section.us-detail-assigned-to
div.user-avatar
a.avatar(href="", title="Assigned to")
img(src="http://thecodeplayer.com/u/uifaces/18.jpg", alt="username")
div.assigned-to
span.assigned-title Assigned to
span.user-assigned Anler Hernández

View File

@ -0,0 +1,13 @@
//- Father [section.watchers] should be out of the template
div.watchers-header
span.title watchers
a.icon.icon-plus(href="", title="Add watcher")
div.watchers-content
- for(var y=0; y<5; y++)
div.watcher-single
div.watcher-avatar
a.avatar(href="", title="Assigned to")
img(src="http://thecodeplayer.com/u/uifaces/32.jpg", alt="username")
div.watcher-name
a(href="", title="Jesús Espino") Jesús
a.icon.icon-delete(href="", title="delete-watcher")

View File

@ -1,13 +0,0 @@
section.watchers
div.watchers-header
span.title watchers
a.icon.icon-plus(href="", title="Add watcher")
div.watchers-content
- for(var y=0; y<5; y++)
div.watcher-single
div.watcher-avatar
a.avatar(href="", title="Assigned to")
img(src="http://thecodeplayer.com/u/uifaces/32.jpg", alt="username")
div.watcher-name
a(href="", title="Jesús Espino") Jesús
a.icon.icon-delete(href="", title="delete-watcher")

View File

@ -53,6 +53,7 @@
} }
ul { ul {
float: right; float: right;
margin: 0;
} }
li { li {
display: inline-block; display: inline-block;
@ -65,7 +66,7 @@
background: $gray-light; background: $gray-light;
border-radius: 2px; border-radius: 2px;
height: 8px; height: 8px;
margin-bottom: 0; margin-bottom: 1rem;
margin-top: .5rem; margin-top: .5rem;
position: relative; position: relative;
width: 100%; width: 100%;