From 6214bd487435e0e80339cb4d6835c4846733dfa5 Mon Sep 17 00:00:00 2001 From: Alberto Garcia Cabeza Date: Tue, 31 Jan 2017 18:55:30 +0100 Subject: [PATCH 1/2] changes layout on polls index --- app/views/polls/index.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/polls/index.html.erb b/app/views/polls/index.html.erb index d3c7a8031..0d278a8ba 100644 --- a/app/views/polls/index.html.erb +++ b/app/views/polls/index.html.erb @@ -18,7 +18,7 @@ <% @polls.each do |poll| %>
-
+

<%= link_to poll.name, poll %>

<%= poll_dates(poll) %>

    @@ -27,7 +27,7 @@ <% end %>
-
+
<% if can? :answer, poll %> <%= link_to t("polls.index.participate_button"), poll, class: "button" %> <% else %> From 972416842528961e91c02b913e2a45e586eb4a01 Mon Sep 17 00:00:00 2001 From: Alberto Garcia Cabeza Date: Tue, 31 Jan 2017 18:59:26 +0100 Subject: [PATCH 2/2] fixes color of links on questions show header --- app/assets/stylesheets/participation.scss | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/assets/stylesheets/participation.scss b/app/assets/stylesheets/participation.scss index 683556229..6f5117bf2 100644 --- a/app/assets/stylesheets/participation.scss +++ b/app/assets/stylesheets/participation.scss @@ -1333,11 +1333,11 @@ ul.ballot-list { @include breakpoint(medium) { border-top: rem-calc(6) solid #92BA48; } + } - a { - color: white; - text-decoration: underline; - } + a:not(.button) { + color: white; + text-decoration: underline; } .back, .icon-angle-left {