From baa0c7f6445c30831835cb035f060373eb64ca05 Mon Sep 17 00:00:00 2001 From: Kang-min Liu Date: Sat, 24 Apr 2010 11:42:49 +0800 Subject: [PATCH] fix the back bottom on the new timelog page --- app/views/iphone/timelog/new.html.erb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/views/iphone/timelog/new.html.erb b/app/views/iphone/timelog/new.html.erb index 655f910..2dc1b49 100644 --- a/app/views/iphone/timelog/new.html.erb +++ b/app/views/iphone/timelog/new.html.erb @@ -1,7 +1,11 @@

New Time Log | <%=h @project.name %>

- Back + <% if @project %> + <%= link_to "Back", { :controller => "projects", :action => "show", :id => @project }, :class => "back" %> + <% else %> + <%= link_to "Back", "/iphone", :class => "back" %> + <% end %>
<% form_for :time_entry, @time_entry, :url => {:action => 'create', :id => @time_entry, :project_id => @time_entry.project} do |f| %>