From 0e9cbf3b3f95106c7a93bcfb28c9d69d13ea3015 Mon Sep 17 00:00:00 2001 From: Denis Fedoseev Date: Fri, 4 Aug 2017 10:23:50 +0300 Subject: [PATCH] Style of upload form was fixed --- public/css/main.css | 5 +++++ templates/includes/images_list.html.ep | 8 ++++---- templates/layouts/base.html.ep | 2 +- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/public/css/main.css b/public/css/main.css index aaeba2a..7a218c2 100644 --- a/public/css/main.css +++ b/public/css/main.css @@ -37,4 +37,9 @@ float: left; padding-right: 5px; position: relative; +} + +.upload-form { + height: 100px; + padding: 10px; } \ No newline at end of file diff --git a/templates/includes/images_list.html.ep b/templates/includes/images_list.html.ep index 3b376cc..6efb6c9 100644 --- a/templates/includes/images_list.html.ep +++ b/templates/includes/images_list.html.ep @@ -1,5 +1,5 @@ -
-
+
+ @@ -26,7 +26,6 @@ }); -
@@ -99,7 +98,7 @@ }, created: function () { - this.fetchData(1) + this.fetchData(this.pageNumber) }, methods: { @@ -110,6 +109,7 @@ xhr.onload = function () { var result = JSON.parse(xhr.responseText); self.imagesList = result.images_list; + console.dir(self.imagesList); self.pagesCount = result.pages_count; } xhr.send() diff --git a/templates/layouts/base.html.ep b/templates/layouts/base.html.ep index 5e99f76..b978e6a 100644 --- a/templates/layouts/base.html.ep +++ b/templates/layouts/base.html.ep @@ -14,7 +14,7 @@ - +