mirror of
https://github.com/rickbarrette/redmine_qbo_calendar.git
synced 2026-10-04 04:40:43 -04:00
only show add link for today and future dates
This commit is contained in:
1 parent
802db23048
commit
ba16d88659
1 file changed
+2
@@ -65,10 +65,12 @@
|
||||
<span class="day-value"><%= day.day %></span>
|
||||
<span class="abbr-day">(<%= abbr_day_name(day.cwday) %>)</span>
|
||||
|
||||
<% if day >= User.current.today %>
|
||||
<%= link_to sprite_icon('add'),
|
||||
new_customer_appointment_path(start_date: day),
|
||||
class: 'icon-only icon-add',
|
||||
title: l(:label_appointment_new, default: 'New Appointment') %>
|
||||
<% end %>
|
||||
</p>
|
||||
|
||||
<%
|
||||
|
||||
Reference in new issue
Block a user