Skip to content

Commit

Permalink
change routes
Browse files Browse the repository at this point in the history
  • Loading branch information
moozzi committed Dec 21, 2023
1 parent 224f848 commit 74cd01d
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions views/db/organizations/show.erb
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<% content_for :breadcrumbs do %>
<nav class="breadcrumb" aria-label="breadcrumbs">
<ul>
<li><a href="/">Home</a></li>
<li><a href="/db">Database</a></li>
<li><a href="/db/organizations">Organizations</a></li>
</ul>
</nav>
<nav class="breadcrumb" aria-label="breadcrumbs">
<ul>
<li><a href="/">Home</a></li>
<li><a href="/db">Database</a></li>
<li><a href="/db/organizations">Organizations</a></li>
</ul>
</nav>
<% end %>

<h1>Organization: <%=h @organization %></h1>
Expand All @@ -21,7 +21,7 @@
<td><strong>Departments:</strong></td>
<td>
<% @organization.departments.each do |department| %>
<p><a href="/db/departments/<%=h department.id %>"><%=h department %></a></p>
<p><a href="/db/organization_departments/<%=h department.id %>"><%=h department %></a></p>
<% end %>
</td>
</tr>
Expand Down Expand Up @@ -57,7 +57,7 @@
<td><strong>Members:</strong></td>
<td>
<% @organization.members.each do |member| %>
<p><a href="/db/members/<%=h member.id %>"><%=h member %></a></p>
<p><a href="/db/organization_members/<%=h member.id %>"><%=h member %></a></p>
<% end %>
</td>
</tr>
Expand All @@ -66,7 +66,7 @@
<td><strong>Customers:</strong></td>
<td>
<% @organization.customers.each do |customer| %>
<p><a href="/db/customers/<%=h customer.id %>"><%=h customer %></a></p>
<p><a href="/db/people/<%=h customer.id %>"><%=h customer %></a></p>
<% end %>
</td>
</tr>
Expand All @@ -75,7 +75,7 @@
<td><strong>Vendors:</strong></td>
<td>
<% @organization.vendors.each do |vendor| %>
<p><a href="/db/vendors/<%=h vendor.id %>"><%=h vendor %></a></p>
<p><a href="/db/organizations/<%=h vendor.id %>"><%=h vendor %></a></p>
<% end %>
</td>
</tr>
Expand Down Expand Up @@ -106,4 +106,3 @@
</table>

<%= partial(:notes, notes: @organization.notes) %>

0 comments on commit 74cd01d

Please sign in to comment.