Skip to content

Commit

Permalink
Merge pull request #1627 from etalab/features/no-bo-summer
Browse files Browse the repository at this point in the history
No more Bureau ouvert for summer 2024
  • Loading branch information
Samuelfaure authored Aug 7, 2024
2 parents 88a75c7 + a1f92cb commit 0cf0950
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions app/views/shared/api_entreprise/header/_menu.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -47,17 +47,19 @@
<% end %>
</div>

<div class="fr-notice fr-notice--info">
<div class="fr-container">
<div class="fr-notice__body">
<p class="fr-notice__title fr-text--regular">
<% if action_name == 'developers'%>
<%= t('.banner.tech', date: OpenBureauDate.new.next_date.strftime('%d/%m/%Y')).html_safe %>
<% else %>
<%= t('.banner.default', date: OpenBureauDate.new.next_date.strftime('%d/%m/%Y')).html_safe %>
<% end %>
</p>
<% if Date.today >= Date.new(2024, 8, 21) %>
<div class="fr-notice fr-notice--info">
<div class="fr-container">
<div class="fr-notice__body">
<p class="fr-notice__title fr-text--regular">
<% if action_name == 'developers'%>
<%= t('.banner.tech', date: OpenBureauDate.new.next_date.strftime('%d/%m/%Y')).html_safe %>
<% else %>
<%= t('.banner.default', date: OpenBureauDate.new.next_date.strftime('%d/%m/%Y')).html_safe %>
<% end %>
</p>
</div>
</div>
</div>
</div>
<% end %>
</div>

0 comments on commit 0cf0950

Please sign in to comment.