diff --git a/app/assets/stylesheets/participation.scss b/app/assets/stylesheets/participation.scss index 0873e7c7c..270005f88 100644 --- a/app/assets/stylesheets/participation.scss +++ b/app/assets/stylesheets/participation.scss @@ -870,6 +870,12 @@ } } +.investment-project .supports .total-supports.no-button, +.investment-project-show .supports .total-supports.no-button { + display: block; + margin-top: $line-height*1.5; +} + // 05. Featured // - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/app/models/spending_proposal.rb b/app/models/spending_proposal.rb index 7a3dda7c6..d8ae2acf0 100644 --- a/app/models/spending_proposal.rb +++ b/app/models/spending_proposal.rb @@ -113,11 +113,11 @@ class SpendingProposal < ActiveRecord::Base end def reason_for_not_being_votable_by(user) + return :not_voting_allowed if Setting["feature.spending_proposal_features.voting_allowed"].blank? return :not_logged_in unless user return :not_verified unless user.can?(:vote, SpendingProposal) return :unfeasible if unfeasible? return :organization if user.organization? - return :not_voting_allowed if Setting["feature.spending_proposal_features.voting_allowed"].blank? end def votable_by?(user) diff --git a/app/views/spending_proposals/_votes.html.erb b/app/views/spending_proposals/_votes.html.erb index 8dbc2aa3f..85220d6c9 100644 --- a/app/views/spending_proposals/_votes.html.erb +++ b/app/views/spending_proposals/_votes.html.erb @@ -1,15 +1,19 @@