build tables for project and subproject/s views

This commit is contained in:
Stefan Tollkühn
2025-07-23 15:19:59 +02:00
parent 440750881b
commit 53e2dba32d
5 changed files with 76 additions and 35 deletions

View File

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