Skip to content

Commit

Permalink
Merge pull request #672 from hansonwu/link_to_remote_fix_one
Browse files Browse the repository at this point in the history
A few fixes for rubrics
  • Loading branch information
benjaminvialle committed Feb 19, 2012
2 parents d33d1f1 + 8e65b70 commit 504a786
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions app/views/rubrics/_rubric_criterion.html.erb
Expand Up @@ -4,33 +4,32 @@
<%= image_tag "handle.png" %>
</span>
<span class="criterion_title_div link">
<%= link_to_remote truncate(criterion.rubric_criterion_name,
<%= link_to truncate(criterion.rubric_criterion_name,
:length => 30,
:omission => '...'),
:url => edit_assignment_rubric_path(@assignment,
criterion),
:method => 'get',
:html => {:id => "criterion_title_#{criterion.id}"} %>
edit_assignment_rubric_path(@assignment, criterion),
:id => "criterion_title_#{criterion.id}",
:remote => true %>
</span>
<span class="criterion_arrow">
<% if location != :first and location != :single %>
<%= link_to_remote image_tag("icons/bullet_arrow_up.png",
:alt => t('rubric_criteria.move_up')),
:url => move_criterion_assignment_rubric_path(
<%= link_to image_tag("icons/bullet_arrow_up.png",
:alt => t('rubric_criteria.move_up')),
move_criterion_assignment_rubric_path(
@assignment,
criterion,
:position => criterion.position,
:direction => :up),
:method => 'get' %>
:remote => true %>
<% end %> <br /> <% if location != :last and location != :single %>
<%= link_to_remote image_tag("icons/bullet_arrow_down.png",
<%= link_to image_tag("icons/bullet_arrow_down.png",
:alt => t('rubric_criteria.move_down')),
:url => move_criterion_assignment_rubric_path(
move_criterion_assignment_rubric_path(
@assignment,
criterion,
:position => criterion.position,
:direction => :down),
:method => 'get' %>
:direction => :down),
:remote => true %>
<% end %>
</span>
<span id="criterion_weight_<%= criterion.id %>" class="criterion_weight">
Expand Down

0 comments on commit 504a786

Please sign in to comment.