Skip to content

Commit

Permalink
Using link_to_unless_current helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
bcardarella committed Jul 15, 2011
1 parent a014279 commit 0d09685
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/views/presentations/_date.html.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<article id="<%= date.to_s -%>" class='date'>
<header>
<h2><%= link_to date.to_time.to_s(:date), month_presentations_path(:month => date.strftime('%B-%Y')) %></h2>
<h2><%= link_to_unless_current date.to_time.to_s(:date), month_presentations_path(:month => date.strftime('%B-%Y')) %></h2>
</header>
<%= render :partial => 'presentations/presentation', :collection => @grouped_presentations[date] %>
</article>
4 changes: 2 additions & 2 deletions app/views/presentations/_presentation.html.erb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<section id="<%= presentation.id -%>" class="presentation">
<hgroup>
<h2><%= link_to presentation.title, presentation %></h2>
<h2><%= link_to_unless_current presentation.title, presentation %></h2>
<h4>
by <%= link_to presentation.presenter.name, presentation.presenter %>
by <%= link_to_unless_current presentation.presenter.name, presentation.presenter %>
</h4>
</hgroup>
<%= presentation.embed_video.html_safe if presentation.video_id.present? %>
Expand Down

0 comments on commit 0d09685

Please sign in to comment.