build tables for project and subproject/s views
This commit is contained in:
@@ -1,6 +1,26 @@
|
||||
<p style="color: green"><%= notice %></p>
|
||||
|
||||
<%= render @project %>
|
||||
<% content_for :title, "Project: #{@project.name}" %>
|
||||
|
||||
<h1>Project: <%= @project.name %></h1>
|
||||
|
||||
<div id="project">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<% project_view_fields.each do |attrib| %>
|
||||
<th><%= attrib.to_s.humanize %></th>
|
||||
<% end %>
|
||||
<th>Subprojects</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<%= render @project %>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div>
|
||||
|
||||
<div>
|
||||
<%= link_to "Edit this project", edit_project_path(@project) %> |
|
||||
|
||||
Reference in New Issue
Block a user