Improve indentation
This commit is contained in:
parent
b41a0d0417
commit
9993d04ab0
1 changed files with 19 additions and 19 deletions
|
|
@ -3,25 +3,25 @@
|
||||||
<h2><%= _("Votes") %></h2>
|
<h2><%= _("Votes") %></h2>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<% @votes.reverse.each do |vote| %>
|
<% @votes.reverse.each do |vote| %>
|
||||||
<li>
|
<li>
|
||||||
<a href="/votes/<%= vote.secure_id %>"><%= vote.title %></a>
|
<a href="/votes/<%= vote.secure_id %>"><%= vote.title %></a>
|
||||||
<% case vote.state
|
<% case vote.state
|
||||||
when 'draft' %>
|
when 'draft' %>
|
||||||
<% if vote.users.exists?(current_user.id) %><%= _("(Draft, organized by you)") %>
|
<% if vote.users.exists?(current_user.id) %><%= _("(Draft, organized by you)") %>
|
||||||
<% else %><%= _("(Draft)") %>
|
<% else %><%= _("(Draft)") %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% when 'open' %>
|
<% when 'open' %>
|
||||||
<% if vote.users.exists?(current_user.id) %><%= _("(Open, organized by you)") %>
|
<% if vote.users.exists?(current_user.id) %><%= _("(Open, organized by you)") %>
|
||||||
<% else %><%= _("(Open)") %>
|
<% else %><%= _("(Open)") %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% when 'closed' %>
|
<% when 'closed' %>
|
||||||
<% if vote.users.exists?(current_user.id) %><%= _("(Closed, organized by you)") %>
|
<% if vote.users.exists?(current_user.id) %><%= _("(Closed, organized by you)") %>
|
||||||
<% else %><%= _("(Closed)") %>
|
<% else %><%= _("(Closed)") %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</li>
|
</li>
|
||||||
<% end %>
|
<% end %>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<form action="/votes/new" method="get">
|
<form action="/votes/new" method="get">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue