mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-09 08:57:41 +08:00
25 lines
950 B
Text
25 lines
950 B
Text
<% provide(:head_title, t("libraries.index.head_title")) %>
|
|
|
|
<% if current_team %>
|
|
<%
|
|
# show only if no repositories present. If the team will have them we will
|
|
# handle this in left side navigation bar
|
|
%>
|
|
<div class="jumbotron text-center" style="margin-top:25%">
|
|
<strong><%=t 'libraries.index.no_libraries.text' %></strong>
|
|
<h2><strong><%=t 'libraries.index.no_libraries.title' %><strong></h2>
|
|
<br />
|
|
<a class="btn btn-info btn-lg"
|
|
id="create-new-repository"
|
|
href="<%= create_modal_team_repositories_path(current_team) %>"
|
|
data-remote="true"><%=t 'libraries.index.no_libraries.create_new_button' %></a>
|
|
</div>
|
|
<% else %>
|
|
<!-- If member of no teams -->
|
|
<div class="jumbotron">
|
|
<h2><%=t 'repositories.index.no_teams.title' %></h2>
|
|
<p><%=t 'repositories.index.no_teams.text' %></p>
|
|
</div>
|
|
<% end %>
|
|
|
|
<%= javascript_include_tag "repositories/index", "data-turbolinks-track" => true %>
|