mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-05 23:17:33 +08:00
49 lines
1.8 KiB
Text
49 lines
1.8 KiB
Text
<% provide(:head_title, t("users.settings.teams.head_title")) %>
|
|
|
|
<%= render partial: "users/settings/navigation.html.erb" %>
|
|
<div class="tab-content">
|
|
<div class="tab-pane tab-pane-settings" role="tabpanel"></div>
|
|
<div class="tab-pane tab-pane-settings active" role="tabpanel">
|
|
|
|
<%= render partial: "users/settings/teams/breadcrumbs.html.erb" %>
|
|
|
|
<div>
|
|
<% if @member_of > 0 %>
|
|
<%= t("users.settings.teams.index.member_of", count: @member_of) %>
|
|
<% else %>
|
|
<em><%= t("users.settings.teams.index.no_teams") %></em>
|
|
<% end %>
|
|
<span id="new-team-button">
|
|
<%= link_to new_team_path, class: "btn btn-default", style: "margin-left: 30px;" do %>
|
|
<span class="glyphicon glyphicon-plus"></span>
|
|
<span class="hidden-xs">
|
|
<%= t("users.settings.teams.index.new_team") %>
|
|
</span>
|
|
<% end %>
|
|
</span>
|
|
</div>
|
|
|
|
<% if @member_of > 0 %>
|
|
<div class="teams-datatable">
|
|
<table id="teams-table" class="table" data-source="<%= teams_datatable_path(format: :json) %>">
|
|
<thead>
|
|
<tr>
|
|
<th id="team-name"><%= t("users.settings.teams.index.thead_name") %></th>
|
|
<th id="team-role"><%= t("users.settings.teams.index.thead_role") %></th>
|
|
<th id="team-members"><%= t("users.settings.teams.index.thead_members") %></th>
|
|
<th id="leave-team"> </th>
|
|
</tr>
|
|
</thead>
|
|
<tbody></tbody>
|
|
</table>
|
|
</div>
|
|
<% else %>
|
|
<br />
|
|
<% end %>
|
|
</div>
|
|
</div>
|
|
|
|
<%= render partial: "users/settings/user_teams/leave_user_team_modal.html.erb" %>
|
|
<%= stylesheet_link_tag 'datatables' %>
|
|
<%= javascript_include_tag "users/settings/teams/index" %>
|
|
<%= javascript_include_tag "users/settings/teams/datatable" %>
|