diff --git a/app/assets/stylesheets/dashboard.scss b/app/assets/stylesheets/dashboard.scss
index b7dac1e4b..b6a70ae86 100644
--- a/app/assets/stylesheets/dashboard.scss
+++ b/app/assets/stylesheets/dashboard.scss
@@ -27,17 +27,23 @@
}
.dashboard-proposals-stats {
+ text-align: center;
border: 2px solid $highlight;
border-radius: rem-calc(6);
margin-bottom: $line-height;
padding: $line-height / 2;
- .counter {
- text-align: center;
+ @include breakpoint(medium only) {
+ .change-behaviour {
+ padding: $line-height;
+ margin-top: $line-height;
+ float: left;
+ width: 100%;
+ margin-top: $line-height / 2;
+ }
}
.counter-divider {
-
@include breakpoint(medium) {
border-left: 2px solid $highlight;
}
@@ -48,10 +54,9 @@
}
.supports {
- margin-top: $line-height;
- @include breakpoint(large) {
- margin-top: 0;
+ .counter-label {
+ display: block;
}
}
@@ -68,7 +73,7 @@
.progress {
background: #f0efea;
border-radius: rem-calc(6);
- height: $line-height;
+ height: $line-height / 2;
}
.progress-meter {
diff --git a/app/views/layouts/dashboard/_proposal_totals.html.erb b/app/views/layouts/dashboard/_proposal_totals.html.erb
index 06059067a..7b72cdd30 100644
--- a/app/views/layouts/dashboard/_proposal_totals.html.erb
+++ b/app/views/layouts/dashboard/_proposal_totals.html.erb
@@ -18,39 +18,44 @@
-
-
-
- <%= number_with_delimiter(proposal.votes_for.size, delimiter: '.') %>
- /
- <%= t("layouts.dashboard.proposal_totals.support_count", count: number_with_delimiter(next_goal_supports, delimiter: '.')) %>
-
-
<%= t("layouts.dashboard.proposal_totals.current_goal") %>
-
-
-
-
-
-
-
- <%= next_goal_progress %>%
+
+
+
+
+ <%= number_with_delimiter(proposal.votes_for.size, delimiter: '.') %>
+ /
+ <%= t("layouts.dashboard.proposal_totals.support_count", count: number_with_delimiter(next_goal_supports, delimiter: '.')).html_safe %>
-
" aria-valuemax="100">
-
+
<%= t("layouts.dashboard.proposal_totals.current_goal") %>
+
+
+
+ <%= next_goal_progress %>%
+
+
" aria-valuemax="100">
+
+
+
+
+
+
+
+
+
+
+
+
+ <% if proposal.draft? %>
+ <%= link_to t('layouts.dashboard.proposal_totals.preview_proposal'), proposal_path(proposal), class: 'button success expanded', target: '_blank' %>
+ <% else %>
+ <%= link_to t('layouts.dashboard.proposal_totals.show_proposal'), proposal_path(proposal), class: 'button success expanded', target: '_blank' %>
+ <% end %>
+
-
-
- <% if proposal.draft? %>
- <%= link_to t('layouts.dashboard.proposal_totals.preview_proposal'), proposal_path(proposal), class: 'button success expanded', target: '_blank' %>
- <% else %>
- <%= link_to t('layouts.dashboard.proposal_totals.show_proposal'), proposal_path(proposal), class: 'button success expanded', target: '_blank' %>
- <% end %>
-
-
diff --git a/config/locales/es/general.yml b/config/locales/es/general.yml
index 46422fd8c..342a74dc9 100644
--- a/config/locales/es/general.yml
+++ b/config/locales/es/general.yml
@@ -211,8 +211,8 @@ es:
preview_proposal: Previsualizar propuesta
current_goal: Meta actual
support_count:
- one: "%{count} apoyo"
- other: "%{count} apoyos"
+ one: "%{count}
Apoyo"
+ other: "%{count}
Apoyos"
footer:
accessibility: Accesibilidad
conditions: Condiciones de uso