hide drag icon in taskboard and sprints when you don't have permissions
parent
662c510ecb
commit
67cae3ae5f
|
@ -0,0 +1 @@
|
|||
juanfran@juanfran.5241:1434345863
|
|
@ -1,7 +1,7 @@
|
|||
div.kanban-table(tg-kanban-squish-column)
|
||||
div.kanban-table-header
|
||||
div.kanban-table-inner
|
||||
h2.task-colum-name(ng-repeat="s in usStatusList track by s.id", ng-style="{'border-top-color':s.color}", tg-bo-title="s.name", ng-class='{vfold:folds[s.id]}')
|
||||
h2.task-colum-name(ng-repeat="s in usStatusList track by s.id", ng-style="{'border-top-color':s.color}", tg-bo-title="s.name", ng-class='{vfold:folds[s.id]}', tg-class-permission="{'readonly': '!modify_task'}")
|
||||
span(tg-bo-bind="s.name")
|
||||
div.options
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ 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.row.milestone-us-item-row(ng-repeat="us in sprint.user_stories track by us.id", tg-bind-scope)
|
||||
div.row.milestone-us-item-row(ng-repeat="us in sprint.user_stories track by us.id", tg-bind-scope, tg-class-permission="{'readonly': '!modify_us'}")
|
||||
div.column-us
|
||||
a.us-name.clickable(tg-nav="project-userstories-detail:project=project.slug,ref=us.ref",
|
||||
tg-nav-get-params="{\"milestone\": {{us.milestone}}}"
|
||||
|
|
|
@ -26,7 +26,7 @@ div.taskboard-table(tg-taskboard-squish-column)
|
|||
include ../components/addnewtask
|
||||
div.taskboard-tasks-box.task-column(ng-repeat="st in taskStatusList track by st.id", tg-taskboard-sortable, class="squish-status-{{st.id}}", ng-class="{'column-fold':statusesFolded[st.id]}", tg-bind-scope)
|
||||
div.taskboard-task(ng-repeat="task in usTasks[us.id][st.id] track by task.id",
|
||||
tg-taskboard-task, tg-bind-scope)
|
||||
tg-taskboard-task, tg-bind-scope, tg-class-permission="{'readonly': '!modify_task'}")
|
||||
include ../components/taskboard-task
|
||||
|
||||
div.task-row(ng-init="us = null", ng-class="{'row-fold':usFolded[null]}")
|
||||
|
@ -38,5 +38,5 @@ div.taskboard-table(tg-taskboard-squish-column)
|
|||
include ../components/addnewtask.jade
|
||||
div.taskboard-tasks-box.task-column(ng-repeat="st in taskStatusList track by st.id", tg-taskboard-sortable, class="squish-status-{{st.id}}", ng-class="{'column-fold':statusesFolded[st.id]}", tg-bind-scope)
|
||||
div.taskboard-task(ng-repeat="task in usTasks[null][st.id] track by task.id",
|
||||
tg-taskboard-task, tg-bind-scope)
|
||||
tg-taskboard-task, tg-bind-scope, tg-class-permission="{'readonly': '!modify_task'}")
|
||||
include ../components/taskboard-task
|
||||
|
|
|
@ -150,6 +150,9 @@
|
|||
&:last-child {
|
||||
border-bottom: 0;
|
||||
}
|
||||
&.readonly {
|
||||
cursor: auto;
|
||||
}
|
||||
&.sortable-placeholder {
|
||||
background: lighten($gray-light, 12%);
|
||||
height: 40px;
|
||||
|
|
|
@ -50,6 +50,11 @@ $column-margin: 0 10px 0 0;
|
|||
height: 100%;
|
||||
overflow: hidden;
|
||||
width: 100%;
|
||||
.taskboard-task {
|
||||
&.readonly {
|
||||
cursor: auto;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.taskboard-table-header {
|
||||
|
|
Loading…
Reference in New Issue