Commit fb7189e3 authored by Luke Bennett's avatar Luke Bennett

Remove all instance milestone variables in favour of local variables

parent 4763f315
...@@ -30,23 +30,23 @@ ...@@ -30,23 +30,23 @@
- else - else
= link_to 'Reopen Milestone', group_milestone_route(milestone, {state_event: :activate }), method: :put, class: "btn btn-grouped btn-reopen" = link_to 'Reopen Milestone', group_milestone_route(milestone, {state_event: :activate }), method: :put, class: "btn btn-grouped btn-reopen"
= render 'shared/milestones/deprecation_message' if @milestone.legacy_group_milestone? || @milestone.dashboard_milestone? = render 'shared/milestones/deprecation_message' if milestone.legacy_group_milestone? || milestone.dashboard_milestone?
.detail-page-description.milestone-detail .detail-page-description.milestone-detail
%h2.title %h2.title
= markdown_field(milestone, :title) = markdown_field(milestone, :title)
- if @milestone.group_milestone? && @milestone.description.present? - if milestone.group_milestone? && milestone.description.present?
%div %div
.description .description
.wiki .wiki
= markdown_field(@milestone, :description) = markdown_field(milestone, :description)
- if milestone.complete?(current_user) && milestone.active? - if milestone.complete?(current_user) && milestone.active?
.alert.alert-success.prepend-top-default .alert.alert-success.prepend-top-default
- close_msg = group ? 'You may close the milestone now.' : 'Navigate to the project to close the milestone.' - close_msg = group ? 'You may close the milestone now.' : 'Navigate to the project to close the milestone.'
%span All issues for this milestone are closed. #{close_msg} %span All issues for this milestone are closed. #{close_msg}
- if @milestone.legacy_group_milestone? || @milestone.dashboard_milestone? - if milestone.legacy_group_milestone? || milestone.dashboard_milestone?
.table-holder .table-holder
%table.table %table.table
%thead %thead
...@@ -69,7 +69,7 @@ ...@@ -69,7 +69,7 @@
Open Open
%td %td
= ms.expires_at = ms.expires_at
- elsif @milestone.group_milestone? - elsif milestone.group_milestone?
%br %br
View View
= link_to 'Issues', issues_group_path(@group, milestone_title: milestone.title) = link_to 'Issues', issues_group_path(@group, milestone_title: milestone.title)
......
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