Skip to content
This repository has been archived by the owner on Sep 26, 2022. It is now read-only.

Commit

Permalink
Date on photo details is clickable
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronpk committed Jan 5, 2012
1 parent 06a278e commit cb02807
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion views/photos/view.erb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@

<div class="sidebar-widget">
<p><a href="<%= @photo.url %>">View original on Flickr</a></p>
<p>Taken on <%= @photo.date_taken.strftime "%B %e, %Y" %>
<p>Taken on
<a href="/<%= @photo.user.username %>/<%= @photo.date_taken.strftime "%Y/%m" %>"><%= @photo.date_taken.strftime "%B" %></a>
<a href="/<%= @photo.user.username %>/<%= @photo.date_taken.strftime "%Y/%m/%d" %>"><%= @photo.date_taken.strftime "%e" %></a>,
<a href="/<%= @photo.user.username %>/<%= @photo.date_taken.strftime "%Y" %>"><%= @photo.date_taken.strftime "%Y" %></a>
</p>
</div>

<% if @has_location %>
Expand Down

0 comments on commit cb02807

Please sign in to comment.