public
Description: A mirror of the mephisto code-base
Homepage: http://mephistoblog.com/
Clone URL: git://github.com/halorgium/mephisto.git
Adding indication that template is rendered from admin
Usefull for hiding tracking code or advertisements etc...
Bertg (author)
Thu May 01 14:19:41 -0700 2008
commit  42a9c9a97ac3a61a5d031a11bab598c3585969b5
tree    facb7741dc642ae1d4d07a3316dc575a33cdb6ab
parent  9072b487bf45c5e41e33c66b32d94aea84732d1b
...
26
27
28
29
 
30
31
32
...
26
27
28
 
29
30
31
32
0
@@ -26,7 +26,7 @@ class Admin::ArticlesController < Admin::BaseController
0
     Mephisto::Liquid::CommentForm.article = @article
0
     @article = @article.to_liquid(:mode => :single)
0
     
0
- render :text => site.call_render(site.sections.home, :single, 'articles' => [@article], 'article' => @article, 'comments' => @comments, 'site' => site.to_liquid)
0
+ render :text => site.call_render(site.sections.home, :single, 'articles' => [@article], 'article' => @article, 'comments' => @comments, 'site' => site.to_liquid, 'admin?' => true)
0
   end
0
 
0
   def new

Comments

    No one has commented yet.