Fixed wrong tag beeing used and some styling

This commit is contained in:
Absurdon 2017-10-08 16:03:22 +02:00
parent c8c6d823b1
commit 4435f7f5e6
2 changed files with 5 additions and 5 deletions

View file

@ -5,9 +5,9 @@
<th>Scheduled for</th>
</tr>
<% @match_props && @match_props.each do |mp| %>
<tr>
<th><%= link_to mp.match.contester1, contester_path(mp.match.contester1) %> VS <%= link_to mp.match.contester2, contester_path(mp.match.contester2) %></th>
<th><%= link_to longertime(mp.proposed_time), match_path(mp.match) %></th>
<tr class="<%= cycle('even', 'odd') %>">
<td><%= link_to mp.match.contester1, contester_path(mp.match.contester1) %> VS <%= link_to mp.match.contester2, contester_path(mp.match.contester2) %></td>
<td><%= link_to longertime(mp.proposed_time), match_path(mp.match) %></td>
</tr>
<% end %>
</table>

View file

@ -10,7 +10,7 @@
<th>Time</th>
<th>Status</th>
<% if @match.can_make_proposal?(cuser) %>
<th>Actions</th>
<th class="actions">Actions</th>
<% end %>
</tr>
<% @match.match_proposals.each do |proposal| %>
@ -19,7 +19,7 @@
<td><%= longtime proposal.proposed_time %> </td>
<td><%= MatchProposal.status_strings[proposal.status] %></td>
<% if @match.can_make_proposal?(cuser) %>
<td>
<td class="actions">
<% unless proposal.state_immutable? %>
<%= form_for proposal, url: match_proposal_path(@match, proposal) do |f| %>
<%= f.hidden_field :status, value: 0 %>