From c2e771561d583b61767c1c4879a251f1e0f836fe Mon Sep 17 00:00:00 2001 From: simon Date: Wed, 26 Jul 2017 16:51:31 +0100 Subject: [PATCH] #17: Fix. --- resources/config.edn | 4 +++ resources/templates/base.html | 3 +- resources/templates/upload.html | 34 ++++++++++++++++++ src/smeagol/routes/wiki.clj | 26 ++++++++++++++ src/smeagol/uploads.clj | 64 +++++++++++++++++++++++++++++++++ 5 files changed, 130 insertions(+), 1 deletion(-) create mode 100644 resources/templates/upload.html create mode 100644 src/smeagol/uploads.clj diff --git a/resources/config.edn b/resources/config.edn index 6afb713..3930d1c 100644 --- a/resources/config.edn +++ b/resources/config.edn @@ -65,6 +65,10 @@ :edit-users-title "Select user to edit" ;; title of edit users page :email-prompt "Email address" ;; text of the email widget prompt on edit user page + :file-upload-link-text "You may link to this file using a link of the form" + ;; Text introducing the link to an uploaded file + :file-upload-prompt "File to upload" ;; prompt string for the file upload widget + :file-upload-title "Upload a file" ;; title for the file upload page :is-admin-prompt "Is administrator?" :home-link "Home" ;; text of the home link on the menu :login-label "Log in!" ;; text of the login widget on the login page diff --git a/resources/templates/base.html b/resources/templates/base.html index 754b31d..8d980d8 100644 --- a/resources/templates/base.html +++ b/resources/templates/base.html @@ -6,6 +6,7 @@ + {% block extra-headers %} {% endblock %} @@ -20,6 +21,7 @@
  • {{config.edit-users-link}}
  • {% endif %} {% if user %} +
  • {{config.file-upload-title}}
  • {{config.change-pass-link}}
  • {{config.logged-in-as}} {{user}}
  • @@ -90,4 +92,3 @@