Changeset 1212

Show
Ignore:
Timestamp:
07/19/08 22:00:46 (6 months ago)
Author:
alban
Message:

Ajout d'un debut de section 'S'abonner'. Fixes #2

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/app/helpers/application_helper.rb

    r1208 r1212  
    66      :show_slug => show.slug }) 
    77    url_for options 
     8  end 
     9 
     10  def url_for_podcast(show) 
     11    url_for :controller => "public", :action => "feed", :show_slug => show.slug 
    812  end 
    913 
  • trunk/app/views/layouts/public_render.rhtml

    r1211 r1212  
    1010      :rel => "alternate", :type => "application/rss+xml", 
    1111      :title => "Le podcast : #{@show.name}", 
    12       :href => url_for(:action => 'feed', :show_slug => @show.slug)) 
     12      :href => url_for_podcast(@show)) 
    1313    %> 
    1414  <% end %> 
  • trunk/app/views/public/show.rhtml

    r1193 r1212  
    2121  <% end %> 
    2222  </ul> 
     23<% end %> 
    2324 
    24 <% else %
     25<h2>Abonnez-vous</h2
    2526 
    26 <% end %> 
     27<ul> 
     28<li>Podcast : <%= link_to "RSS", url_for_podcast(@show) %></li> 
     29</ul>