Changeset 1235

Show
Ignore:
Timestamp:
07/23/08 21:28:55 (4 months ago)
Author:
alban
Message:

Ajout l'acces au Template depuis liquid (sous la variable 'theme'). Refs #6

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/app/controllers/public_controller.rb

    r1233 r1235  
    4444    @content = find_content 
    4545 
    46     logger.debug @content.episode.show.template.inspect 
    4746    if @content.episode.show.template.nil? 
    4847      @page_type = :condensed 
     
    6564 
    6665  def render_template(show, view, object) 
    67     render :layout => false, :template => "#{show.template.slug}/#{view}", :locals => { view.to_sym => object } 
     66    template = show.template 
     67    @theme = template 
     68    render :layout => false, :template => "#{template.slug}/#{view}", 
     69      :locals => { view.to_sym => object } 
    6870  end 
    6971