2013-01-07 18:48:57 +00:00
|
|
|
= form_tag group_filter_path(entity), method: 'get' do
|
|
|
|
%fieldset
|
|
|
|
%ul.nav.nav-pills.nav-stacked
|
|
|
|
%li{class: ("active" if !params[:status])}
|
|
|
|
= link_to group_filter_path(entity, status: nil) do
|
|
|
|
Open
|
|
|
|
%li{class: ("active" if params[:status] == 'closed')}
|
|
|
|
= link_to group_filter_path(entity, status: 'closed') do
|
|
|
|
Closed
|
|
|
|
%li{class: ("active" if params[:status] == 'all')}
|
|
|
|
= link_to group_filter_path(entity, status: 'all') do
|
|
|
|
All
|
|
|
|
|
|
|
|
%fieldset
|
|
|
|
%legend Projects:
|
|
|
|
%ul.nav.nav-pills.nav-stacked
|
|
|
|
- @projects.each do |project|
|
|
|
|
- unless entities_per_project(project, entity).zero?
|
|
|
|
%li{class: ("active" if params[:project_id] == project.id.to_s)}
|
|
|
|
= link_to group_filter_path(entity, project_id: project.id) do
|
|
|
|
= project.name_with_namespace
|
2013-01-30 14:40:43 +00:00
|
|
|
%small.pull-right= entities_per_project(project, entity)
|
2013-02-18 18:31:43 +00:00
|
|
|
- if @projects.blank?
|
|
|
|
%p.nothing_here_message This group has no projects yet
|
2013-01-07 18:48:57 +00:00
|
|
|
|
|
|
|
%fieldset
|
|
|
|
%hr
|
2013-01-30 14:40:43 +00:00
|
|
|
= link_to "Reset", group_filter_path(entity), class: 'btn pull-right'
|
2013-01-07 18:48:57 +00:00
|
|
|
|