Show More
Commit Description:
* DRY the toggle button via application_helper.rb#toggle_button and _toggle_button.js.haml...
Commit Description:
* DRY the toggle button via application_helper.rb#toggle_button and _toggle_button.js.haml * bootrapize the user_admin * now considering user.enabled * tidy up route
File last commit:
Show/Diff file:
Action:
app/views/main/_problem.html.erb | 21 lines | 586 B | text/plain | TextLexer |
<tr class="info-<%= (problem_counter%2==0) ? "even" : "odd" %>">
<td>
<%= "#{problem_counter+1}" %>
</td>
<td>
<%= "#{problem.name}"%>
</td>
<td>
<%= "#{problem.full_name}" %>
<%= link_to_description_if_any "[#{t 'main.problem_desc'}]", problem %>
</td>
<td align="center">
<%= @prob_submissions[problem.id][:count] %>
</td>
<td>
<%= render :partial => 'submission_short',
:locals => {
:submission => @prob_submissions[problem.id][:submission],
:problem_name => problem.name }%>
</td>
</tr>