diff --git a/app/assets/stylesheets/admin.scss b/app/assets/stylesheets/admin.scss index ee16c798c..59c1271b4 100644 --- a/app/assets/stylesheets/admin.scss +++ b/app/assets/stylesheets/admin.scss @@ -398,3 +398,18 @@ table.investment-projects-summary { white-space: nowrap; } } + +.geozone { + background: #ececec; + border-radius: rem-calc(6); + color: $text; + display: inline-block; + font-size: $small-font-size; + margin-bottom: $line-height/3; + padding: $line-height/4 $line-height/3; + text-decoration: none; + + &:hover { + background: #e0e0e0; + } +} diff --git a/app/views/admin/poll/questions/show.html.erb b/app/views/admin/poll/questions/show.html.erb index 5d1a0d01c..ba5b6497b 100644 --- a/app/views/admin/poll/questions/show.html.erb +++ b/app/views/admin/poll/questions/show.html.erb @@ -1,42 +1,55 @@ -
+ <%= t("admin.questions.show.author") %>
+
+ <%= link_to @question.author.name, user_path(@question.author) %>
+
+ <%= t("admin.questions.show.valid_answers") %> +
+ + <% @question.valid_answers.each do |answer| %> + + <% end %> + +
+ <%= t("admin.questions.show.summary") %>
+
+ <%= @question.summary %>
+
+ <%= t("admin.questions.show.description") %>
+
+ <%= @question.description %>
+
+ <%= t("admin.questions.show.geozones") %>
+
+ <% @question.geozones.each do |geozone| %>
+
+ <%= geozone.name %>
+
+ <% end %>
+