single repository setting page ui

This commit is contained in:
FuXiaoHei 2014-03-13 14:08:49 +08:00
parent 3005a0f13e
commit a8d8e72562
10 changed files with 86 additions and 44 deletions

View file

@ -269,7 +269,7 @@ body {
/* gogits user setting */
#gogs-user-setting-nav > h4, #gogs-user-setting-container > h4, #gogs-ssh-keys > h4, #gogs-user-delete > h4 {
#gogs-user-setting-nav > h4, #gogs-user-setting-container > h4, #gogs-ssh-keys > h4, #gogs-user-delete > h4 ,#gogs-repo-setting-container .tab-pane > h4{
padding-bottom: 18px;
margin-bottom: 18px;
border-bottom: 1px solid #CCC;

View file

@ -41,9 +41,8 @@ var Gogits = {
});
};
Gogits.initTabs = function () {
var $tabs = $('[data-toggle=tab]');
$tabs.tab("show");
$tabs.find("li:eq(" + index + ") a").tab("show");
var $tabs = $('[data-init=tabs]');
$tabs.find("li:eq(0) a").tab("show");
}
})(jQuery);
@ -69,6 +68,7 @@ var Gogits = {
function initCore() {
Gogits.initTooltips();
Gogits.initTabs();
Gogits.initModals();
}