Remove now unnecessary pagination

This commit is contained in:
Maximilian Grundke
2018-07-20 11:54:27 +02:00
parent e7f293ac14
commit 16cd93d5a4
2 changed files with 1 additions and 4 deletions

View File

@ -9,7 +9,6 @@ class ExerciseCollectionsController < ApplicationController
end
def show
@exercises = @exercise_collection.exercises.paginate(:page => params[:page])
end
def new

View File

@ -8,7 +8,7 @@ h1
= row(label: 'exercise_collections.updated_at', value: @exercise_collection.updated_at)
h4 = t('activerecord.attributes.exercise_collections.exercises')
.table-responsive
.table-responsive#exercise-list
table.table
thead
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 = exercise.user.name
td = link_to(t('shared.statistics'), statistics_exercise_path(exercise))
= render('shared/pagination', collection: @exercises)