]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/diary_entries/index.html.erb
Add link to my diary in the diary index.
[rails.git] / app / views / diary_entries / index.html.erb
index 1940e798b8d55155d8c337fef84b80b87cc37146..96c052da69fd940ff16c7e7f374017fbde99ed6c 100644 (file)
       <% if @user && @user == current_user || !@user && current_user %>
         <li><%= link_to image_tag("new.png", :class => "small_icon") + t(".new"), new_diary_entry_path, :title => t(".new_title") %></li>
       <% end %>
+
+      <% if !@user && current_user %>
+        <li><%= link_to t(".my_diary"), :controller => "diary_entries", :action => "index", :display_name => current_user.display_name %></li>
+      <% end %>
     </ul>
   </div>
 <% end %>