Skip to content
Snippets Groups Projects
Commit f5d96009 authored by Takuya Noguchi's avatar Takuya Noguchi
Browse files

Avoid to repeat namespace querying on project milestone

parent de2d5ce6
No related branches found
No related tags found
Loading
Loading
Loading
@@ -45,6 +45,7 @@ class Projects::MilestonesController < Projects::ApplicationController
end
 
def show
@project_namespace = @project.namespace.becomes(Namespace)
end
 
def create
Loading
Loading
Loading
Loading
@@ -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|
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment