Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 01da02b6d3
Fetching contributors…

Cannot retrieve contributors at this time

49 lines (41 sloc) 1.717 kB
<section class="span12 show-project">
<div id="projectInfo" class="span4 noteCard">
<p>Program: <%= link_to project.prog.title, program_path(project.prog) %></p>
<p>Bike: <%= link_to project.bike.number, bike_path(bike) %></p>
<% if !project.closed? %>
<p><%= link_to "Close project and depart bike", finish_project_path(project) %></p>
<% end %>
</div>
<%= render :partial => "project_step" %>
<hr />
<div class="span7 noLeftMarg">
<% if project.detail.work_log %>
<h3>Work log</h3>
<%= link_to "Log work on this project", new_project_work_log_path(project) %>
<%= render :partial=>"time_entries/index",
:locals=>{:time_entries => project.detail.time_entry_threads} %>
<% end %>
</div>
<section class="notesWrapper span3 offset1">
<h3><%= pluralize(project.comment_threads.length, 'Note') %></h3>
<%= render :partial=>"comments/form", :locals=>{:url => new_comment_project_path(project)} %>
<%= render :partial=>"comments/index", :locals=>{:comments => project.comment_threads} %>
</section> <!-- end of notes wrapper -->
<% if !project.closed? %>
<div class="row">
<div id="cancel-project-wrapper" class="span11">
<%= form_for(project, :url=>finish_project_path(project), :method=>:get) do |f|%>
<%= f.submit "Close and depart bike", :class => "btn btn-primary" %>
<% end %>
</div>
</div>
<br />
<% end %>
<div class="row">
<div id="cancel-project-wrapper" class="span11">
<%= form_for(project, :url=>project_path(project), :method=>:delete) do |f|%>
<%= f.submit "Cancel Project.", :class => "btn btn-danger" %>
<% end %>
</div>
</div>
</section> <!-- show project wrapper -->
Jump to Line
Something went wrong with that request. Please try again.