t helper invoked with parenthesis

t helper is invoked with parenthesis
This commit is contained in:
Juan Salvador Pérez García
2018-06-22 15:24:29 +02:00
parent 706fdae6d5
commit 67de187bae
5 changed files with 6 additions and 6 deletions

View File

@@ -13,7 +13,7 @@
<tbody>
<% if @administrator_tasks.empty? %>
<tr>
<td colspan="100%"><%= t '.no_records' %></td>
<td colspan="100%"><%= t('.no_records') %></td>
</tr>
<% end %>

View File

@@ -18,7 +18,7 @@
<tbody>
<% if @proposal_dashboard_actions.empty? %>
<tr>
<td colspan="100%"><%= t 'admin.proposal_dashboard_actions.index.no_records' %></td>
<td colspan="100%"><%= t('admin.proposal_dashboard_actions.index.no_records') %></td>
</tr>
<% end %>

View File

@@ -140,7 +140,7 @@
<h2><%= t("votes.supports") %></h2>
<div id="<%= dom_id(@proposal) %>_votes">
<% if @proposal.draft? %>
<p><%= t '.draft' %></p>
<p><%= t('.draft') %></p>
<% elsif @proposal.successful? %>
<p>
<%= t("proposals.proposal.successful",

View File

@@ -1,9 +1,9 @@
<div class=proposal-created>
<div id="<%= dom_id(@proposal) %>" class="row">
<div class="small-12 medium-12 column">
<h1><%= t '.title' %></h1>
<h1><%= t('.title') %></h1>
<%= raw t '.motivation' %>
<%= raw t('.motivation') %>
<%= link_to t('.dashboard'), proposal_dashboard_index_path(@proposal), class: 'button' if can? :dashboard, @proposal %>
<%= link_to t('.publish'), publish_proposal_path(@proposal), method: :patch, class: 'button' if can? :publish, @proposal %>

View File

@@ -30,7 +30,7 @@
<% if can? :dashboard, @proposal %>
<div class="callout light">
<p class="centered">
<strong><%= t '.improve_it' %></strong>
<strong><%= t('.improve_it') %></strong>
</p>
<div class="centered">
<%= link_to t('.dashboard'), proposal_dashboard_index_path(@proposal), class: 'button' %>