Show More
Commit Description:
hides deleted user name from messages
Commit Description:
hides deleted user name from messages
References:
File last commit:
Show/Diff file:
Action:
app/views/contests/index.html.erb
| 29 lines
| 836 B
| text/plain
| TextLexer
|
|
r266 | <h1>Listing contests</h1> | ||
|
r267 | <div class="infobox"> | ||
<b>Go back to:</b> [<%= link_to 'contest management', :controller => 'contest_management', :action => 'index' %>] | ||||
|
r266 | </div> | ||
<table> | ||||
<tr> | ||||
|
r279 | <th>Name</th> | ||
|
r266 | <th>Title</th> | ||
|
r267 | <th>Enabled</th> | ||
|
r266 | </tr> | ||
<% @contests.each do |contest| %> | ||||
|
r267 | <% @contest = contest %> | ||
|
r266 | <tr> | ||
|
r279 | <td><%= in_place_editor_field :contest, :name, {}, :rows => 1 %></td> | ||
|
r267 | <td><%= in_place_editor_field :contest, :title, {}, :rows => 1 %></td> | ||
<td><%= in_place_editor_field :contest, :enabled, {}, :rows => 1 %></td> | ||||
|
r266 | <td><%= link_to 'Show', contest %></td> | ||
<td><%= link_to 'Edit', edit_contest_path(contest) %></td> | ||||
<td><%= link_to 'Destroy', contest, :confirm => 'Are you sure?', :method => :delete %></td> | ||||
</tr> | ||||
<% end %> | ||||
</table> | ||||
<br /> | ||||
<%= link_to 'New contest', new_contest_path %> | ||||