scinote-web/app/views/projects/index.html.erb

50 lines
1.8 KiB
Text
Raw Normal View History

2019-12-01 03:04:28 +08:00
<% provide(:head_title, t("projects.index.head_title")) %>
2020-03-13 22:04:56 +08:00
<% if current_team %>
2020-10-30 20:37:59 +08:00
<%= render partial: "shared/sidebar", locals: { page: 'project' } %>
<%= render partial: "shared/secondary_navigation" %>
2020-03-13 22:04:56 +08:00
<span style="display: none;" data-hook="projects-index-html"></span>
2020-10-26 20:42:32 +08:00
<%= render partial: 'projects/index/modals/new' %>
<%= render partial: 'projects/index/modals/edit' %>
<%= render partial: 'projects/index/modals/manage_users' %>
<%= render partial: 'projects/index/modals/export_projects' %>
2018-06-06 23:23:22 +08:00
<div class="content-pane" id="projects-index">
<div id="projects-absent" style="display:none">
2018-06-06 23:23:22 +08:00
<div class="jumbotron text-center" style="margin-top:12%">
2020-10-26 20:42:32 +08:00
<strong><%= t 'projects.index.no_projects.text' %></strong>
<% if can_create_projects?(current_team) %>
<h2><strong><%= t 'projects.index.no_projects.title' %></strong></h2>
<br/>
2020-01-07 23:13:34 +08:00
<a class="btn btn-primary new-project-btn">
<span class="fas fa-plus"></span>
2018-06-06 23:23:22 +08:00
<span class="hidden-xs"><%= t('projects.index.no_projects.create_new_button') %></span>
</a>
<% else %>
2020-10-26 20:42:32 +08:00
<p><strong><%= t 'projects.index.no_projects.no_permission_title' %></strong></p>
<% end %>
</div>
</div>
2016-02-12 23:52:43 +08:00
2020-10-26 20:42:32 +08:00
<div id="projects-present" style="display:none">
<%= render partial: 'projects/index/toolbar' %>
2016-02-12 23:52:43 +08:00
<div class="tab-content">
<div class="tab-pane active"
id="projects-cards-view"
2020-10-26 23:17:39 +08:00
data-projects-url="<%= cards_projects_path %>"
data-projects-sidebar-url="<%= projects_sidebar_path %>">
</div>
2020-10-26 20:42:32 +08:00
<div class="tab-pane" id="projects-table-view">
<%= render partial: "projects/index/team_projects_table" %>
</div>
</div>
</div>
</div>
2016-02-12 23:52:43 +08:00
<% end %>
2018-07-19 23:56:42 +08:00
<%= javascript_include_tag "projects/index" %>