From d08274aa5c5273afec76e3f2aabeb397c068101a Mon Sep 17 00:00:00 2001 From: Alinson Xavier Date: Sun, 6 Sep 2015 12:25:56 -0400 Subject: [PATCH] Fix string escaping --- app/views/log/_event_log_entry.html.haml | 2 +- app/views/log/_log_entry.html.haml | 2 +- app/views/log/_news_log_entry.html.haml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/log/_event_log_entry.html.haml b/app/views/log/_event_log_entry.html.haml index 3a99317..6d785c8 100644 --- a/app/views/log/_event_log_entry.html.haml +++ b/app/views/log/_event_log_entry.html.haml @@ -3,4 +3,4 @@ = "excluiu " if entry.kind_of?(EventDeleteLogEntry) = "restaurou " if entry.kind_of?(EventRestoreLogEntry) -= "o evento " + link_to(h(entry.event.title), course_event_url(entry.course, entry.event, :version => entry.version)) += raw "o evento " + link_to(h(entry.event.title), course_event_url(entry.course, entry.event, :version => entry.version)) diff --git a/app/views/log/_log_entry.html.haml b/app/views/log/_log_entry.html.haml index 8e2b376..7ccb6db 100644 --- a/app/views/log/_log_entry.html.haml +++ b/app/views/log/_log_entry.html.haml @@ -2,4 +2,4 @@ = render(:partial => 'log/event_log_entry.html.haml', :locals => { :entry => entry }) if entry.kind_of?(EventLogEntry) = render(:partial => 'log/news_log_entry.html.haml', :locals => { :entry => entry }) if entry.kind_of?(NewsLogEntry) = render(:partial => 'log/wiki_log_entry.html.haml', :locals => { :entry => entry }) if entry.kind_of?(WikiLogEntry) -= "(" + link_to("undo", undo_course_log_url(entry.course, entry.id)) + ")" if entry.reversible? += raw "(" + link_to("undo", undo_course_log_url(entry.course, entry.id)) + ")" if entry.reversible? diff --git a/app/views/log/_news_log_entry.html.haml b/app/views/log/_news_log_entry.html.haml index 28f4020..6d5558d 100644 --- a/app/views/log/_news_log_entry.html.haml +++ b/app/views/log/_news_log_entry.html.haml @@ -3,4 +3,4 @@ = "excluiu " if entry.kind_of?(NewsDeleteLogEntry) = "restaurou " if entry.kind_of?(NewsRestoreLogEntry) -= "a notícia " + link_to(h(entry.news.title), course_news_instance_url(entry.course, entry.news, :version => entry.version)) += raw "a notícia " + link_to(h(entry.news.title), course_news_instance_url(entry.course, entry.news, :version => entry.version))