Browse Source

Refactor, remove present checks of href

pull/2666/head
Manny Dinssa 2 years ago
parent
commit
067d53cccf
  1. 12
      app/components/create_log_actions_component.html.erb

12
app/components/create_log_actions_component.html.erb

@ -1,12 +1,10 @@
<% if display_actions? %> <% if display_actions? %>
<div class="govuk-button-group app-filter-toggle govuk-!-margin-bottom-6"> <div class="govuk-button-group app-filter-toggle govuk-!-margin-bottom-6">
<% if create_button_href.present? %> <%= govuk_button_to create_button_copy, create_button_href, class: "govuk-!-margin-right-6" %>
<%= govuk_button_to create_button_copy, create_button_href, class: "govuk-!-margin-right-6" %> <% unless user.support? %>
<% end %> <%= govuk_button_link_to upload_button_copy, upload_button_href, secondary: true %>
<% if upload_button_href.present? && !user.support? %> <% end %>
<%= govuk_button_link_to upload_button_copy, upload_button_href, secondary: true %> <% if user.support? %>
<% end %>
<% if view_uploads_button_href.present? && user.support? %>
<%= govuk_button_link_to view_uploads_button_copy, view_uploads_button_href, secondary: true %> <%= govuk_button_link_to view_uploads_button_copy, view_uploads_button_href, secondary: true %>
<% end %> <% end %>
</div> </div>

Loading…
Cancel
Save