diff --git a/src/app/components/proposal-box/proposal-box.directive.js b/src/app/components/proposal-box/proposal-box.directive.js index 4f6ceda..c8e74bc 100644 --- a/src/app/components/proposal-box/proposal-box.directive.js +++ b/src/app/components/proposal-box/proposal-box.directive.js @@ -90,17 +90,6 @@ }, 10); }; - ProposalBoxController.prototype.showContent = function(slug) { - var vm = this; - - vm.$state.go('programa', { - slug: slug, - proposal_id: vm.proposal.id - }, { - location: true - }); - }; - ProposalBoxController.prototype.canVote = function() { var vm = this; diff --git a/src/app/components/proposal-box/proposal-box.html b/src/app/components/proposal-box/proposal-box.html index 43ed7c1..a3c5138 100644 --- a/src/app/components/proposal-box/proposal-box.html +++ b/src/app/components/proposal-box/proposal-box.html @@ -145,16 +145,18 @@
{{vm.proposal.abstract}}
- - + ui-sref="programa({slug: vm.topic.slug, proposal_id: vm.proposal.id})" + ui-sref-opts="{location: true}" + >Ir para o programa
@@ -185,7 +187,7 @@
-
+
-
-
- - Colocação nos resultados: - {{vm.proposal.ranking_position}}º + +
+ +
+ +
+
+
+ + Colocação nos resultados: + {{vm.proposal.ranking_position}}º +
diff --git a/src/app/components/proposal-box/proposal-box.scss b/src/app/components/proposal-box/proposal-box.scss index 56d6241..c41168a 100644 --- a/src/app/components/proposal-box/proposal-box.scss +++ b/src/app/components/proposal-box/proposal-box.scss @@ -39,6 +39,12 @@ border-bottom-right-radius: 5px; // overflow: hidden; border-bottom: 5px solid #dadada; + + @each $category, $color in $categories { + .#{$category} &.archived { + border-bottom-color: map-get($categories-complementary-2, $category); + } + } } &--theme { @@ -60,7 +66,8 @@ .contraste & { background-color: #000 !important; outline: 1px solid #eee; } } - &--ranking { + &--ranking, + &--archived { font-weight: bold; padding: 10px 0; background-color: #dadada; @@ -68,6 +75,14 @@ .contraste & { background-color: #111 !important; outline: 1px solid #eee; } } + &--archived { + text-transform: uppercase; + font-size: 12px; + line-height: 23px; + + a { color: #fff; } + } + .action-label { margin-top: 10px; } -- libgit2 0.21.2