displays org name on the project index page if no project

This commit is contained in:
zmagod 2016-10-17 11:22:12 +02:00
parent 8a6899aeea
commit 54a3237994
2 changed files with 2 additions and 2 deletions

View file

@ -109,6 +109,8 @@
<%= link_to t("projects.index.no_orgs.btn"), organizations_path, class: "btn btn-primary" %>
</p>
</div>
<% else %>
<h2 class="page-header"><%= current_organization.name %></h2>
<% end %>
<% if current_organization.projects.length > 0 %>

View file

@ -1,5 +1,3 @@
<h2 class="page-header"><%= org.name %></h2>
<div class="row">
<% projects.each_index do |i| project = projects[i] %>
<div class="col-lg-3 col-md-4 col-sm-6 col-xs-12">