2020-02-13 20:50:29 +08:00
|
|
|
<div class="quick-start-widget basic-widget">
|
2020-02-26 22:40:28 +08:00
|
|
|
<div class="widget-header">
|
|
|
|
<div class="widget-title">
|
|
|
|
<%= t("dashboard.quick_start.title") %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="widget-body">
|
2020-03-12 22:00:14 +08:00
|
|
|
<% if current_user.is_guest_of_team?(current_team) %>
|
|
|
|
<div class="widget-placeholder">
|
|
|
|
<p class="widget-placeholder-title"><%= t("dashboard.quick_start.placeholder.title") %></p>
|
|
|
|
<p class="widget-placeholder-description"><%= t("dashboard.quick_start.placeholder.description") %></p>
|
|
|
|
</div>
|
|
|
|
<% else %>
|
|
|
|
<div class="quick-start-description">
|
|
|
|
<%= t("dashboard.quick_start.description") %>
|
|
|
|
</div>
|
|
|
|
<div class="new-task btn btn-secondary btn-block"><i class="fas fa-plus"></i><%= t("dashboard.quick_start.new_task") %></div>
|
2020-03-20 02:43:20 +08:00
|
|
|
<%= link_to protocols_path, {class: "new-protocol btn btn-secondary btn-block"} do %>
|
2020-03-12 22:00:14 +08:00
|
|
|
<i class="fas fa-edit"></i><%= t("dashboard.quick_start.new_protocol") %>
|
|
|
|
<% end %>
|
2020-03-20 02:43:20 +08:00
|
|
|
<%= link_to reports_path, {class: "new-report btn btn-secondary btn-block"} do %>
|
2020-03-12 22:00:14 +08:00
|
|
|
<i class="fas fa-clipboard-check"></i><%= t("dashboard.quick_start.new_report") %>
|
|
|
|
<% end %>
|
2020-02-26 22:40:28 +08:00
|
|
|
<% end %>
|
|
|
|
</div>
|
2020-02-13 20:55:25 +08:00
|
|
|
</div>
|
2020-02-26 22:40:28 +08:00
|
|
|
<%= render "create_task_modal" %>
|