* Adjust css style of showsynccommit view.
This commit is contained in:
@@ -16,4 +16,12 @@
|
||||
#monacoTree .tree-item-content span {cursor: pointer;}
|
||||
.directory {background-image:url('theme/default/images/repo/dir.png');}
|
||||
.file {background-image:url('theme/default/images/repo/txt.png');}
|
||||
.mini-icon {display: inline-block; height: 16px; width: 16px; background-color: transparent; background-position: 0 0; background-repeat: no-repeat; vertical-align: text-bottom; margin-right: 5px;}
|
||||
.mini-icon {display: inline-block; height: 16px; width: 16px; background-color: transparent; background-position: 0 0; background-repeat: no-repeat; vertical-align: text-bottom; margin-right: 5px;}
|
||||
#monacoTree .tree-item-content {cursor: pointer;}
|
||||
.sync-content {margin: 10px}
|
||||
.sync-main-content {padding: 20px;background-color: #fff;border-radius: 4px;}
|
||||
.sync-line {border-top: 1px solid #e4e4e4; margin: 10px 0;}
|
||||
.sync-main-content div {width: 100%;}
|
||||
.sync-main-content h3 {font-size: 16px; font-weight: 700;}
|
||||
.sync-main-content p {color: #313c52;}
|
||||
.sync-main-content .alert > [class*="icon-"] {font-size: 42px;opacity: 0.8;}
|
||||
|
||||
@@ -21,6 +21,7 @@ function showBlameAndRelation(line)
|
||||
if(pageType == 'diff') line = diffContent.line.new[line -1];
|
||||
|
||||
var blame = blames[line];
|
||||
|
||||
if(!blame) return;
|
||||
|
||||
var p_line = parseInt(line);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
var iframeHeight = 0;
|
||||
var sidebarHeight = 0;
|
||||
var tabTemp;
|
||||
var diffAppose = $.cookie.get('renderSideBySide');;
|
||||
var diffAppose = $.cookie.get('renderSideBySide');
|
||||
|
||||
/* Close tab. */
|
||||
$('#monacoTabs').on('click', '.monaco-close', function()
|
||||
|
||||
@@ -4,9 +4,12 @@ function syncComments()
|
||||
{
|
||||
if(data == 'finish') return openUrl(browseLink);
|
||||
|
||||
$('#commits').html(parseInt($('#commits').html()) + parseInt(data));
|
||||
var count = parseInt(data);
|
||||
if(isNaN(count)) count = 0;
|
||||
$('#commits').html(parseInt($('#commits').html()) + count);
|
||||
|
||||
setTimeout(syncComments, 100);
|
||||
});
|
||||
}
|
||||
|
||||
setTimeout(syncComments, 500);
|
||||
@@ -26,11 +26,24 @@ else
|
||||
jsVar('link', $link);
|
||||
jsVar('browseLink', $browseLink);
|
||||
jsVar('syncComplete', $lang->repo->notice->syncComplete);
|
||||
|
||||
div(
|
||||
set::class('content'),
|
||||
h3($lang->repo->notice->syncing),
|
||||
p($lang->repo->notice->syncedCount, span($version, set::id('commits')))
|
||||
div
|
||||
(
|
||||
setClass('sync-main-content'),
|
||||
div
|
||||
(
|
||||
set::class('sync-content'),
|
||||
div
|
||||
(
|
||||
setClass('alert light-pale flex items-center'),
|
||||
icon(setClass('icon icon-info-sign icon-2x alert-icon'), 'check-sign'),
|
||||
div
|
||||
(
|
||||
h3($lang->repo->notice->syncing),
|
||||
div(setClass('sync-line')),
|
||||
p($lang->repo->notice->syncedCount, span($version, set::id('commits')))
|
||||
)
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
render();
|
||||
|
||||
Reference in New Issue
Block a user