From 6ecb2f5937f6e8c94f93cadf5263e18fd0767cf2 Mon Sep 17 00:00:00 2001 From: TheOrangeOne Date: Wed, 7 Sep 2016 07:56:18 +0100 Subject: [PATCH] Add hotlinking link --- templates/file.html | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/templates/file.html b/templates/file.html index 70c502c..226142d 100644 --- a/templates/file.html +++ b/templates/file.html @@ -11,10 +11,17 @@

{{ file.get_original_filename }}

Created at: {{ file.created }}
- - Download {{ file.get_original_filename }} - -

This download link is only valid for .

+ {% if file.hotlink %} + + Download {{ file.get_original_filename }} + +

This download link is only valid for .

+ {% else %} + + Download {{ file.get_original_filename }} + +

Hotlinking is enabled for this file.

+ {% endif %}