mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-26 07:22:34 +00:00
Change style of commit detail
This commit is contained in:
@@ -770,7 +770,7 @@ ul.with-bg li {
|
|||||||
}
|
}
|
||||||
#upload-file {
|
#upload-file {
|
||||||
padding-left:19px;
|
padding-left:19px;
|
||||||
background-image:url('../img/upload.png');
|
background-image:url('../img/upload.png?v=1');
|
||||||
}
|
}
|
||||||
#add-new-dir {
|
#add-new-dir {
|
||||||
padding-left:23px;
|
padding-left:23px;
|
||||||
@@ -934,12 +934,20 @@ ul.with-bg li {
|
|||||||
max-width:850px;
|
max-width:850px;
|
||||||
max-height:550px;
|
max-height:550px;
|
||||||
overflow:auto;
|
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,
|
#ls-ch .commit-time,
|
||||||
.commit-time {
|
.commit-time {
|
||||||
color:#333;
|
color:#333;
|
||||||
font-size:13px;
|
font-size:13px;
|
||||||
font-weight:normal;
|
font-weight:normal;
|
||||||
|
margin-top: 0em;
|
||||||
}
|
}
|
||||||
#ls-ch ul {
|
#ls-ch ul {
|
||||||
padding:0 0 6px 0;
|
padding:0 0 6px 0;
|
||||||
|
@@ -16,27 +16,27 @@ function get_commit_diff(url, callback) {
|
|||||||
con += '</ul>';
|
con += '</ul>';
|
||||||
};
|
};
|
||||||
if (data['new'].length > 0) {
|
if (data['new'].length > 0) {
|
||||||
con += '<h4 id="ls-ch-new">新文件</h4>';
|
con += '<h3 id="ls-ch-new">新文件</h3>';
|
||||||
show(data['new']);
|
show(data['new']);
|
||||||
}
|
}
|
||||||
if (data['removed'].length > 0) {
|
if (data['removed'].length > 0) {
|
||||||
con += '<h4 id="ls-ch-rm">删除的文件</h4>';
|
con += '<h3 id="ls-ch-rm">删除的文件</h3>';
|
||||||
show(data['removed']);
|
show(data['removed']);
|
||||||
}
|
}
|
||||||
if (data['renamed'].length > 0) {
|
if (data['renamed'].length > 0) {
|
||||||
con += '<h4 id="ls-ch-rn">重命名或移动的文件</h4>';
|
con += '<h3 id="ls-ch-rn">重命名或移动的文件</h3>';
|
||||||
show(data['renamed']);
|
show(data['renamed']);
|
||||||
}
|
}
|
||||||
if (data['modified'].length > 0) {
|
if (data['modified'].length > 0) {
|
||||||
con += '<h4 id="ls-ch-modi">修改的文件</h4>';
|
con += '<h3 id="ls-ch-modi">修改的文件</h3>';
|
||||||
show(data['modified']);
|
show(data['modified']);
|
||||||
}
|
}
|
||||||
if (data['newdir'].length > 0) {
|
if (data['newdir'].length > 0) {
|
||||||
con += '<h4 id="ls-ch-newdir">新目录</h4>';
|
con += '<h3 id="ls-ch-newdir">新目录</h3>';
|
||||||
show(data['newdir']);
|
show(data['newdir']);
|
||||||
}
|
}
|
||||||
if (data['deldir'].length > 0) {
|
if (data['deldir'].length > 0) {
|
||||||
con += '<h4 id="ls-ch-deldir">删除的目录</h4>';
|
con += '<h3 id="ls-ch-deldir">删除的目录</h3>';
|
||||||
show(data['deldir']);
|
show(data['deldir']);
|
||||||
}
|
}
|
||||||
if (!con) {
|
if (!con) {
|
||||||
@@ -50,8 +50,8 @@ function get_commit_diff(url, callback) {
|
|||||||
function list_commit_change(obj) {
|
function list_commit_change(obj) {
|
||||||
var url = obj.attr('href');
|
var url = obj.attr('href');
|
||||||
get_commit_diff(url, function(content) {
|
get_commit_diff(url, function(content) {
|
||||||
var time = '<span class="commit-time">(' + obj.attr('data') + ')</span>';
|
var time = '<p><span class="commit-time">' + obj.attr('data') + '</span></p>';
|
||||||
var title = '<h3>修改详情' + time + '</h3>';
|
var title = '<h2>修改详情</h2>' + time;
|
||||||
$('#ls-ch').html(title + content).modal({
|
$('#ls-ch').html(title + content).modal({
|
||||||
appendTo:'#main',
|
appendTo:'#main',
|
||||||
maxHeight: window.innerHeight - 57,
|
maxHeight: window.innerHeight - 57,
|
||||||
|
Reference in New Issue
Block a user