diff --git a/gallery/__init__.py b/gallery/__init__.py index 459afab..c7a40f9 100644 --- a/gallery/__init__.py +++ b/gallery/__init__.py @@ -5,7 +5,7 @@ print(""" | |_| | | | | | |_| | |__| __/ (_| \\__ \\ \\___/|_| |_|_|\\__, |_____\\___|\\__, |___/ |___/ |___/ -Created by Fluffy Bean - Version 130123 +Created by Fluffy Bean - Version 140123 """) # Import base packages diff --git a/gallery/api.py b/gallery/api.py index 6a5dee6..453405b 100644 --- a/gallery/api.py +++ b/gallery/api.py @@ -47,7 +47,7 @@ def upload(): img_name = f"GWAGWA_{uuid4().__str__()}{img_ext}" if not img_ext in current_app.config['ALLOWED_EXTENSIONS']: - return 'File extension not allowed: '+img_ext + abort(403) # Save to database try: diff --git a/gallery/static/images/background.svg b/gallery/static/images/background.svg new file mode 100644 index 0000000..ef824d3 --- /dev/null +++ b/gallery/static/images/background.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/gallery/templates/error.html b/gallery/templates/error.html index 9ee3992..8b877dd 100644 --- a/gallery/templates/error.html +++ b/gallery/templates/error.html @@ -1,7 +1,7 @@ {% extends 'layout.html' %} {% block header %} -leaves + {% endblock %} {% block content %} diff --git a/gallery/templates/group.html b/gallery/templates/group.html index 8999962..a54d4f5 100644 --- a/gallery/templates/group.html +++ b/gallery/templates/group.html @@ -1,7 +1,7 @@ {% extends 'layout.html' %} {% block header %} -leaves + {% endblock %} {% block content %} diff --git a/gallery/templates/image.html b/gallery/templates/image.html index 5e08977..1af5e42 100644 --- a/gallery/templates/image.html +++ b/gallery/templates/image.html @@ -1,15 +1,15 @@ {% extends 'layout.html' %} {% block header %} - leaves + leaves {% endblock %} {% block content %}
@@ -18,7 +18,7 @@ @@ -122,16 +122,29 @@ {% endif %} -
+