Commit 56b0014301999b9ebd1ab48caa03b2a969115105
1 parent
da22e331
Exists in
master
and in
29 other branches
Fixing html escape on work_assignment
Showing
1 changed file
with
4 additions
and
4 deletions
Show diff stats
plugins/work_assignment/lib/work_assignment_plugin/helper.rb
@@ -7,8 +7,8 @@ module WorkAssignmentPlugin::Helper | @@ -7,8 +7,8 @@ module WorkAssignmentPlugin::Helper | ||
7 | content_tag('th', _('Submission date')) + | 7 | content_tag('th', _('Submission date')) + |
8 | content_tag('th', _('Versions'), :style => 'text-align: center') + | 8 | content_tag('th', _('Versions'), :style => 'text-align: center') + |
9 | content_tag('th', '') | 9 | content_tag('th', '') |
10 | - ) + | ||
11 | - work_assignment.children.map {|author_folder| display_author_folder(author_folder, user)}.join("\n") | 10 | + ).html_safe + |
11 | + work_assignment.children.map {|author_folder| display_author_folder(author_folder, user)}.join("\n").html_safe | ||
12 | ) | 12 | ) |
13 | end | 13 | end |
14 | 14 | ||
@@ -19,8 +19,8 @@ module WorkAssignmentPlugin::Helper | @@ -19,8 +19,8 @@ module WorkAssignmentPlugin::Helper | ||
19 | content_tag('td', time_format(author_folder.children.last.created_at)) + | 19 | content_tag('td', time_format(author_folder.children.last.created_at)) + |
20 | content_tag('td', author_folder.children.count, :style => 'text-align: center') + | 20 | content_tag('td', author_folder.children.count, :style => 'text-align: center') + |
21 | content_tag('td', content_tag('button', _('View all versions'), :class => 'view-author-versions', 'data-folder-id' => author_folder.id)) | 21 | content_tag('td', content_tag('button', _('View all versions'), :class => 'view-author-versions', 'data-folder-id' => author_folder.id)) |
22 | - ) + | ||
23 | - author_folder.children.map {|submission| display_submission(submission, user)}.join("\n") | 22 | + ).html_safe + |
23 | + author_folder.children.map {|submission| display_submission(submission, user)}.join("\n").html_safe | ||
24 | end | 24 | end |
25 | 25 | ||
26 | def display_submission(submission, user) | 26 | def display_submission(submission, user) |