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