mirror of
https://github.com/go-gitea/gitea
synced 2025-12-07 13:28:25 +00:00
Merge branch 'master'
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -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();
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
+457
-114
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user