diff --git a/app/views/contests/index.html.erb b/app/views/contests/index.html.erb --- a/app/views/contests/index.html.erb +++ b/app/views/contests/index.html.erb @@ -1,19 +1,24 @@ +<% content_for :head do %> +<%= javascript_include_tag :defaults %> +<% end %> +

Listing contests

-
- Go back to [<%= link_to 'contest management', :controller => 'contest_management', :action => 'index' %>] +
+ Go back to: [<%= link_to 'contest management', :controller => 'contest_management', :action => 'index' %>]
- + <% @contests.each do |contest| %> + <% @contest = contest %> - - + +
TitleEnabledEnabled
<%=h contest.title %><%=h contest.enabled %><%= in_place_editor_field :contest, :title, {}, :rows => 1 %><%= in_place_editor_field :contest, :enabled, {}, :rows => 1 %> <%= link_to 'Show', contest %> <%= link_to 'Edit', edit_contest_path(contest) %> <%= link_to 'Destroy', contest, :confirm => 'Are you sure?', :method => :delete %>