Show More
Commit Description:
removed caching on Configuration...
Commit Description:
removed caching on Configuration git-svn-id: http://theory.cpe.ku.ac.th/grader/web/trunk@285 6386c4cd-e34a-4fa8-8920-d93eb39b512e
File last commit:
Show/Diff file:
Action:
app/views/problems/list.rhtml | 47 lines | 1.5 KiB | text/html+ruby | RhtmlLexer |
jittat
clean up layouts...
r25 <% content_for :head do %>
<%= stylesheet_link_tag 'scaffold' %>
jittat
[web] in problems, added turn_all_off, and improved ui...
r56 <%= stylesheet_link_tag 'problems' %>
jittat
clean up layouts...
r25 <%= javascript_include_tag :defaults %>
<% end %>
pramook
initial commit...
r0 <h1>Listing problems</h1>
jittat
[web] fixed test page crashes when problem is deleted...
r101 <p>
jittat
[web] in problems, added turn_all_off, and improved ui...
r56 <%= link_to 'New problem', :action => 'new' %>
jittat
[web] fixed test page crashes when problem is deleted...
r101 <%= link_to 'Turn off all problems', :action => 'turn_all_off' %>
<%= link_to 'Turn on all problems', :action => 'turn_all_on' %>
</p>
jittat
fixed layout problem, for real, using render :layout => ......
r27
pramook
initial commit...
r0 <table>
<tr>
jittat
+in_place_editing for problems...
r21 <th>Name</th>
<th>Full name</th>
<th>Full score</th>
<th>Date added</th>
jittat
[web] added test_allowed flag to problems...
r94 <th>Avail?</th>
<th>Test?</th>
pramook
initial commit...
r0 </tr>
<% for problem in @problems %>
jittat
[web] in problems, added turn_all_off, and improved ui...
r56 <tr class="<%= (problem.available) ? "available" : "not-available" %>">
jittat
+in_place_editing for problems...
r21 <% @problem=problem %>
jittat
[web] added test_allowed flag to problems...
r94 <td><%= in_place_editor_field :problem, :name, {}, :rows=>1 %></td>
<td><%= in_place_editor_field :problem, :full_name, {}, :rows=>1 %></td>
<td><%= in_place_editor_field :problem, :full_score, {}, :rows=>1 %></td>
<td><%= problem.date_added %></td>
<td><%= problem.available %></td>
<td><%= problem.test_allowed %></td>
jittat
+in_place_editing for problems...
r21
pramook
initial commit...
r0 <td><%= link_to '[Toggle]', :action => 'toggle_avail', :id => problem.id %></td>
<td><%= link_to '[Stat]', :action => 'stat', :id => problem.id %></td>
<td><%= link_to '[Show]', :action => 'show', :id => problem %></td>
<td><%= link_to '[Edit]', :action => 'edit', :id => problem %></td>
<td><%= link_to '[Destroy]', { :action => 'destroy', :id => problem }, :confirm => 'Are you sure?', :method => :post %></td>
</tr>
<% end %>
</table>
<br />
<%= link_to 'New problem', :action => 'new' %>