Commit e1afea77 authored by Marin Jankovski's avatar Marin Jankovski

Show title of milestone.

parent aaba9933
......@@ -3,5 +3,8 @@ class Groups::MilestonesController < ApplicationController
def index
@group = Group.find_by(path: params[:group_id])
project_ids = @group.projects
project_milestones = Milestone.where(project_id: project_ids)
@milestones = project_milestones
end
end
- 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"
......@@ -15,7 +15,18 @@
.col-md-3.responsive-side
= render 'groups/filter', entity: 'milestones'
.col-md-9
.panel.panel-default
%ul.well-list
- if @milestones.blank?
%li
.nothing-here-block No milestones to show
- else
= render 'groups/milestones/milestone'
- @milestones.group_by(&:title).each do |milestone|
%li{class: "milestone milestone-open", id: 1 }
.pull-right
= link_to root_path, class: "btn btn-small edit-milestone-link btn-grouped" do
%i.icon-edit
Edit
= link_to 'Close Milestone', root_path, method: :put, remote: true, class: "btn btn-small btn-remove"
%h4
= link_to_gfm truncate(milestone.first, length: 100), root_path
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