Remove now unnecessary pagination
This commit is contained in:
@ -9,7 +9,6 @@ class ExerciseCollectionsController < ApplicationController
|
|||||||
end
|
end
|
||||||
|
|
||||||
def show
|
def show
|
||||||
@exercises = @exercise_collection.exercises.paginate(:page => params[:page])
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def new
|
def new
|
||||||
|
@ -8,7 +8,7 @@ h1
|
|||||||
= row(label: 'exercise_collections.updated_at', value: @exercise_collection.updated_at)
|
= row(label: 'exercise_collections.updated_at', value: @exercise_collection.updated_at)
|
||||||
|
|
||||||
h4 = t('activerecord.attributes.exercise_collections.exercises')
|
h4 = t('activerecord.attributes.exercise_collections.exercises')
|
||||||
.table-responsive
|
.table-responsive#exercise-list
|
||||||
table.table
|
table.table
|
||||||
thead
|
thead
|
||||||
tr
|
tr
|
||||||
@ -26,5 +26,3 @@ h4 = t('activerecord.attributes.exercise_collections.exercises')
|
|||||||
td = link_to_if(exercise.execution_environment && policy(exercise.execution_environment).show?, exercise.execution_environment, exercise.execution_environment)
|
td = link_to_if(exercise.execution_environment && policy(exercise.execution_environment).show?, exercise.execution_environment, exercise.execution_environment)
|
||||||
td = exercise.user.name
|
td = exercise.user.name
|
||||||
td = link_to(t('shared.statistics'), statistics_exercise_path(exercise))
|
td = link_to(t('shared.statistics'), statistics_exercise_path(exercise))
|
||||||
|
|
||||||
= render('shared/pagination', collection: @exercises)
|
|
||||||
|
Reference in New Issue
Block a user