1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-24 21:07:17 +00:00
Files
seahub/templates/view_shared_file.html
2012-08-01 13:54:53 +08:00

25 lines
983 B
HTML

{% extends "myhome_base.html" %}
{% load seahub_tags %}
{% block main_panel %}
<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>
<div id="file-view">
<p>文件内容读取中...</p>
</div>
{% endblock %}
{% block extra_script %}
{% 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 }}';
{% include "snippets/repo_file_get.html" %}
</script>
{% endblock %}