adds i18n to debates' interface
This commit is contained in:
@@ -1,17 +1,17 @@
|
||||
<div id="debate-<%= debate.id %>" class="small-12 medium-6 large-4 column debate">
|
||||
<div class="panel">
|
||||
<i class="fi-comment-quotes left"></i>
|
||||
<span class="label radius right">Debate</span>
|
||||
|
||||
<span class="label radius right"><%= t("debates.debate.debate") %></span>
|
||||
|
||||
<h3><%= link_to debate.title, debate %></h3>
|
||||
<p>Por <%= debate.author.name %> el <%= l debate.created_at.to_date %></p>
|
||||
<p><%= debate.description %></p>
|
||||
<p><%= debate.description %></p>
|
||||
|
||||
<p><%= render 'shared/tags', debate: debate %></p>
|
||||
|
||||
<div class="row votes">
|
||||
<div class="small-8 column">
|
||||
|
||||
|
||||
<%= link_to debate_votes_path(debate, value: 'yes'), :class => 'in-favor', method: "post" do %>
|
||||
<i class="fi-like"></i>
|
||||
<span><%= percentage('likes', debate) %></span>
|
||||
@@ -26,8 +26,8 @@
|
||||
</div>
|
||||
|
||||
<div class="small-4 column">
|
||||
<p class="total-votes right"><%= debate.total_votes %> votos</p>
|
||||
<p class="total-votes right"><%= pluralize(debate.total_votes, t("debates.debate.vote"), t("debates.debate.votes")) %></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<%= form_for(@debate) do |f| %>
|
||||
<% if @debate.errors.any? %>
|
||||
<div id="error_explanation">
|
||||
<h2><%= pluralize(@debate.errors.count, "error") %> prohibited this debate from being saved:</h2>
|
||||
<h2><%= pluralize(@debate.errors.count, t("debates.form.one_error"), t("debates.form.multiple_errors")) %> <%= t("debates.form.not_saved") %>:</h2>
|
||||
|
||||
<ul>
|
||||
<% @debate.errors.full_messages.each do |message| %>
|
||||
@@ -11,23 +11,23 @@
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<p><strong>Título del debate</strong></p>
|
||||
<p>Sé claro y conciso a la hora de poner un título, pero recuerda que debe explicar bien tu idea, ¡es tu carta de entrada!</p>
|
||||
<p><strong><%= t("debates.form.debate_title") %></strong></p>
|
||||
<p><%= t("debates.form.title_instructions") %></p>
|
||||
<%= f.text_field :title %>
|
||||
|
||||
<br/>
|
||||
<p><strong>Describe tu opinión</strong></p>
|
||||
<p>Explica con todo el detalle que puedas y de una manera sencilla la idea y que crees que conseguiríamos con ella</p>
|
||||
<p><strong><%= t("debates.form.debate_text") %></strong></p>
|
||||
<p><%= t("debates.form.text_instructions") %></p>
|
||||
<%= f.text_area :description %>
|
||||
|
||||
<div>
|
||||
<%= f.label :tag_list, "Temas (separados por comas)" %><br />
|
||||
<%= f.label :tag_list, t("debates.form.tags_label") %><br />
|
||||
<%= f.text_field :tag_list, value: @debate.tag_list.to_s %>
|
||||
</div>
|
||||
|
||||
<% if @debate.new_record? %>
|
||||
<%= f.check_box :terms_of_service %>
|
||||
Acepto la política de privacidad y el aviso legal
|
||||
<%= t("debates.form.accept_terms") %>
|
||||
<% end %>
|
||||
|
||||
<%= render 'shared/captcha' %>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<h1>Editing Debate</h1>
|
||||
<h1><%= t("debates.edit.editing") %></h1>
|
||||
|
||||
<%= render 'form' %>
|
||||
|
||||
<%= link_to 'Show', @debate %> |
|
||||
<%= link_to 'Back', debates_path %>
|
||||
<%= link_to t("debates.edit.show_link"), @debate %> |
|
||||
<%= link_to t("debates.edit.back_link"), debates_path %>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<h1>Publicar un debate nuevo</h1>
|
||||
<h1><%= t("debates.new.publish_new") %></h1>
|
||||
|
||||
<%= render 'form' %>
|
||||
<%= render "form" %>
|
||||
|
||||
<%= link_to 'Back', debates_path %>
|
||||
<%= link_to t("debates.new.back_link"), debates_path %>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<article class="debate-show">
|
||||
|
||||
<%= link_to 'Volver', debates_path, :class => 'right' %>
|
||||
<%= link_to t("debates.show.back_link"), debates_path, :class => 'right' %>
|
||||
|
||||
<div class="row">
|
||||
<div id="debate-<%= @debate.id %>" class="small-12 medium-9 column">
|
||||
@@ -30,22 +30,22 @@
|
||||
</div>
|
||||
|
||||
<div class="small-12 column text-center">
|
||||
<p class="total-votes"><%= pluralize(@debate.total_votes, 'voto', 'votos') %> votos</p>
|
||||
<p class="total-votes"><%= pluralize(@debate.total_votes, t("debates.debate.vote"), t("debates.debate.votes")) %></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="comments" class="comments">
|
||||
<h2>Comentarios</h2>
|
||||
<h2><%= t("debates.show.comments") %></h2>
|
||||
<div style="padding-bottom:60px">
|
||||
Deja tu comentario
|
||||
<%= t("debates.show.leave_comment") %>
|
||||
<%= render 'comments/form', parent: @debate %>
|
||||
</div>
|
||||
<%= render @debate.root_comments %>
|
||||
</div>
|
||||
|
||||
<% if current_user && @debate.editable_by?(current_user) %>
|
||||
<%= link_to 'Edit', edit_debate_path(@debate), :class => 'button radius right' %>
|
||||
<%= link_to t("debates.show.edit_debate_link"), edit_debate_path(@debate), :class => 'button radius right' %>
|
||||
<% end %>
|
||||
|
||||
</article>
|
||||
|
||||
Reference in New Issue
Block a user