Changeset 1323
- Timestamp:
- 08/07/08 20:30:24 (4 months ago)
- Files:
-
- trunk/app/controllers/public_controller.rb (modified) (3 diffs)
- trunk/app/models/show.rb (modified) (1 diff)
- trunk/app/views/layouts/public_render.rhtml (deleted)
- trunk/app/views/public/content.rhtml (deleted)
- trunk/app/views/public/episode.rhtml (deleted)
- trunk/app/views/public/show.rhtml (deleted)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/app/controllers/public_controller.rb
r1317 r1323 26 26 def episode 27 27 @episode = find_episode 28 if @episode.show.template.nil? 29 render :layout => "public_render" 30 else 31 render_template @episode.show, :episode, @episode 32 end 28 render_template @episode.show, :episode, @episode 33 29 end 34 30 … … 43 39 def content 44 40 @content = find_content 45 46 if @content.episode.show.template.nil? 47 @page_type = :condensed 48 render :layout => "public_render" 49 else 50 render_template @content.episode.show, :content, @content 51 end 41 render_template @content.episode.show, :content, @content 52 42 end 53 43 54 44 def direct 55 unless @show.template.nil? 56 render_template @show, :stream, @show 57 end 45 render_template @show, :stream, @show 58 46 end 59 47 … … 73 61 def render_show 74 62 create_visit @show 75 if @show.template.nil? 76 render :layout => "public_render", :action => :show 77 else 78 render_template @show, :show, @show 79 end 63 render_template @show, :show, @show 80 64 end 81 65 trunk/app/models/show.rb
r1271 r1323 39 39 end 40 40 41 def template 42 self.read_attribute(:template) or Show.default_template 43 end 44 45 def self.default_template 46 @@default_template ||= Template.find_by_slug('cocoa') 47 end 48 41 49 end 42 50
