Show More
Commit Description:
moved to ror 2.0.2, add user rel to model submission...
Commit Description:
moved to ror 2.0.2, add user rel to model submission
git-svn-id: http://theory.cpe.ku.ac.th/grader/web/trunk@3 6386c4cd-e34a-4fa8-8920-d93eb39b512e
References:
File last commit:
Show/Diff file:
Action:
app/views/problems/list.rhtml
| 31 lines
| 904 B
| text/html+ruby
| RhtmlLexer
|
|
r0 | <h1>Listing problems</h1> | ||
<div class="usermenu"> | ||||
<%= link_to 'Main', :controller => 'main', :action => 'list' %> | ||||
</div> | ||||
<table> | ||||
<tr> | ||||
<% for column in Problem.content_columns %> | ||||
<th><%= column.human_name %></th> | ||||
<% end %> | ||||
</tr> | ||||
<% for problem in @problems %> | ||||
<tr> | ||||
<% for column in Problem.content_columns %> | ||||
<td><%=h problem.send(column.name) %></td> | ||||
<% end %> | ||||
<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' %> | ||||