diff --git a/public/css/gogs.css b/public/css/gogs.css index 3d8dc3fddb..a44d4a9380 100755 --- a/public/css/gogs.css +++ b/public/css/gogs.css @@ -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; diff --git a/public/js/app.js b/public/js/app.js index a789122b1b..69d21020e8 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -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(); } diff --git a/routers/repo/single.go b/routers/repo/single.go index db16a84b8a..4870adbd0a 100644 --- a/routers/repo/single.go +++ b/routers/repo/single.go @@ -28,3 +28,14 @@ func Single(params martini.Params, r render.Render, data base.TmplData) { r.HTML(200, "repo/single", data) } + +func Setting(r render.Render, data base.TmplData) { + if !data["IsRepositoryValid"].(bool) { + return + } + + data["Title"] = data["Title"].(string) + " - settings" + data["IsRepoToolbarSetting"] = true + + r.HTML(200, "repo/setting", data) +} diff --git a/templates/repo/nav.tmpl b/templates/repo/nav.tmpl new file mode 100644 index 0000000000..1e52488897 --- /dev/null +++ b/templates/repo/nav.tmpl @@ -0,0 +1,31 @@ +
\ No newline at end of file diff --git a/templates/repo/setting.tmpl b/templates/repo/setting.tmpl new file mode 100644 index 0000000000..262b91a187 --- /dev/null +++ b/templates/repo/setting.tmpl @@ -0,0 +1,33 @@ +{{template "base/head" .}} +{{template "base/navbar" .}} +{{template "repo/nav" .}} +{{template "repo/toolbar" .}} +Unexpected bad things will happen if you don't read this!
+This action CANNOT be undone. This will delete the repository, wiki, issues, and comments permanently.
+ + +