Commit c00917e4 authored by Jack Weeden's avatar Jack Weeden

Don't show 'Filter by labels' text if there are no labels

Don't show project search form if there are no projects
parent 82271e78
......@@ -20,6 +20,7 @@
= nav_tab :scope, 'joined' do
= link_to "Joined", projects_dashboard_path(scope: 'joined')
- if @labels.any?
%p.light Filter by label:
%ul.bordered-list
- @labels.each do |label|
......@@ -30,6 +31,7 @@
.span9
- if @projects.any?
= form_tag projects_dashboard_path, method: 'get' do
%fieldset.dashboard-search-filter
= hidden_field_tag "scope", params[:scope]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment