1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-25 14:50:29 +00:00

Change style of commit detail

This commit is contained in:
plt
2012-10-17 11:55:15 +08:00
parent 1fc32d18fd
commit e7dd1aede8
2 changed files with 17 additions and 9 deletions

View File

@@ -770,7 +770,7 @@ ul.with-bg li {
}
#upload-file {
padding-left:19px;
background-image:url('../img/upload.png');
background-image:url('../img/upload.png?v=1');
}
#add-new-dir {
padding-left:23px;
@@ -934,12 +934,20 @@ ul.with-bg li {
max-width:850px;
max-height:550px;
overflow:auto;
line-height:1.6;
}
#ls-ch h2,
#ls-ch h3 {
margin: 0 0 0.2em;
color:#333;
font-weight:bold;
}
#ls-ch .commit-time,
.commit-time {
color:#333;
font-size:13px;
font-weight:normal;
margin-top: 0em;
}
#ls-ch ul {
padding:0 0 6px 0;

View File

@@ -16,27 +16,27 @@ function get_commit_diff(url, callback) {
con += '</ul>';
};
if (data['new'].length > 0) {
con += '<h4 id="ls-ch-new">新文件</h4>';
con += '<h3 id="ls-ch-new">新文件</h3>';
show(data['new']);
}
if (data['removed'].length > 0) {
con += '<h4 id="ls-ch-rm">删除的文件</h4>';
con += '<h3 id="ls-ch-rm">删除的文件</h3>';
show(data['removed']);
}
if (data['renamed'].length > 0) {
con += '<h4 id="ls-ch-rn">重命名或移动的文件</h4>';
con += '<h3 id="ls-ch-rn">重命名或移动的文件</h3>';
show(data['renamed']);
}
if (data['modified'].length > 0) {
con += '<h4 id="ls-ch-modi">修改的文件</h4>';
con += '<h3 id="ls-ch-modi">修改的文件</h3>';
show(data['modified']);
}
if (data['newdir'].length > 0) {
con += '<h4 id="ls-ch-newdir">新目录</h4>';
con += '<h3 id="ls-ch-newdir">新目录</h3>';
show(data['newdir']);
}
if (data['deldir'].length > 0) {
con += '<h4 id="ls-ch-deldir">删除的目录</h4>';
con += '<h3 id="ls-ch-deldir">删除的目录</h3>';
show(data['deldir']);
}
if (!con) {
@@ -50,8 +50,8 @@ function get_commit_diff(url, callback) {
function list_commit_change(obj) {
var url = obj.attr('href');
get_commit_diff(url, function(content) {
var time = '<span class="commit-time">(' + obj.attr('data') + ')</span>';
var title = '<h3>修改详情' + time + '</h3>';
var time = '<p><span class="commit-time">' + obj.attr('data') + '</span></p>';
var title = '<h2>修改详情</h2>' + time;
$('#ls-ch').html(title + content).modal({
appendTo:'#main',
maxHeight: window.innerHeight - 57,