Commit f5d96009 authored by Takuya Noguchi's avatar Takuya Noguchi

Avoid to repeat namespace querying on project milestone

parent de2d5ce6
......@@ -45,6 +45,7 @@ class Projects::MilestonesController < Projects::ApplicationController
end
def show
@project_namespace = @project.namespace.becomes(Namespace)
end
def create
......
......@@ -18,7 +18,7 @@
= confidential_icon(issuable)
= link_to issuable.title, issuable_url_args, title: issuable.title
.issuable-detail
= link_to [project.namespace.becomes(Namespace), project, issuable] do
= link_to [namespace, project, issuable] do
%span.issuable-number= issuable.to_reference
- issuable.labels.each do |label|
......
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