Skeleton of the group milestone index page.
This commit is contained in:
parent
ca6fd8841e
commit
aaba993352
4 changed files with 58 additions and 0 deletions
|
@ -31,6 +31,18 @@ module GroupsHelper
|
|||
end
|
||||
|
||||
title
|
||||
end
|
||||
|
||||
def group_filter_path(entity, options={})
|
||||
exist_opts = {
|
||||
state: params[:state],
|
||||
scope: params[:scope]
|
||||
}
|
||||
|
||||
options = exist_opts.merge(options)
|
||||
|
||||
path = request.path
|
||||
path << "?#{options.to_param}"
|
||||
path
|
||||
end
|
||||
end
|
||||
|
|
12
app/views/groups/_filter.html.haml
Normal file
12
app/views/groups/_filter.html.haml
Normal file
|
@ -0,0 +1,12 @@
|
|||
= 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
|
||||
Active
|
||||
%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
|
13
app/views/groups/milestones/_milestone.html.haml
Normal file
13
app/views/groups/milestones/_milestone.html.haml
Normal file
|
@ -0,0 +1,13 @@
|
|||
- if @milestones.any?
|
||||
- @issues.group_by(&:project).each do |group|
|
||||
.panel.panel-default.panel-small
|
||||
- project = group[0]
|
||||
.panel-heading
|
||||
= link_to_project project
|
||||
= link_to 'show all', project_issues_path(project), class: 'pull-right'
|
||||
|
||||
%ul.well-list.issues-list
|
||||
- group[1].each do |issue|
|
||||
= render 'projects/issues/issue', issue: issue
|
||||
= paginate @issues, theme: "gitlab"
|
||||
|
|
@ -0,0 +1,21 @@
|
|||
%h3.page-title
|
||||
Milestones
|
||||
%span.pull-right milestones
|
||||
|
||||
%p.light
|
||||
Only milestones from
|
||||
%strong #{@group.name}
|
||||
group are listed here.
|
||||
|
||||
%hr
|
||||
|
||||
.row
|
||||
.fixed.sidebar-expand-button.hidden-lg.hidden-md
|
||||
%i.icon-list.icon-2x
|
||||
.col-md-3.responsive-side
|
||||
= render 'groups/filter', entity: 'milestones'
|
||||
.col-md-9
|
||||
- if @milestones.blank?
|
||||
.nothing-here-block No milestones to show
|
||||
- else
|
||||
= render 'groups/milestones/milestone'
|
Loading…
Reference in a new issue