mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-27 18:21:50 +08:00
Fix protocol creation from dashboard [SCI-7075]
This commit is contained in:
parent
578314a8e6
commit
edbcbffae4
2 changed files with 10 additions and 1 deletions
|
@ -83,6 +83,15 @@
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
.quick-start-buttons {
|
||||
display: flex;
|
||||
|
||||
.btn {
|
||||
margin-right: .25em;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 1100px) {
|
||||
.dashboard-container {
|
||||
--dashboard-widgets-gap: 15px;
|
||||
|
|
|
@ -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 %>
|
||||
|
|
Loading…
Reference in a new issue