This repository has been archived on 2023-03-26. You can view files and clone it, but cannot push or open issues or pull requests.
static-share/templates/file.html

29 lines
1.1 KiB
HTML
Raw Normal View History

2016-09-06 08:49:02 +01:00
{% extends 'base.html' %}
2016-09-06 22:10:43 +01:00
{% block title %}Download {{ file.get_original_filename }}{% endblock %}
2016-09-06 08:49:02 +01:00
{% block content %}
2016-09-06 22:10:43 +01:00
<div class="row">
<div class="col-sm-6 col-sm-offset-3">
<div class="thumbnail file">
<img src="{{ file.get_type_image }}" />
<div class="caption">
<h3>{{ file.get_original_filename }}</h3>
<h5>Created at: {{ file.created }}</h5>
</div>
2016-09-07 07:56:18 +01:00
{% if file.hotlink %}
<a class="btn btn-primary btn-block btn-lg download-button" href="{% url 'files:file_download' file.short_id token.token %}">
Download {{ file.get_original_filename }}
</a>
<p class="timer-message">This download link is only valid for <span class="timer" data-duration="{{ token.valid_time.seconds }}"></span>.</p>
{% else %}
<a class="btn btn-primary btn-block btn-lg download-button" href="{% url 'files:file_hot' file.short_id %}">
Download {{ file.get_original_filename }}
</a>
<p>Hotlinking is enabled for this file.</p>
{% endif %}
2016-09-06 22:10:43 +01:00
</div>
</div>
</div>
2016-09-06 08:49:02 +01:00
{% endblock %}