mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-04 08:28:11 +00:00
modified repo_history, repo_history_dir;cleaned up css
This commit is contained in:
@@ -1,36 +1,5 @@
|
|||||||
body,h1,h2,h3,h4,h5,h6,p,ul,ol,li,dl,dt,dd,blockquote,form,input,button,img { margin:0; padding:0; }
|
body,h1,h2,h3,h4,h5,h6,p,ul,ol,li,dl,dt,dd,blockquote,form,input,button,img { margin:0; padding:0; }
|
||||||
ul > li { list-style:none; }
|
ul > li { list-style:none; }
|
||||||
.error { color:red; }
|
|
||||||
.fleft { float:left }
|
|
||||||
.fright { float:right }
|
|
||||||
.clear { clear:both; }
|
|
||||||
.show { display:block }
|
|
||||||
.hide { display:none }
|
|
||||||
.errorlist { color: red; }
|
|
||||||
.ovhd { overflow:hidden; }
|
|
||||||
.bold { font-weight:bold; }
|
|
||||||
.mgb5 { margin-bottom:5px; }
|
|
||||||
.mgb10 { margin-bottom:10px; }
|
|
||||||
.mgt10 { margin-top:10px; }
|
|
||||||
.label { color:#333; font-size:12px; font-style:normal; }
|
|
||||||
.w100 {
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
.notification {
|
|
||||||
padding:5px;
|
|
||||||
background:#FDF;
|
|
||||||
margin:10px 0;
|
|
||||||
}
|
|
||||||
.tip {
|
|
||||||
color:#808080;
|
|
||||||
font-size:12px;
|
|
||||||
}
|
|
||||||
.vh {
|
|
||||||
visibility:hidden;
|
|
||||||
}
|
|
||||||
.al-rt {
|
|
||||||
text-align:right;
|
|
||||||
}
|
|
||||||
a { color:#ee8833; text-decoration:none; font-weight:bold; }
|
a { color:#ee8833; text-decoration:none; font-weight:bold; }
|
||||||
a:hover { color: #ff9933; text-decoration: underline; }
|
a:hover { color: #ff9933; text-decoration: underline; }
|
||||||
img { border:none; }
|
img { border:none; }
|
||||||
@@ -94,6 +63,45 @@ tr.first { background-color: #00FF00; }
|
|||||||
table img {
|
table img {
|
||||||
vertical-align:middle;
|
vertical-align:middle;
|
||||||
}
|
}
|
||||||
|
/*common class*/
|
||||||
|
.error { color:red; }
|
||||||
|
.fleft { float:left }
|
||||||
|
.fright { float:right }
|
||||||
|
.clear { clear:both; }
|
||||||
|
.show { display:block }
|
||||||
|
.hide { display:none }
|
||||||
|
.errorlist { color: red; }
|
||||||
|
.ovhd { overflow:hidden; }
|
||||||
|
.bold { font-weight:bold; }
|
||||||
|
.label { color:#333; font-size:12px; font-style:normal; }
|
||||||
|
.w100 {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
.notification {
|
||||||
|
padding:5px;
|
||||||
|
background:#FDF;
|
||||||
|
margin:10px 0;
|
||||||
|
}
|
||||||
|
.tip {
|
||||||
|
color:#808080;
|
||||||
|
font-size:12px;
|
||||||
|
}
|
||||||
|
.vh {
|
||||||
|
visibility:hidden;
|
||||||
|
}
|
||||||
|
.al-rt {
|
||||||
|
text-align:right;
|
||||||
|
}
|
||||||
|
.op,
|
||||||
|
.more {
|
||||||
|
font-weight:normal;
|
||||||
|
font-size:12px;
|
||||||
|
color:#080;
|
||||||
|
}
|
||||||
|
.op {
|
||||||
|
font-size:13px;
|
||||||
|
}
|
||||||
|
|
||||||
/* container */
|
/* container */
|
||||||
#wrapper { font: 13px/1.5 Arial, Helvetica, sans-serif; }
|
#wrapper { font: 13px/1.5 Arial, Helvetica, sans-serif; }
|
||||||
#header, #main, #footer { width:950px; }
|
#header, #main, #footer { width:950px; }
|
||||||
@@ -248,15 +256,6 @@ table img {
|
|||||||
#repo-page .main {
|
#repo-page .main {
|
||||||
width:680px;
|
width:680px;
|
||||||
}
|
}
|
||||||
#repo-page .op,
|
|
||||||
#repo-page .more {
|
|
||||||
font-weight:normal;
|
|
||||||
font-size:12px;
|
|
||||||
color:#080;
|
|
||||||
}
|
|
||||||
#repo-page .op {
|
|
||||||
font-size:13px;
|
|
||||||
}
|
|
||||||
#repo-page .latest-commit .more:hover {
|
#repo-page .latest-commit .more:hover {
|
||||||
text-decoration:none;
|
text-decoration:none;
|
||||||
}
|
}
|
||||||
|
@@ -12,8 +12,8 @@
|
|||||||
<h2 id="repo-history-hd">{{repo.props.name}} 修改历史</h2>
|
<h2 id="repo-history-hd">{{repo.props.name}} 修改历史</h2>
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
<th width="13%">修改时间</th>
|
<th width="20%">修改时间</th>
|
||||||
<th width="17%">修改者</th>
|
<th width="10%">修改者</th>
|
||||||
<th width="60%">描述</th>
|
<th width="60%">描述</th>
|
||||||
<th width="10%">操作</th>
|
<th width="10%">操作</th>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -28,11 +28,11 @@
|
|||||||
<td>{{ commit.props.desc|translate_commit_desc }}</td>
|
<td>{{ commit.props.desc|translate_commit_desc }}</td>
|
||||||
{% if not forloop.last %}
|
{% if not forloop.last %}
|
||||||
<td>
|
<td>
|
||||||
<a href="{{ SITE_ROOT }}repo/history/dir/{{ repo.id }}/?commit_id={{ commit.id }}">浏览</a>
|
<a href="{{ SITE_ROOT }}repo/history/dir/{{ repo.id }}/?commit_id={{ commit.id }}" class="op">浏览</a>
|
||||||
{% if is_owner %}
|
{% if is_owner %}
|
||||||
<a href="#" data="{{ SITE_ROOT }}repo/history/revert/{{ repo.id }}/?commit_id={{ commit.id }}" class="repo-revert">还原</a>
|
<a href="#" data="{{ SITE_ROOT }}repo/history/revert/{{ repo.id }}/?commit_id={{ commit.id }}" class="repo-revert op">还原</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</td>
|
</td>
|
||||||
{% else %}
|
{% else %}
|
||||||
<td></td>
|
<td></td>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@@ -1,14 +1,13 @@
|
|||||||
{% extends "myhome_base.html" %}
|
{% extends "myhome_base.html" %}
|
||||||
{% load seahub_tags %}
|
{% load seahub_tags %}
|
||||||
|
|
||||||
{% block main_panel %}
|
{% block left_panel %}
|
||||||
<div id="repo-page" class="ovhd">
|
{% if not repo.props.encrypted %}
|
||||||
<h2>{{repo.props.name}} 历史浏览</h2>
|
{% if is_owner or repo_ap == 'public' or share_to_me %}
|
||||||
<div class="side fright">
|
<div class="latest-commit">
|
||||||
{% if not repo.props.encrypted %}
|
<h3>最新修改</h3>
|
||||||
{% if is_owner or repo_ap == 'public' or share_to_me %}
|
<p>{{ current_commit.props.desc|translate_commit_desc }}</p>
|
||||||
<p class="latest-commit mgt10">
|
<p class="al-rt">
|
||||||
{{ current_commit.props.desc|translate_commit_desc }}<br />
|
|
||||||
<span class="author">by
|
<span class="author">by
|
||||||
{% if current_commit.props.creator_name %}
|
{% if current_commit.props.creator_name %}
|
||||||
{{ current_commit.props.creator_name }}
|
{{ current_commit.props.creator_name }}
|
||||||
@@ -16,34 +15,41 @@
|
|||||||
未知
|
未知
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</span>
|
</span>
|
||||||
<span class="time">{{ current_commit.props.ctime|tsstr_sec }}</span>
|
<span class="time">{{ current_commit.props.ctime|translate_commit_time }}</span>
|
||||||
</p>
|
</p>
|
||||||
{% endif %}
|
|
||||||
{% endif %}
|
|
||||||
<a href="{{ SITE_ROOT }}repo/history/{{ repo.id }}/"><p>返回历史列表</p></a>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="main fleft">
|
{% endif %}
|
||||||
|
{% endif %}
|
||||||
|
<h3>操作</h3>
|
||||||
|
<ul class="with-bg">
|
||||||
|
<li><a href="{{ SITE_ROOT }}repo/history/{{ repo.id }}/">返回历史列表</a></li>
|
||||||
|
</ul>
|
||||||
|
{% endblock%}
|
||||||
|
|
||||||
|
{% block right_panel %}
|
||||||
|
<h3>{{repo.props.name}} 历史浏览</h3>
|
||||||
{% if repo.props.encrypted %}
|
{% if repo.props.encrypted %}
|
||||||
<p>该同步目录已加密,不能在线查看。</p>
|
<p>该同步目录已加密,不能在线查看。</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>该同步目录web匿名访问未开启,不能在线查看。</p>
|
||||||
{% else %}
|
{% else %}
|
||||||
<div>
|
<p>
|
||||||
|
当前路径:
|
||||||
{% 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> /
|
||||||
{% else %}
|
{% else %}
|
||||||
{{ name }}
|
{{ name }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</p>
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
<th width="5%"></th>
|
<th width="5%"></th>
|
||||||
<th width="55%">名字</th>
|
<th width="60%">名字</th>
|
||||||
<th width="10%">大小</th>
|
<th width="15%">大小</th>
|
||||||
<th width="30%">操作</th>
|
<th width="20%">操作</th>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
{% for dirent in dir_list %}
|
{% for dirent in dir_list %}
|
||||||
@@ -69,11 +75,4 @@
|
|||||||
</table>
|
</table>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
{% block extra_script %}
|
|
||||||
<script type="text/javascript">
|
|
||||||
</script>
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
Reference in New Issue
Block a user