mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-19 18:29:23 +00:00
Improve repo and repo_history_dir
This commit is contained in:
@@ -165,7 +165,7 @@ table img {
|
|||||||
#footer a { color:#333; text-decoration:none; }
|
#footer a { color:#333; text-decoration:none; }
|
||||||
/* main */
|
/* main */
|
||||||
h2.subject {}
|
h2.subject {}
|
||||||
p.path { margin: 12px 0 6px 0; color:#333; }
|
p.path, p.access-notice { margin: 12px 0 6px 0; }
|
||||||
.with-bg li {
|
.with-bg li {
|
||||||
padding-left:10px;
|
padding-left:10px;
|
||||||
line-height:20px;
|
line-height:20px;
|
||||||
|
@@ -4,7 +4,6 @@
|
|||||||
{% block main_panel %}
|
{% block main_panel %}
|
||||||
<h2 class="subject">
|
<h2 class="subject">
|
||||||
{{repo.props.name}}
|
{{repo.props.name}}
|
||||||
<span class="latest-commit-time-author">({{ latest_commit.props.ctime|tsstr_sec }})</span>
|
|
||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
<div class="side fright">
|
<div class="side fright">
|
||||||
@@ -47,7 +46,7 @@
|
|||||||
|
|
||||||
<div class="main fleft">
|
<div class="main fleft">
|
||||||
{% if repo.props.encrypted and not password_set %}
|
{% 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">
|
<form action="{{ SITE_ROOT }}repo/{{ repo.id }}/" method="post">
|
||||||
<label>密码:</label>
|
<label>密码:</label>
|
||||||
<input id="id_password" type="password" name="password" maxlength="64" /><br />
|
<input id="id_password" type="password" name="password" maxlength="64" /><br />
|
||||||
@@ -59,7 +58,7 @@
|
|||||||
|
|
||||||
{% else %}
|
{% else %}
|
||||||
{% if not is_owner and repo_ap == 'own' and not share_to_me %}
|
{% if not is_owner and repo_ap == 'own' and not share_to_me %}
|
||||||
<p>该同步目录web匿名访问未开启,不能在线查看。</p>
|
<p class="access-notice">该同步目录web匿名访问未开启,不能在线查看。</p>
|
||||||
{% else %}
|
{% else %}
|
||||||
<p class="path">
|
<p class="path">
|
||||||
当前路径:
|
当前路径:
|
||||||
|
@@ -34,12 +34,12 @@
|
|||||||
|
|
||||||
<div class="main fleft">
|
<div class="main fleft">
|
||||||
{% if repo.props.encrypted %}
|
{% if repo.props.encrypted %}
|
||||||
<p>该同步目录已加密,不能在线查看。</p>
|
<p class="access-notice">该同步目录已加密,不能在线查看。</p>
|
||||||
{% else %}
|
{% else %}
|
||||||
{% if not is_owner and repo_ap == 'own' and not share_to_me %}
|
{% if not is_owner and repo_ap == 'own' and not share_to_me %}
|
||||||
<p>该同步目录web匿名访问未开启,不能在线查看。</p>
|
<p class="access-notice">该同步目录web匿名访问未开启,不能在线查看。</p>
|
||||||
{% else %}
|
{% else %}
|
||||||
<p>当前路径:
|
<p class="path">当前路径:
|
||||||
{% for name, link in zipped %}
|
{% for name, link in zipped %}
|
||||||
{% if not forloop.last %}
|
{% if not forloop.last %}
|
||||||
<a href="{{ SITE_ROOT }}repo/history/dir/{{ repo.id }}/?commit_id={{ current_commit.id}}&p={{ link|urlencode }}">{{ name }}</a> /
|
<a href="{{ SITE_ROOT }}repo/history/dir/{{ repo.id }}/?commit_id={{ current_commit.id}}&p={{ link|urlencode }}">{{ name }}</a> /
|
||||||
|
Reference in New Issue
Block a user