1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-03 07:55:36 +00:00
Files
seahub/templates/repo.html

77 lines
1.7 KiB
HTML
Raw Normal View History

2011-09-07 10:57:47 +08:00
{% extends "myhome_base.html" %}
2011-10-13 00:17:48 +08:00
{% load seahub_tags %}
2011-08-16 21:05:42 +08:00
{% block right_panel %}
2011-10-13 00:17:48 +08:00
<h2>{{repo.props.name}}</h2>
2011-10-18 15:41:48 +08:00
<form id="modify-token-form" action="{{ SITE_ROOT }}repo/token/modify/{{repo.props.id}}/" method="post">
<p>新口令:</p>
<input id="id_token" type="text" name="token" /><br/>
<input id="id_summit" type="submit" value="提交" />
</form>
2011-10-13 00:17:48 +08:00
<table class="default">
<tr>
<td>ID</td>
<td>{{repo.props.id}}</td>
</tr>
<tr>
<td>描述</td>
<td>{{repo.props.desc}}</td>
</tr>
2011-10-18 15:41:48 +08:00
<tr>
<td>访问口令</td>
{% if is_owner %}
<td>{{token}} <input type="button" id="modify-token-btn" value="修改" /></td>
{% else %}
<td>只有拥有者可见</td>
{% endif %}
</tr>
2011-10-13 00:17:48 +08:00
</table>
2011-08-16 21:05:42 +08:00
<h3>版本</h3>
2011-08-16 21:05:42 +08:00
<table class="branch-list default">
<tr>
<th>版本名</th>
<th>最新提交记录</th>
2011-08-16 21:05:42 +08:00
</tr>
{% for branch in branches %}
<tr>
<td>{{branch.props.name}}</td>
<td>{{branch.props.commit_id}}</td>
</tr>
{% endfor %}
</table>
<h3>提交记录</h3>
2011-08-16 21:05:42 +08:00
<table class="commit-list default">
<tr>
<th>ID</th>
<th>时间</th>
<th>描述</th>
2011-08-16 21:05:42 +08:00
</tr>
{% for commit in commits %}
<tr>
2011-09-07 10:57:47 +08:00
<td>{{ commit.props.id }}</td>
2011-10-13 00:17:48 +08:00
<td>{{ commit.props.ctime|tsstr_sec }}</td>
2011-09-07 10:57:47 +08:00
<td>{{ commit.props.desc }}</td>
2011-08-16 21:05:42 +08:00
</tr>
{% endfor %}
</table>
{% endblock %}
2011-10-18 15:41:48 +08:00
{% block extra_script %}
<script type="text/javascript">
$(function() {
$("#modify-token-btn").click(function() {
$("#modify-token-form").modal({appendTo: "#main"});
});
$("#modify-token-form").hide();
})
</script>
{% endblock %}