mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-29 11:45:18 +08:00
changes on Zmago's request
This commit is contained in:
parent
099cc29abb
commit
f791234ec7
2 changed files with 3 additions and 3 deletions
|
@ -41,10 +41,10 @@
|
||||||
locals: { flash: flash, notice: notice, alert: alert } %>
|
locals: { flash: flash, notice: notice, alert: alert } %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<%= render "shared/left_menu_bar" if user_signed_in? && current_user.teams.length > 0 %>
|
<%= render "shared/left_menu_bar" if user_signed_in? && current_user.teams.exists? %>
|
||||||
|
|
||||||
<div id="content-wrapper">
|
<div id="content-wrapper">
|
||||||
<% if user_signed_in? && current_user.teams.length == 0 %>
|
<% if user_signed_in? && current_user.teams.empty? %>
|
||||||
<!-- If member of no teams -->
|
<!-- If member of no teams -->
|
||||||
<div class="jumbotron">
|
<div class="jumbotron">
|
||||||
<h2><%=t 'general.no_teams.title' %></h2>
|
<h2><%=t 'general.no_teams.title' %></h2>
|
||||||
|
|
|
@ -66,7 +66,7 @@
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
|
||||||
<% if @teams.length > 0 && can_create_projects?(current_team) %>
|
<% if @teams.exists? && can_create_projects?(current_team) %>
|
||||||
<!-- new project button -->
|
<!-- new project button -->
|
||||||
<a class="btn btn-primary pull-right" id="new-project-btn">
|
<a class="btn btn-primary pull-right" id="new-project-btn">
|
||||||
<span class="glyphicon glyphicon-plus" aria-hidden="true"></span>
|
<span class="glyphicon glyphicon-plus" aria-hidden="true"></span>
|
||||||
|
|
Loading…
Reference in a new issue