Class: Decidim::DecidimAwesome::Voting::VotingCardsCounterCell
Instance Method Summary
collapse
#component_settings, #current_component, #current_vote, #proposal, #sanitized_title, #user_voted_weight
Instance Method Details
#resource_path ⇒ Object
11
12
13
|
# File 'app/cells/decidim/decidim_awesome/voting/voting_cards_counter_cell.rb', line 11
def resource_path
resource_locator(model).path
end
|
#show ⇒ Object
7
8
9
|
# File 'app/cells/decidim/decidim_awesome/voting/voting_cards_counter_cell.rb', line 7
def show
render :show
end
|
#vote_btn_class ⇒ Object
15
16
17
|
# File 'app/cells/decidim/decidim_awesome/voting/voting_cards_counter_cell.rb', line 15
def vote_btn_class
user_voted_weight ? "weight_#{user_voted_weight.to_i}" : "hollow"
end
|