Fix protocol creation from dashboard [SCI-7075]

This commit is contained in:
Anton 2022-08-08 11:26:12 +02:00
parent 578314a8e6
commit edbcbffae4
2 changed files with 10 additions and 1 deletions

View file

@ -83,6 +83,15 @@
}
}
.quick-start-buttons {
display: flex;
.btn {
margin-right: .25em;
}
}
@media (max-width: 1100px) {
.dashboard-container {
--dashboard-widgets-gap: 15px;

View file

@ -1,7 +1,7 @@
<% unless current_user.is_guest_of_team?(current_team) %>
<div class="quick-start-buttons">
<div class="new-task btn btn-secondary"><i class="fas fa-plus"></i><%= t("dashboard.quick_start.new_task") %></div>
<%= link_to protocols_path, {class: "new-protocol btn btn-secondary"} do %>
<%= button_to protocols_path(type: :in_repository_public), disabled: !can_create_protocols_in_repository?(@current_team), class: 'btn btn-secondary' do %>
<i class="fas fa-edit"></i><%= t("dashboard.quick_start.new_protocol") %>
<% end %>
<%= link_to new_report_path, {class: "new-report btn btn-secondary"} do %>