Merge branch 'master'

This commit is contained in:
Nicolas Gourdon
2019-05-08 23:57:57 +02:00
parent c097a29d69
commit 3a3ccf801b
326 changed files with 37526 additions and 827 deletions
+1 -1
View File
File diff suppressed because one or more lines are too long
+29
View File
@@ -979,6 +979,25 @@ function initRepository() {
}
}
var toggleMigrations = function(){
var authUserName = $('#auth_username').val();
var cloneAddr = $('#clone_addr').val();
if (!$('#mirror').is(":checked") && (authUserName!=undefined && authUserName.length > 0)
&& (cloneAddr!=undefined && (cloneAddr.startsWith("https://github.com") || cloneAddr.startsWith("http://github.com")))) {
$('#migrate_items').show();
} else {
$('#migrate_items').hide();
}
}
function initMigration() {
toggleMigrations();
$('#clone_addr').on('input', toggleMigrations)
$('#auth_username').on('input', toggleMigrations)
$('#mirror').on('change', toggleMigrations)
}
function initPullRequestReview() {
$('.show-outdated').on('click', function (e) {
e.preventDefault();
@@ -1430,6 +1449,15 @@ function initWebhook() {
}
});
var updateContentType = function () {
var visible = $('#http_method').val() === 'POST';
$('#content_type').parent().parent()[visible ? 'show' : 'hide']();
};
updateContentType();
$('#http_method').change(function () {
updateContentType();
});
// Test delivery
$('#test-delivery').click(function () {
var $this = $(this);
@@ -2092,6 +2120,7 @@ $(document).ready(function () {
initCommentForm();
initInstall();
initRepository();
initMigration();
initWikiForm();
initEditForm();
initEditor();
+11
View File
@@ -760,3 +760,14 @@ footer {
.oauth2-authorize-application-box {
margin-top: 3em !important;
}
/* Tab color tweaks */
.ui.tabular.menu .item {
color: rgba(0,0,0,.5);
}
.ui.tabular.menu .item:hover {
color: rgba(0,0,0,.8);
}
.ui.tabular.menu .item.active {
color: rgba(0,0,0,.9);
}
File diff suppressed because it is too large Load Diff