1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-19 01:44:13 +00:00

Improve repo and repo_history_dir

This commit is contained in:
plt
2012-06-01 02:20:35 +08:00
parent b0b0dfea47
commit 28dbc2ad73
3 changed files with 6 additions and 7 deletions

View File

@@ -165,7 +165,7 @@ table img {
#footer a { color:#333; text-decoration:none; }
/* main */
h2.subject {}
p.path { margin: 12px 0 6px 0; color:#333; }
p.path, p.access-notice { margin: 12px 0 6px 0; }
.with-bg li {
padding-left:10px;
line-height:20px;

View File

@@ -4,7 +4,6 @@
{% block main_panel %}
<h2 class="subject">
{{repo.props.name}}
<span class="latest-commit-time-author">({{ latest_commit.props.ctime|tsstr_sec }})</span>
</h2>
<div class="side fright">
@@ -47,7 +46,7 @@
<div class="main fleft">
{% if repo.props.encrypted and not password_set %}
<p>该目录已加密。如需在线查看里面的内容请输入解密密码。密码只会在服务器上暂存1小时。</p>
<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 />
@@ -59,7 +58,7 @@
{% else %}
{% if not is_owner and repo_ap == 'own' and not share_to_me %}
<p>该同步目录web匿名访问未开启不能在线查看。</p>
<p class="access-notice">该同步目录web匿名访问未开启不能在线查看。</p>
{% else %}
<p class="path">
当前路径:

View File

@@ -34,12 +34,12 @@
<div class="main fleft">
{% if repo.props.encrypted %}
<p>该同步目录已加密,不能在线查看。</p>
<p class="access-notice">该同步目录已加密,不能在线查看。</p>
{% else %}
{% if not is_owner and repo_ap == 'own' and not share_to_me %}
<p>该同步目录web匿名访问未开启不能在线查看。</p>
<p class="access-notice">该同步目录web匿名访问未开启不能在线查看。</p>
{% else %}
<p>当前路径:
<p class="path">当前路径:
{% for name, link in zipped %}
{% if not forloop.last %}
<a href="{{ SITE_ROOT }}repo/history/dir/{{ repo.id }}/?commit_id={{ current_commit.id}}&p={{ link|urlencode }}">{{ name }}</a> /