Permalink
Browse files

Date on photo details is clickable

  • Loading branch information...
aaronpk committed Jan 5, 2012
1 parent 06a278e commit cb02807a7a6c1f519d504cee67699bee10398329
Showing with 5 additions and 1 deletion.
  1. +5 −1 views/photos/view.erb
View
@@ -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 %>

0 comments on commit cb02807

Please sign in to comment.