yenu
- Images, - Upload a new image -+ + +
diff --git a/resources/public/css/screen.css b/resources/public/css/screen.css index 26b3d46..e69de29 100644 --- a/resources/public/css/screen.css +++ b/resources/public/css/screen.css @@ -1,9 +0,0 @@ -#images { - margin: auto; -} - -.thumbnail-image { - margin: 2px; - padding: 1px; - border: 1px solid #ddd; -} diff --git a/resources/scss/screen.scss b/resources/scss/screen.scss index 7f38ace..e69de29 100644 --- a/resources/scss/screen.scss +++ b/resources/scss/screen.scss @@ -1,5 +0,0 @@ -html, body { - font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; - height: 100%; - padding-top: 40px; -} diff --git a/resources/sql/queries.sql b/resources/sql/queries.sql index 76fe1ae..64ba0d8 100644 --- a/resources/sql/queries.sql +++ b/resources/sql/queries.sql @@ -16,8 +16,12 @@ WHERE id = :id -- :name get-all-images :? :* SELECT * FROM images +ORDER BY created_at DESC LIMIT :count OFFSET :offset +-- :name get-image-count :? :1 +SELECT COUNT(id) as count FROM images + -- :name create-tag! :i! INSERT OR IGNORE INTO tags (tagname) diff --git a/resources/templates/admin/upload.html b/resources/templates/admin/upload.html index c414f85..25becfe 100644 --- a/resources/templates/admin/upload.html +++ b/resources/templates/admin/upload.html @@ -1,7 +1,7 @@ {% extends "layout.html" %} {% block content %} -
Here you can upload a new image to the gallery. This image is then saved in three different formats. The raw image, a scaled down version and a scoped thumbnail image for the overview. You can upload all sorts of images.
diff --git a/resources/templates/index.html b/resources/templates/index.html index cf6176d..22bd3a8 100644 --- a/resources/templates/index.html +++ b/resources/templates/index.html @@ -1,16 +1,34 @@ {% extends "layout.html" %} {% block content %} + +{% if pages|count > 1 %} + + +{% endif %} +