Remove redundant customer appointment history links from calendar and customer actions views

This commit is contained in:
ricky committed 2026-10-29 22:53:19 -04:00
1 parent 163b67b02a
commit 3361dfe9dd
3 files changed
-19

No files matched your search

-9
View File
@@ -125,15 +125,6 @@
<!-- Toggle Bar -->
<div class="calendar-filter-toolbar" style="margin-bottom: 12px; display: flex; align-items: center; justify-content: flex-end; gap: 16px;">
<% if User.current.allowed_to?(:view_customer_appointments, nil, global: true) %>
<%= link_to history_customer_appointments_path,
class: 'button-small',
style: 'display: inline-flex; align-items: center; gap: 5px; text-decoration: none; font-weight: 600; font-size: 0.9em; padding: 4px 10px; border-radius: 3px;',
title: l(:label_appointment_history) do %>
<i class="fa-solid fa-clock-rotate-left" aria-hidden="true"></i>
<%= l(:label_appointment_history) %>
<% end %>
<% end %>
<% if is_current_month %>
<button type="button"
@@ -4,8 +4,3 @@
<%= link_to l(:label_add_appointment), new_customer_appointment_path(customer_id: customer.id), target: :_blank, id: :appointment_link %>
</p>
<% end %>
<% if User.current.allowed_to?(:view_customer_appointments, nil, global: true) %>
<p>
<%= link_to l(:label_appointment_history), history_customer_appointments_path(customer_id: customer.id), id: :appointment_history_link %>
</p>
<% end %>
@@ -1,9 +1,4 @@
<div class="customer-appointments-simple">
<div class="contextual">
<%= link_to history_customer_appointments_path(customer_id: customer.id), title: l(:label_appointment_history) do %>
<i class="fa-solid fa-clock-rotate-left"></i> <%= l(:label_history) %>
<% end %>
</div>
<h4><%= l(:label_upcoming_customer_appointments) %>:</h4>