From 16cd93d5a4cb1d987f6e037329a7b91aee0a9864 Mon Sep 17 00:00:00 2001 From: Maximilian Grundke Date: Fri, 20 Jul 2018 11:54:27 +0200 Subject: [PATCH] Remove now unnecessary pagination --- app/controllers/exercise_collections_controller.rb | 1 - app/views/exercise_collections/show.html.slim | 4 +--- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/app/controllers/exercise_collections_controller.rb b/app/controllers/exercise_collections_controller.rb index 7c4a7d3f..1d7c1782 100644 --- a/app/controllers/exercise_collections_controller.rb +++ b/app/controllers/exercise_collections_controller.rb @@ -9,7 +9,6 @@ class ExerciseCollectionsController < ApplicationController end def show - @exercises = @exercise_collection.exercises.paginate(:page => params[:page]) end def new diff --git a/app/views/exercise_collections/show.html.slim b/app/views/exercise_collections/show.html.slim index b2b04cb5..c55d1d6b 100644 --- a/app/views/exercise_collections/show.html.slim +++ b/app/views/exercise_collections/show.html.slim @@ -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)