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
- if @milestones.any?
- @issues.group_by(&:project).each do |group|
- project = group[0]
= link_to_project project
= link_to 'show all', project_issues_path(project), class: 'pull-right'
- group[1].each do |issue|
= render 'projects/issues/issue', issue: issue
= paginate @issues, theme: "gitlab"
......@@ -15,7 +15,18 @@
= render 'groups/filter', entity: 'milestones'
- if @milestones.blank?
.nothing-here-block No milestones to show
- else
= render 'groups/milestones/milestone'
- if @milestones.blank?
.nothing-here-block No milestones to show
- else
- @milestones.group_by(&:title).each do |milestone|
%li{class: "milestone milestone-open", id: 1 }
= link_to root_path, class: "btn btn-small edit-milestone-link btn-grouped" do
= link_to 'Close Milestone', root_path, method: :put, remote: true, class: "btn btn-small btn-remove"
= 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