2012-07-11 22:39:36 +08:00
|
|
|
{% 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>
|
2012-07-11 22:39:36 +08:00
|
|
|
</div>
|
2012-07-14 15:19:09 +08:00
|
|
|
<div id="file-view">
|
|
|
|
<p>文件内容读取中...</p>
|
2012-07-11 22:39:36 +08:00
|
|
|
</div>
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block extra_script %}
|
2012-07-31 16:48:55 +08:00
|
|
|
{% include "snippets/file_view_js.html" %}
|
2012-07-11 22:39:36 +08:00
|
|
|
<script type="text/javascript">
|
2012-07-31 13:54:33 +08:00
|
|
|
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" %}
|
2012-07-11 22:39:36 +08:00
|
|
|
</script>
|
|
|
|
{% endblock %}
|