Testes para WikiController

This commit is contained in:
2009-07-19 09:34:41 -03:00
parent 8e9b698944
commit 8611d1e9e6
20 changed files with 369 additions and 245 deletions

View File

@@ -8,7 +8,7 @@
%h4.title Disciplina
%h1.title= h(@course.full_name)
%p= wiki @course.description
%p= @course.description.format_wiki
.box
.cmd

View File

@@ -8,7 +8,7 @@
%meta{'http-equiv' => 'Content-Type', 'content' => 'text/html; charset=UTF-8'}
%link{'href' => "#{App.base_path}/stylesheets/cache/wiki.css", 'rel' => 'Stylesheet', 'type' => %'text/css'}
%link#css_color{'href' => "#{App.base_path}/stylesheets/cache/color.#@color.css", 'rel' => 'Stylesheet', 'type' => %'text/css'}
%link#css_color{'href' => "#{App.base_path}/stylesheets/cache/color.#{@color}.css", 'rel' => 'Stylesheet', 'type' => %'text/css'}
/[if IE]
%link{:href => "#{App.base_path}/stylesheets/ie/ie.css", :rel => "stylesheet", :type => "text/css"}

View File

@@ -11,4 +11,4 @@
%p= "Última visita há {c}"[:last_seen, distance_of_time_in_words(Time.now, @user.last_seen)]
-# cache(user_path(@user.id)) do
= wiki @user.description if !@user.description.blank?
= @user.description.format_wiki if !@user.description.blank?

View File

@@ -10,4 +10,4 @@
%h4.title= h(@course.full_name)
%h1.title= h(@wiki_page.title)
#wiki_text
= @wiki_page.to_html
= @wiki_page.content.format_wiki