From 87676f52964ffd744ebf957ae2e7557e7f9b99bf Mon Sep 17 00:00:00 2001 From: decabeza Date: Tue, 3 Oct 2017 20:45:31 +0200 Subject: [PATCH] include lorem ipsum content on polls show --- app/assets/stylesheets/participation.scss | 9 ++++++ app/views/polls/show.html.erb | 37 +++++++++++++++++++---- config/locales/en/general.yml | 2 ++ config/locales/es/general.yml | 2 ++ 4 files changed, 44 insertions(+), 6 deletions(-) diff --git a/app/assets/stylesheets/participation.scss b/app/assets/stylesheets/participation.scss index 21160f7e9..5be764745 100644 --- a/app/assets/stylesheets/participation.scss +++ b/app/assets/stylesheets/participation.scss @@ -1568,6 +1568,15 @@ } } +.poll-more-info, +.poll-more-info-answers { + border-top: 1px solid #eee; +} + +.poll-more-info-answers { + background: #fafafa; +} + .poll, .poll-question { border: 1px solid $border; diff --git a/app/views/polls/show.html.erb b/app/views/polls/show.html.erb index 04dce1d40..890e8c56f 100644 --- a/app/views/polls/show.html.erb +++ b/app/views/polls/show.html.erb @@ -7,11 +7,19 @@ <%= back_link_to polls_path, t("polls.show.back") %>

<%= @poll.name %>

- + + +

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo + consequat.

+ + + <% if @poll.geozones.any? %> + + <% end %>