From af8f8c27a6570523280e5e77a2d88c5b43e96fac Mon Sep 17 00:00:00 2001 From: Jason White Date: Thu, 16 Feb 2017 14:56:08 -0500 Subject: [PATCH] moving controls to top of content --- .../js/goatApp/view/LessonContentView.js | 2 +- .../main/resources/templates/main_new.html | 31 ++++++++++++------- 2 files changed, 21 insertions(+), 12 deletions(-) diff --git a/webgoat-container/src/main/resources/static/js/goatApp/view/LessonContentView.js b/webgoat-container/src/main/resources/static/js/goatApp/view/LessonContentView.js index 84915c81f..07e9eb177 100644 --- a/webgoat-container/src/main/resources/static/js/goatApp/view/LessonContentView.js +++ b/webgoat-container/src/main/resources/static/js/goatApp/view/LessonContentView.js @@ -174,7 +174,7 @@ define(['jquery', pagingControlsDiv = $('
',{class:'panel-body', id:'lesson-page-controls'}); pagingControlsDiv.append(prevPageButton); pagingControlsDiv.append(nextPageButton); - this.$el.append(pagingControlsDiv); + this.$el.find('.lesson-page-controls').append(pagingControlsDiv); } }, diff --git a/webgoat-container/src/main/resources/templates/main_new.html b/webgoat-container/src/main/resources/templates/main_new.html index 7553ef8b2..a791f2026 100644 --- a/webgoat-container/src/main/resources/templates/main_new.html +++ b/webgoat-container/src/main/resources/templates/main_new.html @@ -62,7 +62,8 @@
- + - - + +
- @@ -140,9 +144,11 @@ id="show-hints-button" th:text="#{show.hints}">Show hints - @@ -151,8 +157,8 @@
- +
@@ -166,6 +172,9 @@
+
+ +