diff --git a/app/coffee/modules/backlog/sprints.coffee b/app/coffee/modules/backlog/sprints.coffee index 750e7374..7a30ba9c 100644 --- a/app/coffee/modules/backlog/sprints.coffee +++ b/app/coffee/modules/backlog/sprints.coffee @@ -54,13 +54,10 @@ BacklogSprintDirective = ($repo, $rootscope) -> $scope.$watch $attrs.tgBacklogSprint, (sprint) -> sprint = $scope.$eval($attrs.tgBacklogSprint) - if $scope.$first - toggleSprint($el) - else if sprint.closed + if sprint.closed $el.addClass("sprint-closed") - else if not $scope.$first and not sprint.closed + else toggleSprint($el) - $el.addClass("sprint-old-open") # Event Handlers $el.on "click", ".sprint-name > .icon-arrow-up", (event) -> diff --git a/app/styles/modules/backlog/sprints.scss b/app/styles/modules/backlog/sprints.scss index 6e9eed93..05545d50 100644 --- a/app/styles/modules/backlog/sprints.scss +++ b/app/styles/modules/backlog/sprints.scss @@ -60,11 +60,11 @@ display: inline-block; } .icon-arrow-up { - transform: rotate(180deg); + transform: rotate(90deg); transition: all .2s linear; vertical-align: baseline; &.active { - transform: rotate(0); + transform: rotate(180deg); transition: all .2s linear; } &:hover { @@ -209,45 +209,11 @@ } } -// If Sprint is open but date is old -.sprint-old-open { - .sprint-name { - .icon-arrow-up { - transform: rotate(180deg); - transition: all .2s linear; - vertical-align: baseline; - &.active { - transform: rotate(0); - transition: all .2s linear; - } - &:hover { - color: $fresh-taiga; - transition: color .2s linear; - } - } - } -} - // If sprint is closed and date is old .sprint-closed { .sprint-table { display: none; } - .sprint-name { - .icon-arrow-up { - transform: rotate(180deg); - transition: all .2s linear; - vertical-align: baseline; - &.active { - transform: rotate(0); - transition: all .2s linear; - } - &:hover { - color: $fresh-taiga; - transition: color .2s linear; - } - } - } .number, .description { color: $gray-light;