diff --git a/app/assets/stylesheets/participation.scss b/app/assets/stylesheets/participation.scss index 30d576930..683556229 100644 --- a/app/assets/stylesheets/participation.scss +++ b/app/assets/stylesheets/participation.scss @@ -1317,6 +1317,15 @@ ul.ballot-list { color: #92BA48; } + .button { + background: white; + color: $brand; + } + + .callout.warning a { + color: $color-warning; + } + .info { background: #314253; padding: $line-height; diff --git a/app/views/polls/questions/show.html.erb b/app/views/polls/questions/show.html.erb index 52b8e3774..018f3b986 100644 --- a/app/views/polls/questions/show.html.erb +++ b/app/views/polls/questions/show.html.erb @@ -12,6 +12,14 @@ <%= link_to t('poll_questions.show.original_proposal'), @question.proposal %> <% end %> + + <% if can? :answer, @question %> + <%= link_to t('poll_questions.show.answer_this_question'), + @question.poll, + class: 'large button' %> + <% else %> + <%= render 'polls/reasons_for_not_answering', poll: @question.poll %> + <% end %>