Commit 8c3277d6 authored by Jarka Kadlecova's avatar Jarka Kadlecova

Move epics views to the correct directory

parent 8502eb4a
......@@ -9,9 +9,7 @@ module IssuableActions
def show
respond_to do |format|
format.html do
render show_view
end
format.html
format.json do
render json: serializer.represent(issuable, serializer: params[:serializer])
end
......@@ -153,10 +151,6 @@ module IssuableActions
end
end
def show_view
'show'
end
def serializer
raise NotImplementedError
end
......
......@@ -12,12 +12,10 @@ class Groups::EpicsController < Groups::ApplicationController
@epics = @issuables
respond_to do |format|
format.html do
render 'groups/ee/epics/index'
end
format.html
format.json do
render json: {
html: view_to_html_string("groups/ee/epics/_epics")
html: view_to_html_string("groups/epics/_epics")
}
end
end
......@@ -55,10 +53,6 @@ class Groups::EpicsController < Groups::ApplicationController
Epics::UpdateService.new(nil, current_user, epic_params)
end
def show_view
'groups/ee/epics/show'
end
def finder_type
EpicsFinder
end
......
......@@ -56,7 +56,7 @@ describe Groups::EpicsController do
show_epic
expect(response.content_type).to eq 'text/html'
expect(response).to render_template 'groups/ee/epics/show'
expect(response).to render_template 'groups/epics/show'
end
context 'with unauthorized user' do
......
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