Skip to content

Commit

Permalink
Merge pull request #623 from daneshd/issue428
Browse files Browse the repository at this point in the history
FIX #428 HTML is escaped from I18n.t - used raw function.
  • Loading branch information
jerboaa committed Jan 30, 2012
2 parents b17cd55 + 6412a51 commit c5f3e56
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion app/views/assignments/student_interface.html.erb
Expand Up @@ -95,7 +95,7 @@
<% @pending_grouping.each do |grouping|%>
<div class="sub_block">
<p><%= I18n.t("student.invited_by", :inviter_last_name => h(grouping.inviter.last_name), :inviter_first_name => h(grouping.inviter.first_name)) %>
<p><%= raw(I18n.t("student.invited_by", :inviter_last_name => h(grouping.inviter.last_name), :inviter_first_name => h(grouping.inviter.first_name))) %>
</p>
<% grouping.student_memberships.each do |member|%>
<ul>
Expand Down
10 changes: 5 additions & 5 deletions app/views/groups/student_manage/_member.html.erb
Expand Up @@ -30,11 +30,11 @@
<% elsif member.membership_status == StudentMembership::STATUSES[:rejected] %>
<% if grouping.inviter.id == @student.id %>
<li>
<%= I18n.t("student.invitation_rejected", :user_last_name => h(member.user.last_name), :user_first_name => h(member.user.first_name)) %>
<%= link_to_remote "<b>x</b>", :method => :delete,
:url => {:action => 'delete_rejected', :id => @assignment.id,
:membership => member.id}%>
</li>
<%= raw(I18n.t("student.invitation_rejected", :user_last_name => h(member.user.last_name), :user_first_name => h(member.user.first_name))) %>
<%= link_to_remote "<b>x</b>", :method => :delete,
:url => {:action => 'delete_rejected', :id => @assignment.id,
:membership => member.id}%>
</li>
<% end %>
<% end %>

4 changes: 2 additions & 2 deletions app/views/results/common/_submission_selector.html.erb
Expand Up @@ -11,8 +11,8 @@
<% end %>
</span>
<span class="middle">
<%= link_to I18n.t("marker.notes",
:notes => @grouping.notes.size),
<%= link_to raw(I18n.t("marker.notes",
:notes => @grouping.notes.size)),
:url => {:controller => 'note',
:action => 'notes_dialog',
:id => @grouping.assignment_id,
Expand Down
2 changes: 1 addition & 1 deletion app/views/submissions/repo_browser.html.erb
Expand Up @@ -42,7 +42,7 @@
</fieldset>
</div>
<div class="global_actions">
<h2><%= I18n.t("browse_submissions.viewing_revision", :revision_number => @revision_number) %>
<h2><%= raw(I18n.t("browse_submissions.viewing_revision", :revision_number => @revision_number)) %>
(<span id="current_revision_timestamp_display">
<%= I18n.l(@revision_timestamp, :format => :long_date) %>
</span>)
Expand Down

0 comments on commit c5f3e56

Please sign in to comment.