1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-02 15:38:15 +00:00

Clean up shared repo listing code and add permission for public repos.

This commit is contained in:
killing
2012-09-26 10:49:00 +08:00
parent 58efc80107
commit d30f7c4bbb
16 changed files with 263 additions and 156 deletions

View File

@@ -4,6 +4,13 @@
<input id="repo-name" type="text" name="repo_name" value="" /><br />
<label>描述:</label><br/>
<textarea id="repo-desc" name="repo_desc"></textarea>
{% if create_shared_repo %}
<label style="display:block">共享权限:</label>
<select name="permission">
<option value="rw" selected="selected">可读写</option>
<option value="r">只可浏览</option>
</select>
{% endif %}
<div class="repo-create-encryption">
<input type="checkbox" name="encryption" id="encrypt-switch" /><label>加密</label><br />
<label>密码:</label><span class="tip">(3到15个字符)</span><br />