Testes para WikiController
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
%h4.title Disciplina
|
||||
%h1.title= h(@course.full_name)
|
||||
|
||||
%p= wiki @course.description
|
||||
%p= @course.description.format_wiki
|
||||
|
||||
.box
|
||||
.cmd
|
||||
|
||||
@@ -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"}
|
||||
|
||||
@@ -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?
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user