forked from decidim-ice/decidim-module-decidim_awesome
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5768ddd
commit 4439849
Showing
26 changed files
with
78 additions
and
78 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
10 changes: 5 additions & 5 deletions
10
...esome/voting/three_flags_counter/show.erb → ...some/voting/voting_cards_counter/show.erb
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
6 changes: 3 additions & 3 deletions
6
...oting/three_flags_counter/vote_button.erb → ...ting/voting_cards_counter/vote_button.erb
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,15 +1,15 @@ | ||
<%= link_to resource_path, | ||
class: "button #{vote_btn_class} small button--sc#{" disabled" if current_settings.votes_blocked?}", | ||
title: t("decidim.decidim_awesome.voting.three_flags.vote_button") do %> | ||
title: t("decidim.decidim_awesome.voting.voting_cards.vote_button") do %> | ||
<% if user_voted_weight %> | ||
<%= icon "actions", class: "icon" %> <%= t("decidim.decidim_awesome.voting.three_flags.voted") %> | ||
<%= icon "actions", class: "icon" %> <%= t("decidim.decidim_awesome.voting.voting_cards.voted") %> | ||
<% elsif proposal.maximum_votes_reached? && !proposal.can_accumulate_supports_beyond_threshold && current_component.participatory_space.can_participate?(current_user) %> | ||
<%= t("decidim.proposals.proposals.vote_button.maximum_votes_reached") %> | ||
<% elsif vote_limit_enabled? && remaining_votes_count_for(current_user) <= 0 %> | ||
<%= t("decidim.proposals.proposals.vote_button.no_votes_remaining") %> | ||
<% elsif current_settings.votes_blocked? || !current_component.participatory_space.can_participate?(current_user) %> | ||
<%= t("decidim.proposals.proposals.vote_button.votes_blocked") %> | ||
<% else %> | ||
<%= t("decidim.decidim_awesome.voting.three_flags.vote_button") %> | ||
<%= t("decidim.decidim_awesome.voting.voting_cards.vote_button") %> | ||
<% end %> | ||
<% end %> |
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
10 changes: 5 additions & 5 deletions
10
...oting/three_flags_proposal_modal/show.erb → ...ting/voting_cards_proposal_modal/show.erb
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,16 +1,16 @@ | ||
<!--the modal window will be used in another pr--> | ||
<div class="reveal vote_proposal_modal voting-three-flag" id="threeFlagsModalHelp" data-reveal role="dialog" aria-modal="true" aria-labelledby="threeFlagsModalHelp-label"> | ||
<div class="reveal vote_proposal_modal voting-three-flag" id="VotingCardsModalHelp" data-reveal role="dialog" aria-modal="true" aria-labelledby="VotingCardsModalHelp-label"> | ||
<div class="reveal__content"> | ||
<div class="instructions"><%= vote_instructions %></div> | ||
<div class="current-choice voting-three-flags"><div class="vote-card"></div></div> | ||
<div class="current-choice voting-voting_cards"><div class="vote-card"></div></div> | ||
<div class="future-dismiss"> | ||
<%= check_box_tag "three_flag-skip_help", current_component.id, false %> | ||
<%= label_tag "three_flag-skip_help", t("decidim.decidim_awesome.voting.three_flags.modal.skip") %> | ||
<%= label_tag "three_flag-skip_help", t("decidim.decidim_awesome.voting.voting_cards.modal.skip") %> | ||
</div> | ||
|
||
<div class="text-center"> | ||
<button class="button vote-action"><%= t("decidim.decidim_awesome.voting.three_flags.modal.proceed") %></button> | ||
<button class="button cancel-action hollow secondary" data-close><%= t("decidim.decidim_awesome.voting.three_flags.modal.cancel") %></button> | ||
<button class="button vote-action"><%= t("decidim.decidim_awesome.voting.voting_cards.modal.proceed") %></button> | ||
<button class="button cancel-action hollow secondary" data-close><%= t("decidim.decidim_awesome.voting.voting_cards.modal.cancel") %></button> | ||
</div> | ||
</div> | ||
</div> |
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
2 changes: 1 addition & 1 deletion
2
...m/decidim_awesome/voting/three_flags.scss → .../decidim_awesome/voting/voting_cards.scss
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
8 changes: 4 additions & 4 deletions
8
app/views/decidim/decidim_awesome/voting/three_flags/_show_vote_button.html.erb
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,6 +1,6 @@ | ||
<div class="voting-three-flags"> | ||
<%= cell("decidim/decidim_awesome/voting/three_flags_proposal", proposal, from_proposals_list: true) %> | ||
<% if current_component.settings.three_flags_show_modal_help %> | ||
<%= cell("decidim/decidim_awesome/voting/three_flags_proposal_modal", proposal) %> | ||
<div class="voting-voting_cards"> | ||
<%= cell("decidim/decidim_awesome/voting/voting_cards_proposal", proposal, from_proposals_list: true) %> | ||
<% if current_component.settings.voting_cards_show_modal_help %> | ||
<%= cell("decidim/decidim_awesome/voting/voting_cards_proposal_modal", proposal) %> | ||
<% end %> | ||
</div> |
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.