1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-25 14:50:29 +00:00
Files
seahub/templates/view_shared_file.html

25 lines
983 B
HTML
Raw Normal View History

{% extends "myhome_base.html" %}
{% load seahub_tags %}
{% block main_panel %}
2012-07-14 15:19:09 +08:00
<h2>{{ file_name }}</h2>
<div class="w100 ovhd">
<p class="file-share-from fleft">共享者:{{ username }}</p>
<div class="file-op fright">
<a href="{{ SITE_ROOT }}repo/{{ repo.id }}/{{ obj_id }}/?file_name={{ file_name }}&op=view&t={{ shared_token }}" target="_blank">查看原始文件</a>
<a href="{{ SITE_ROOT }}repo/{{ repo.id }}/{{ obj_id }}/?file_name={{ file_name }}&op=download&t={{ shared_token }}" target="_blank">下载文件</a>
</div>
</div>
2012-07-14 15:19:09 +08:00
<div id="file-view">
<p>文件内容读取中...</p>
</div>
{% endblock %}
{% block extra_script %}
2012-07-31 16:48:55 +08:00
{% include "snippets/file_view_js.html" %}
<script type="text/javascript">
var url = '{{ SITE_ROOT }}repo/{{ repo.id }}/file/get/?t={{ access_token }}&p={{ path|urlencode }}&u={{ username }}';
2012-07-31 16:48:55 +08:00
{% include "snippets/repo_file_get.html" %}
</script>
{% endblock %}