1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-17 06:27:28 +00:00
seahub/templates/shared_file_view.html

46 lines
1.4 KiB
HTML
Raw Normal View History

{% extends "myhome_base.html" %}
{% load seahub_tags i18n %}
{% block extra_style %}
{% include 'snippets/file_view_style.html' %}
<style type="text/css">
.CodeMirror { margin-bottom:0; }
#footer { display:block; }
</style>
{% endblock %}
{% block main_panel %}
<h2 id="view-hd">{{ file_name }}</h2>
2012-08-10 13:35:58 +00:00
<div id="file">
2012-08-15 02:44:15 +00:00
<div id="file-op">
<p class="fleft">
2013-01-03 11:28:57 +00:00
{% if zipped %}
{% trans "Current path: "%}
{% for name, link in zipped %}
{% if not forloop.last %}
<a href="{{ SITE_ROOT }}d/{{ token }}/?p={{ link|urlencode }}">{{ name }}</a> /
{% else %}
{{ name }}
{% endif %}
{% endfor %}
{% else %}
{% trans "Shared by: " %}{{ username|email2nickname }}
2013-01-03 11:28:57 +00:00
{% endif %}
</p>
<button data="{{ SITE_ROOT }}repo/{{ repo.id }}/{{ obj_id }}/?file_name={{ file_name }}&op=download&t={{ shared_token }}" id="download">{% trans "Download" %}</button>
2012-08-10 13:35:58 +00:00
</div>
{% include 'snippets/file_content_html.html' %}
</div>
{% endblock %}
{% block extra_script %}
2012-07-31 08:48:55 +00:00
{% include "snippets/file_view_js.html" %}
<script type="text/javascript">
2012-08-10 13:35:58 +00:00
$('#view-original, #download').click(function() {
window.open($(this).attr('data'));
});
{% include "snippets/file_content_js.html" %}
</script>
{% endblock %}