Show More
Commit Description:
removes imported testdata file after extracted
Commit Description:
removes imported testdata file after extracted
References:
File last commit:
Show/Diff file:
Action:
app/views/contests/index.html.erb
| 31 lines
| 822 B
| text/plain
| TextLexer
|
|
r267 | <% content_for :head do %> | ||
<%= javascript_include_tag :defaults %> | ||||
<% end %> | ||||
|
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> | ||||
<th>Title</th> | ||||
|
r267 | <th>Enabled</th> | ||
|
r266 | </tr> | ||
<% @contests.each do |contest| %> | ||||
|
r267 | <% @contest = contest %> | ||
|
r266 | <tr> | ||
|
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 %> | ||||