Merge pull request #2103 from consul/polls-results-polish

Polls results polish
This commit is contained in:
BertoCQ
2017-10-23 17:30:33 +02:00
committed by GitHub
5 changed files with 14 additions and 6 deletions

View File

@@ -1807,7 +1807,13 @@
.polls-results-stats {
.sidebar {
border-right: 1px solid $border;
border-bottom: 1px solid $border;
margin-bottom: $line-height;
@include breakpoint(medium) {
border-bottom: 0;
border-right: 1px solid $border;
}
.menu {
padding: 0;

View File

@@ -5,9 +5,9 @@
<%= render "poll_subnav" %>
<div class="row margin">
<div class="small-12 medium-3 column sidebar">
<h4>Preguntas</h4>
<div class="row margin" data-equalizer data-equalize-on="medium">
<div class="small-12 medium-3 column sidebar" data-equalizer-watch>
<p><strong><%= t("polls.show.results.title") %></strong></p>
<ul class="menu vertical">
<%- @poll.questions.each do |question| %>
<li><%=link_to question.title, "##{question.title.parameterize}" %></li>
@@ -15,7 +15,7 @@
</ul>
</div>
<div class="small-12 medium-9 column">
<div class="small-12 medium-9 column" data-equalizer-watch>
<%- @poll.questions.each do |question| %>
<table id="question_<%= question.id %>_results_table">
<h3 id="<%= question.title.parameterize %>"><%= question.title %></h3>

View File

@@ -5,7 +5,7 @@
<%= render "poll_subnav" %>
<div class="row margin" data-equalizer>
<div class="row margin" data-equalizer data-equalize-on="medium">
<div class="small-12 medium-3 column sidebar" data-equalizer-watch>
<p><strong><%= t("polls.show.stats.title") %></strong></p>

View File

@@ -514,6 +514,7 @@ en:
white: "White votes"
null_votes: "Invalid"
results:
title: "Questions"
most_voted_answer: "Most voted answer: "
poll_questions:
create_question: "Create question"

View File

@@ -514,6 +514,7 @@ es:
white: "En blanco"
null_votes: "Nulos"
results:
title: "Preguntas"
most_voted_answer: "Respuesta más votada: "
poll_questions:
create_question: "Crear pregunta para votación"