From 58e04e23f144e940c01095f66c3cd98367fdbd7d Mon Sep 17 00:00:00 2001 From: Alinson Santos Date: Tue, 18 Mar 2008 16:49:31 -0300 Subject: [PATCH] Bugfix: _wiki_log_entry --- app/views/log/_wiki_log_entry.html.haml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/views/log/_wiki_log_entry.html.haml b/app/views/log/_wiki_log_entry.html.haml index 144042b..0a07d9f 100644 --- a/app/views/log/_wiki_log_entry.html.haml +++ b/app/views/log/_wiki_log_entry.html.haml @@ -1,4 +1,7 @@ -= "Página " + link_to(h(entry.wiki_page.title), course_wiki_url(entry.course, entry.wiki_page.id, :version => entry.version)) +- if entry.version + = "Página " + link_to(h(entry.wiki_page.title), course_wiki_url(entry.course, entry.wiki_page.id, :version => entry.version)) +- else + = "Página " + link_to(h(entry.wiki_page.title), course_wiki_url(entry.course, entry.wiki_page.id)) = "criada " if entry.kind_of?(WikiCreateLogEntry) = "editada " if entry.kind_of?(WikiEditLogEntry)