2011-09-07 02:57:47 +00:00
|
|
|
|
{% extends "myhome_base.html" %}
|
2011-10-12 16:17:48 +00:00
|
|
|
|
{% load seahub_tags %}
|
2011-08-16 13:05:42 +00:00
|
|
|
|
|
2012-06-12 02:13:14 +00:00
|
|
|
|
{% block info_bar_message %}
|
|
|
|
|
{% if request.user.is_authenticated %}
|
|
|
|
|
{{ block.super }}
|
|
|
|
|
{% else %}
|
|
|
|
|
<div id="info-bar">
|
|
|
|
|
<span class="info">当前链接会在短期内失效,欢迎您 <a href="http://seafile.com/" target="_blank">加入Seafile </a>体验更多功能。</span>
|
|
|
|
|
</div>
|
|
|
|
|
{% endif %}
|
|
|
|
|
{% endblock %}
|
|
|
|
|
|
2012-05-04 13:36:36 +00:00
|
|
|
|
{% block main_panel %}
|
2012-05-31 11:53:33 +00:00
|
|
|
|
<h2 class="subject">
|
2012-05-31 09:50:46 +00:00
|
|
|
|
{{repo.props.name}}
|
|
|
|
|
</h2>
|
2012-05-29 09:26:00 +00:00
|
|
|
|
|
2012-05-05 05:57:42 +00:00
|
|
|
|
<div class="side fright">
|
2012-06-12 02:13:14 +00:00
|
|
|
|
<h3>基本信息</h3>
|
|
|
|
|
<p>{{repo.props.desc}}</p>
|
|
|
|
|
<p>大小:{{ repo_size|filesizeformat }}</p>
|
|
|
|
|
|
|
|
|
|
{% if not repo.props.encrypted or password_set %}
|
|
|
|
|
{% if can_access %}
|
|
|
|
|
<div class="latest-commit">
|
2012-06-20 13:38:07 +00:00
|
|
|
|
<h3>最新修改
|
|
|
|
|
{% if request.user.is_authenticated %}
|
|
|
|
|
<a href="{{ SITE_ROOT }}repo/history/{{repo.props.id}}/" class="more">(更多)</a>
|
|
|
|
|
{% endif %}
|
|
|
|
|
</h3>
|
2012-05-29 07:38:44 +00:00
|
|
|
|
<p>{{ latest_commit.props.desc|translate_commit_desc }}</p>
|
|
|
|
|
<p class="al-rt">
|
2012-06-12 02:13:14 +00:00
|
|
|
|
<span class="author">by
|
|
|
|
|
{% if latest_commit.props.creator_name %}
|
|
|
|
|
{{ latest_commit.props.creator_name }}
|
|
|
|
|
{% else %}
|
|
|
|
|
未知
|
|
|
|
|
{% endif %}
|
|
|
|
|
</span>
|
|
|
|
|
<span class="time">{{ latest_commit.props.ctime|translate_commit_time }}</span>
|
2012-05-29 07:38:44 +00:00
|
|
|
|
</p>
|
2012-06-12 02:13:14 +00:00
|
|
|
|
</div>
|
|
|
|
|
{% endif %}
|
|
|
|
|
{% endif %}
|
2012-05-04 13:36:36 +00:00
|
|
|
|
</div>
|
2012-05-29 09:26:00 +00:00
|
|
|
|
|
2012-05-05 05:57:42 +00:00
|
|
|
|
<div class="main fleft">
|
2012-06-12 02:13:14 +00:00
|
|
|
|
{% if repo.props.encrypted and not password_set %}
|
|
|
|
|
<p class="access-notice">该目录已加密。如需在线查看里面的内容,请输入解密密码。密码只会在服务器上暂存1小时。</p>
|
|
|
|
|
<form action="{{ SITE_ROOT }}repo/{{ repo.id }}/" method="post">
|
|
|
|
|
<label>密码:</label>
|
|
|
|
|
<input id="id_password" type="password" name="password" maxlength="64" /><br />
|
|
|
|
|
{% if error %}
|
|
|
|
|
<p class="error">{{ error }}</p>
|
|
|
|
|
{% endif %}
|
|
|
|
|
<input type="submit" value="提交" />
|
|
|
|
|
</form>
|
2012-05-29 09:26:00 +00:00
|
|
|
|
|
2012-06-12 02:13:14 +00:00
|
|
|
|
{% else %}
|
|
|
|
|
{% if not can_access %}
|
|
|
|
|
<p class="access-notice">无法在线查看该同步目录。</p>
|
|
|
|
|
{% else %}
|
|
|
|
|
<p class="path">
|
2012-05-29 09:26:00 +00:00
|
|
|
|
当前路径:
|
2012-06-12 02:13:14 +00:00
|
|
|
|
{% for name, link in zipped %}
|
|
|
|
|
{% if not forloop.last %}
|
2012-05-29 09:26:00 +00:00
|
|
|
|
<a href="{{ SITE_ROOT }}repo/{{ repo.id }}/?p={{ link|urlencode }}">{{ name }}</a> /
|
2012-06-12 02:13:14 +00:00
|
|
|
|
{% else %}
|
2012-05-29 09:26:00 +00:00
|
|
|
|
{{ name }}
|
2012-06-12 02:13:14 +00:00
|
|
|
|
{% endif %}
|
|
|
|
|
{% endfor %}
|
|
|
|
|
</p>
|
|
|
|
|
<table>
|
2012-05-29 09:26:00 +00:00
|
|
|
|
<tr>
|
2012-06-12 02:13:14 +00:00
|
|
|
|
<th width="5%"></th>
|
|
|
|
|
<th width="69%">名字</th>
|
|
|
|
|
<th width="13%">大小</th>
|
|
|
|
|
<th width="13%">操作</th>
|
2012-05-29 09:26:00 +00:00
|
|
|
|
</tr>
|
2012-05-19 13:01:21 +00:00
|
|
|
|
|
2012-06-12 02:13:14 +00:00
|
|
|
|
{% for dirent in dir_list %}
|
2012-05-29 09:26:00 +00:00
|
|
|
|
<tr>
|
2012-06-12 02:13:14 +00:00
|
|
|
|
<td class="icon-container"><img src="{{ MEDIA_URL }}img/folder-icon-24.png" alt="目录" /></td>
|
|
|
|
|
<td><a href="{{ SITE_ROOT }}repo/{{ repo.id }}/?p={{ path|urlencode }}{{ dirent.obj_name|urlencode }}">{{ dirent.obj_name }}</a></td>
|
|
|
|
|
<td></td>
|
|
|
|
|
<td></td>
|
2012-05-29 09:26:00 +00:00
|
|
|
|
</tr>
|
2012-06-12 02:13:14 +00:00
|
|
|
|
{% endfor %}
|
2012-05-19 13:01:21 +00:00
|
|
|
|
|
2012-06-12 02:13:14 +00:00
|
|
|
|
{% for dirent in file_list %}
|
2012-05-29 09:26:00 +00:00
|
|
|
|
<tr>
|
2012-06-12 02:13:14 +00:00
|
|
|
|
<td class="icon-container"><img src="{{ MEDIA_URL }}img/{{ dirent.obj_name|file_icon_filter }}" alt="文件" /></td>
|
|
|
|
|
<td>{{ dirent.props.obj_name }}</td>
|
|
|
|
|
<td>{{ dirent.file_size|filesizeformat }}</td>
|
|
|
|
|
<td>
|
|
|
|
|
<a class="op" href="{{ SITE_ROOT }}repo/{{ repo.props.id }}/{{ dirent.props.obj_id }}/?file_name={{ dirent.props.obj_name }}&op=view">查看</a>
|
|
|
|
|
<a class="op" href="{{ SITE_ROOT }}repo/{{ repo.props.id }}/{{ dirent.props.obj_id }}/?file_name={{ dirent.props.obj_name }}&op=download">下载</a>
|
|
|
|
|
</td>
|
2012-05-29 09:26:00 +00:00
|
|
|
|
</tr>
|
2012-06-12 02:13:14 +00:00
|
|
|
|
{% endfor %}
|
|
|
|
|
</table>
|
|
|
|
|
{% endif %}
|
|
|
|
|
{% endif %}
|
2012-05-04 13:36:36 +00:00
|
|
|
|
</div>
|
2011-08-16 13:05:42 +00:00
|
|
|
|
{% endblock %}
|
2011-10-18 07:41:48 +00:00
|
|
|
|
|
|
|
|
|
{% block extra_script %}
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
</script>
|
|
|
|
|
{% endblock %}
|