1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-11 11:52:08 +00:00

modified repo

This commit is contained in:
llj 2012-05-29 17:26:00 +08:00
parent 283b4f0e58
commit d4d08fc496
3 changed files with 58 additions and 58 deletions

View File

@ -18,7 +18,6 @@ ul > li { list-style:none; }
} }
.notification { .notification {
padding:5px; padding:5px;
width:580px;
background:#FDF; background:#FDF;
margin:10px 0; margin:10px 0;
} }
@ -54,7 +53,7 @@ button {
font-size:13px;/*for ff*/ font-size:13px;/*for ff*/
color: #080; color: #080;
height:23px; height:23px;
line-height:23px; line-height:21px;
padding:0 3px; padding:0 3px;
background: #EEE; background: #EEE;
border: 1px solid #80B0B0; border: 1px solid #80B0B0;
@ -218,6 +217,9 @@ table img {
#dialog-delete-confirm { #dialog-delete-confirm {
text-align:center; text-align:center;
} }
#confirm-con {
margin-bottom:6px;
}
/*ui-autocomplete*/ /*ui-autocomplete*/
.ui-autocomplete { .ui-autocomplete {
background:#fff; background:#fff;

View File

@ -7,13 +7,11 @@
<link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/ui-lightness/jquery-ui-1.8.16.custom.css" /> <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/ui-lightness/jquery-ui-1.8.16.custom.css" />
<link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/seahub.css" /> <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/seahub.css" />
<link rel="icon" type="image/png" href="{{ MEDIA_URL }}img/favicon.png" /> <link rel="icon" type="image/png" href="{{ MEDIA_URL }}img/favicon.png" />
{% block extra_style %}{% endblock %} {% block extra_style %}{% endblock %}
{% load avatar_tags %} {% load avatar_tags %}
</head> </head>
<body>
<body>
<div id="wrapper"> <div id="wrapper">
<div id="top-bar"> <div id="top-bar">
<div class="top-bar"> <div class="top-bar">
@ -43,6 +41,7 @@
</div> </div>
</div> </div>
</div> </div>
<div id="header"> <div id="header">
<div class="top-info ovhd"> <div class="top-info ovhd">
<a href="{{ SITE_ROOT }}" class="fleft"><img src="{{ MEDIA_URL }}img/logo.png" title="Seafile" alt="Seafile logo" /></a> <a href="{{ SITE_ROOT }}" class="fleft"><img src="{{ MEDIA_URL }}img/logo.png" title="Seafile" alt="Seafile logo" /></a>
@ -52,6 +51,7 @@
</div> </div>
{% block nav %}{% endblock %} {% block nav %}{% endblock %}
</div> </div>
<div id="main"> <div id="main">
<div id="left-panel"> <div id="left-panel">
{% block left_panel %}{% endblock %} {% block left_panel %}{% endblock %}
@ -63,11 +63,12 @@
{% block main_panel %}{% endblock %} {% block main_panel %}{% endblock %}
</div> </div>
<div id="dialog-confirm" class="hide"> <div id="dialog-confirm" class="hide">
<p class="mgb5" id="confirm-con">确定要删除?</p> <p id="confirm-con">确定要删除?</p>
<button id="yes-btn">确定</button> <button id="yes-btn">确定</button>
<button class="simplemodal-close">取消</button> <button class="simplemodal-close">取消</button>
</div> </div>
</div> </div>
<div id="footer" class="ovhd"> <div id="footer" class="ovhd">
<p class="fleft">Copyright © 2012 海文互知. 服务器版本:{{ seafile_version }}</p> <p class="fleft">Copyright © 2012 海文互知. 服务器版本:{{ seafile_version }}</p>
<p class="fright">Contact | About</p> <p class="fright">Contact | About</p>

View File

@ -3,7 +3,9 @@
{% block main_panel %} {% block main_panel %}
<div id="repo-page" class="ovhd"> <div id="repo-page" class="ovhd">
<h2>{{repo.props.name}}</h2> <h2>{{repo.props.name}}</h2>
<div class="side fright"> <div class="side fright">
<h3>基本信息</h3> <h3>基本信息</h3>
<p>{{repo.props.desc}}</p> <p>{{repo.props.desc}}</p>
@ -33,7 +35,7 @@
{% if repo_ap == 'public' %} {% if repo_ap == 'public' %}
<input type="checkbox" name="repo-access-switch" id="repo-access-switch" checked="checked" autocomplete="off" /><label for="repo-access-switch">开启</label> <input type="checkbox" name="repo-access-switch" id="repo-access-switch" checked="checked" autocomplete="off" /><label for="repo-access-switch">开启</label>
{% else %} {% else %}
<input type="checkbox" name="repo-access-switch" id="repo-access-switch" autocomplete="off" /><label for="repo-access-switch">开启</label> <input type="checkbox" name="repo-access-switch" id="repo-access-switch" data="{{ SITE_ROOT }}repo/setap/{{ repo.props.id}}/?ap=public" autocomplete="off" /><label for="repo-access-switch">开启</label>
{% endif %} {% endif %}
<br /><span class="tip">开启后,任何人都能够访问该目录</span> <br /><span class="tip">开启后,任何人都能够访问该目录</span>
{% endif %} {% endif %}
@ -41,39 +43,44 @@
{% endif %} {% endif %}
{% endif %} {% endif %}
</div> </div>
<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>该目录已加密。如需在线查看里面的内容请输入解密密码。密码只会在服务器上暂存1小时。</p>
<form action="{{ SITE_ROOT }}repo/{{ repo.id }}/" method="post"> <form action="{{ SITE_ROOT }}repo/{{ repo.id }}/" method="post">
<p><label>密码:</label><input id="id_password" type="password" name="password" maxlength="64" /></p> <label>密码:</label>
<input id="id_password" type="password" name="password" maxlength="64" /><br />
{% if error %} {% if error %}
<p>{{ error }}</p> <p class="error">{{ error }}</p>
{% endif %} {% endif %}
<p><input type="submit" value="提交"></p> <input type="submit" value="提交" />
</form> </form>
{% 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 class="path">
{% for name, link in zipped|slice:":-1" %} 当前路径:
{% for name, link in zipped %}
{% if not forloop.last %}
<a href="{{ SITE_ROOT }}repo/{{ repo.id }}/?p={{ link|urlencode }}">{{ name }}</a> / <a href="{{ SITE_ROOT }}repo/{{ repo.id }}/?p={{ link|urlencode }}">{{ name }}</a> /
{% endfor %} {% else %}
{% for name, link in zipped|slice:"-1:" %}
{{ name }} {{ name }}
{% 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 %}
<tr> <tr>
<td class="icon-container"><img src="{{ MEDIA_URL }}img/folder-icon-24.png" /></td> <td class="icon-container"><img src="{{ MEDIA_URL }}img/folder-icon-24.png" alt="目录" /></td>
<td><a href="{{ SITE_ROOT }}repo/{{ repo.id }}/?p={{ path|urlencode }}{{ dirent.obj_name|urlencode }}">{{ dirent.obj_name }}</a></td> <td><a href="{{ SITE_ROOT }}repo/{{ repo.id }}/?p={{ path|urlencode }}{{ dirent.obj_name|urlencode }}">{{ dirent.obj_name }}</a></td>
<td></td> <td></td>
<td></td> <td></td>
@ -82,7 +89,7 @@
{% for dirent in file_list %} {% for dirent in file_list %}
<tr> <tr>
<td class="icon-container"><img src="{{ MEDIA_URL }}img/{{ dirent.obj_name|file_icon_filter }}" /></td> <td class="icon-container"><img src="{{ MEDIA_URL }}img/{{ dirent.obj_name|file_icon_filter }}" alt="文件" /></td>
<td>{{ dirent.props.obj_name }}</td> <td>{{ dirent.props.obj_name }}</td>
<td>{{ dirent.file_size|filesizeformat }}</td> <td>{{ dirent.file_size|filesizeformat }}</td>
<td> <td>
@ -95,11 +102,7 @@
{% endif %} {% endif %}
{% endif %} {% endif %}
</div> </div>
<div id="public-access-start-confirm" class="hide">
<p>确定要开启吗?</p>
<button id="public-access-start-btn">确定</button>
<button id="public-access-start-cancel-btn" class="simplemodal-close">取消</button>
</div>
</div> </div>
{% endblock %} {% endblock %}
@ -111,15 +114,9 @@ if ($('#repo-access-switch').attr('checked')) {
}); });
} else { } else {
$('#repo-access-switch').click(function() { $('#repo-access-switch').click(function() {
$('#public-access-start-confirm').modal({appendTo:"#main", containerCss:{padding:18}}); $(this).attr('checked', false);
}); });
addConfirmTo($('#repo-access-switch'), '确定要开启吗?');
} }
$('#public-access-start-btn').click(function() {
location.href = "{{ SITE_ROOT }}repo/setap/{{ repo.props.id}}/?ap=public";
});
$('#public-access-start-cancel-btn').click(function() {
$('#repo-access-switch').attr('checked', false);
});
</script> </script>
{% endblock %} {% endblock %}