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
|
|
|
|
|
|
|
{% block right_panel %}
|
|
|
|
|
2011-10-12 16:17:48 +00:00
|
|
|
<h2>{{repo.props.name}}</h2>
|
2011-10-18 07:41:48 +00:00
|
|
|
|
2012-03-27 03:11:21 +00:00
|
|
|
<form id="modify-token-form" action="{{ SITE_ROOT }}repo/token/modify/{{repo.props.id}}/" method="post" class="hide">
|
|
|
|
<h3>新口令:</h3>
|
2011-10-18 07:41:48 +00:00
|
|
|
<input id="id_token" type="text" name="token" /><br/>
|
|
|
|
<input id="id_summit" type="submit" value="提交" />
|
|
|
|
</form>
|
|
|
|
|
2012-03-27 03:11:21 +00:00
|
|
|
<h3>基本信息</h3>
|
|
|
|
<table class="mgb10">
|
2011-10-12 16:17:48 +00:00
|
|
|
<tr>
|
2012-03-27 03:11:21 +00:00
|
|
|
<th>ID</th>
|
2011-10-12 16:17:48 +00:00
|
|
|
<td>{{repo.props.id}}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2012-03-27 03:11:21 +00:00
|
|
|
<th>描述</th>
|
2011-10-12 16:17:48 +00:00
|
|
|
<td>{{repo.props.desc}}</td>
|
|
|
|
</tr>
|
2011-10-18 07:41:48 +00:00
|
|
|
<tr>
|
2012-03-27 03:11:21 +00:00
|
|
|
<th>访问口令</th>
|
2011-10-18 07:41:48 +00:00
|
|
|
{% if is_owner %}
|
2012-03-28 02:38:12 +00:00
|
|
|
<td><span id="token">*****</span> <input type="checkbox" name="token-show-switch" id="token-show-switch" /><label for="token-show-switch">显示</label> <button id="modify-token-btn">修改</button></td>
|
2011-10-18 07:41:48 +00:00
|
|
|
{% else %}
|
2012-03-27 03:11:21 +00:00
|
|
|
<td>只有同步目录拥有者可见</td>
|
2011-10-18 07:41:48 +00:00
|
|
|
{% endif %}
|
|
|
|
</tr>
|
2011-10-12 16:17:48 +00:00
|
|
|
</table>
|
2011-08-16 13:05:42 +00:00
|
|
|
|
2012-03-27 03:11:21 +00:00
|
|
|
<h3>修改记录</h3>
|
|
|
|
<table>
|
2011-08-16 13:05:42 +00:00
|
|
|
<tr>
|
2012-03-10 14:30:23 +00:00
|
|
|
<!-- <th>ID</th> -->
|
2012-03-27 03:11:21 +00:00
|
|
|
<th>修改时间</th>
|
2012-01-29 05:05:35 +00:00
|
|
|
<th>描述</th>
|
2011-08-16 13:05:42 +00:00
|
|
|
</tr>
|
|
|
|
{% for commit in commits %}
|
|
|
|
<tr>
|
2012-03-10 12:29:40 +00:00
|
|
|
<!-- <td>{{ commit.props.id }}</td> -->
|
2011-10-12 16:17:48 +00:00
|
|
|
<td>{{ commit.props.ctime|tsstr_sec }}</td>
|
2011-09-07 02:57:47 +00:00
|
|
|
<td>{{ commit.props.desc }}</td>
|
2011-08-16 13:05:42 +00:00
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
|
|
|
|
|
|
|
{% endblock %}
|
2011-10-18 07:41:48 +00:00
|
|
|
|
|
|
|
{% block extra_script %}
|
|
|
|
<script type="text/javascript">
|
|
|
|
$(function() {
|
|
|
|
$("#modify-token-btn").click(function() {
|
|
|
|
$("#modify-token-form").modal({appendTo: "#main"});
|
|
|
|
});
|
|
|
|
})
|
2012-03-28 02:38:12 +00:00
|
|
|
$('#token-show-switch').click(function() {
|
|
|
|
if ($(this).attr('checked')) {
|
|
|
|
$('#token').html('{{token}}');
|
|
|
|
} else {
|
|
|
|
$('#token').html('*****');
|
|
|
|
}
|
|
|
|
});
|
2011-10-18 07:41:48 +00:00
|
|
|
</script>
|
|
|
|
{% endblock %}
|