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| %>