forked from consuldemocracy/consuldemocracy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve styles for budgets voting phase (#20)
Improve styles for budgets voting phase
- Loading branch information
Showing
12 changed files
with
165 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,21 @@ | ||
<span class="total-amount"> | ||
<%= sanitize(ballot.amount_limit_info(heading)) %> | ||
<% if budget.approval_voting? %> | ||
<%= sanitize(ballot.amount_limit_info(heading)) %> | ||
<% else %> | ||
<%= t("budgets.progress_bar.assigned") %> | ||
<span id="amount_spent"><%= @ballot.formatted_amount_spent(@heading) %></span> / | ||
<%= t("budgets.investments.header.price") %> <%= @budget.formatted_heading_price(@heading) %> | ||
<% end %> | ||
</span> | ||
|
||
<div class="progress" role="progressbar" tabindex="0" | ||
<div class="progress progress-bar-indicator" role="progressbar" tabindex="0" | ||
aria-valuenow="<%= ballot.percentage_spent(heading) %>" aria-valuemin="0" aria-valuemax="100"> | ||
<div class="progress-meter" | ||
style="width: <%= ballot.percentage_spent(heading) %>%"> | ||
</div> | ||
</div> | ||
|
||
<p id="amount-spent" class="spent-amount-text" style="width: <%= ballot.percentage_spent(heading) %>%"> | ||
<p class="progress-meter-text spent-amount-text" | ||
style="width: <%= ballot.percentage_spent(heading) %>%"> | ||
<%= render "budgets/ballot/progress_bar/#{ballot.budget.voting_style}", ballot: ballot, heading: heading %> | ||
</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
<small><%= t("budgets.progress_bar.assigned") %></small><%= ballot.formatted_amount_spent(heading) %> | ||
<span id="amount-available" class="amount-available"> | ||
<span id="amount_available" class="amount-available"> | ||
<small><%= t("budgets.progress_bar.available") %></small> | ||
<span><%= ballot.formatted_amount_available(heading) %></span> | ||
</span> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.