mirror of
https://github.com/rickbarrette/redmine_qbo_vehicles.git
synced 2026-11-18 02:40:37 -05:00
The vehicle, edit and new vehicle pages' titles are a trail through the vehicle's customer (Vehicles » vehicle when it has none), and the vehicle page's actions sit under the title like the customer page's. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
10 lines
385 B
ERB
10 lines
385 B
ERB
<%# Page title: Customers » the vehicle's customer » tail (Vehicles » tail for a vehicle without a customer) %>
|
|
<h2>
|
|
<% if vehicle.customer %>
|
|
<%= link_to l(:label_customers), customers_path %> » <%= link_to vehicle.customer.to_s, customer_path(vehicle.customer) %>
|
|
<% else %>
|
|
<%= link_to l(:field_vehicles), vehicles_path %>
|
|
<% end %>
|
|
» <%= tail %>
|
|
</h2>
|