mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-11 15:04:02 +09:00
#2114 External URL for wiki
This commit is contained in:
1 parent
b21160a13a
commit
40f3142264
11 files changed
+33
-6
No files matched your search
@@ -5,7 +5,7 @@ Gogs - Go Git Service [
|
||||
|
||||
##### Current version: 0.7.41 Beta
|
||||
##### Current version: 0.7.42 Beta
|
||||
|
||||
| Web | UI | Preview |
|
||||
|:-------------:|:-------:|:-------:|
|
||||
|
||||
@@ -569,6 +569,9 @@ settings.update_settings = Update Settings
|
||||
settings.change_reponame_prompt = This change will affect how links relate to the repository.
|
||||
settings.advanced_settings = Advanced Settings
|
||||
settings.wiki_desc = Enable wiki to allow people write documents
|
||||
settings.use_external_wiki = Use external wiki
|
||||
settings.external_wiki_url = External Wiki URL
|
||||
settings.external_wiki_url_desc = Visitors will be redirected to URL when they click on the tab.
|
||||
settings.issues_desc = Enable builtin lightweight issue tracker
|
||||
settings.use_external_issue_tracker = Use external issue tracker
|
||||
settings.tracker_url_format = External Issue Tracker URL Format
|
||||
|
||||
@@ -18,7 +18,7 @@ import (
|
||||
"github.com/gogits/gogs/modules/setting"
|
||||
)
|
||||
|
||||
const APP_VER = "0.7.41.1210 Beta"
|
||||
const APP_VER = "0.7.42.1211 Beta"
|
||||
|
||||
func init() {
|
||||
runtime.GOMAXPROCS(runtime.NumCPU())
|
||||
|
||||
@@ -164,6 +164,8 @@ type Repository struct {
|
||||
|
||||
// Advanced settings
|
||||
EnableWiki bool `xorm:"NOT NULL DEFAULT true"`
|
||||
EnableExternalWiki bool
|
||||
ExternalWikiURL string
|
||||
EnableIssues bool `xorm:"NOT NULL DEFAULT true"`
|
||||
EnableExternalTracker bool
|
||||
ExternalTrackerFormat string
|
||||
|
||||
@@ -91,6 +91,8 @@ type RepoSettingForm struct {
|
||||
|
||||
// Advanced settings
|
||||
EnableWiki bool
|
||||
EnableExternalWiki bool
|
||||
ExternalWikiURL string
|
||||
EnableIssues bool
|
||||
EnableExternalTracker bool
|
||||
TrackerURLFormat string
|
||||
|
||||
@@ -4364,7 +4364,7 @@ func confLocaleLocale_deDeIni() (*asset, error) {
|
||||
return a, nil
|
||||
}
|
||||
|
||||
var _confLocaleLocale_enUsIni = []byte("\x1f\x8b\x08\x00\x00\x09\x6e\x88\x00\xff\xbc\x7d\xeb\x92\xdc\x46\xae\xe6\x7f\x3e\x05\xad\x09\x85\xac\x88\x56\x39\x3c\x3e\x7b\x09\x87\x65\xaf\x2e\xd6\xe5\x1c\xb5\xba\x8f\xba\x3d\xb3\xb3\x0e\x45\x99\x5d\x64\x57\xf3\xa8\x8a\xac\x21\x59\x6a\xf5\x4c\xcc\x1b\xec\x03\xec\xf3\xed\x93\x2c\xf0\x01\xc8\x44\x92\xac\x6e\xc9\x67\x62\xf5\x43\xcd\xca\x44\xde\x91\x48\x00\x09\x20\x8b\xdd\x6e\x59\x56\xfd\x2a\x7f\x9c\x3f\xc9\x77\x45\xdd\x6c\xaa\xbe\xcf\xfb\x6a\x73\xf9\xe8\xaa\xed\x87\xaa\xcc\x5f\xd6\x03\xfd\xee\x3e\xd6\xab\x2a\xcb\xae\xda\x6d\x45\xa0\xaf\xe8\x4f\x56\x16\xfd\xd5\x45\x5b\x74\x25\x25\x3c\xb7\xef\xac\xfa\xb4\xdb\xb4\x1d\x03\xfd\x2c\x5f\xd9\x55\xb5\xd9\x71\x19\xfa\x93\xf5\xf5\xba\x59\xd6\x0d\xfd\x3c\xa3\xaf\xfc\x75\x23\x29\xed\x7e\xb0\xa4\x93\xfd\x20\x69\xfb\x9d\x25\xfd\xb2\xcb\xba\x6a\x5d\x53\x6f\x3a\x4a\x7a\xa7\x9f\xd9\x75\x75\xd1\xd7\x03\xb7\xf4\x67\xf9\xca\x3e\x56\x5d\x5f\xb7\x5c\xfb\x9f\xe4\x2b\xdb\x15\x6b\x06\x38\xa5\x3f\xd9\x50\x6d\x77\x9b\x02\x05\xce\xf5\x33\xdb\x14\xcd\x7a\x2f\x30\x6f\xf4\x33\x5b\x75\x15\x65\x2d\x9b\xea\x9a\x52\x9f\xe1\xc7\x62\xb1\xc8\xf6\x34\x09\xcb\x5d\xd7\x5e\xd6\x9b\x6a\x59\x34\xe5\x72\x2b\xc3\xfc\x85\xd2\x73\x4d\xcf\x29\x3d\xe7\x74\x0c\xa1\x2a\x69\xa8\xcb\xa2\xd7\x71\xd0\x5c\xd2\xc8\x8b\x3e\x43\x55\x4d\xb1\xb5\xd2\xfc\x99\x55\xdb\xa2\xde\xf0\xac\xf1\x5f\xea\x77\xdf\x5f\xb7\x98\xda\x53\xfd\xa4\x39\x58\x0e\x37\xbb\x0a\x53\xf0\xe8\x9c\xbe\xb2\x55\xb1\x1b\x56\x57\x05\x77\x53\xbe\x32\x02\xda\xb5\x34\x17\x6d\x77\x03\x38\xfb\x91\xb5\xdd\xba\x68\xea\xbf\x15\x83\xcc\xcf\x89\xfb\x99\x6d\xeb\xae\x6b\x79\x6a\x8f\xf1\x91\xd1\xc8\x97\x5c\x0f\xa5\xbc\xa5\x49\x70\xb5\x70\xce\xb6\x5e\x77\x32\x8b\x9c\x79\x8c\x5f\x5c\x8b\xe4\x69\x4d\x92\x15\x6a\xbb\x6c\xbb\x0f\x9a\xfa\x82\x3f\x47\x55\x52\xe7\x34\x37\xed\x57\xd1\xd0\x7a\x68\xee\x31\x7e\x24\x00\x7d\x56\x94\x5b\x9a\xe1\x5d\xd1\x54\x3c\x75\x4f\xf8\x17\xcd\x17\xfd\xca\x8a\xd5\xaa\xdd\x37\xc3\xb2\xaf\x86\xa1\x6e\xd6\xbc\x06\x4f\x24\x29\x3f\xd3\xa4\xcc\xe5\x85\xb4\x9b\x76\x1f\x56\x99\xd2\xff\x42\x3f\xf3\x53\xf9\x29\x79\xae\x10\x32\x43\x49\x1e\x49\xbf\xbc\xac\xaa\x52\xc6\xd2\xe7\x2f\xe8\x3b\xdb\xed\x37\x1b\x9a\xcd\xbf\xee\xab\x7e\xe0\x42\xa7\xf4\x9b\xc6\x2f\xbf\xb3\xba\xef\xe9\x83\x92\x5f\xe3\x23\xa3\x25\x6d\x56\x18\xcc\x33\x7c\x64\xd9\xaf\x7d\x55\x74\xab\xab\xf7\x99\xfc\x45\x5f\xf9\x83\x51\xf2\xd0\x62\x33\x7e\x29\x6e\x49\x0b\xd6\x40\xb6\x6a\x4b\xfe\xf1\x8c\xfe\x50\xd5\x75\xd3\x0f\xc5\x66\xf3\x3e\xd3\x0f\x06\x93\x2f\x59\x80\xa1\x1e\x30\x0b\x9a\x98\x9f\x0d\xd5\xae\xe7\x15\xcc\x5f\xd4\x5d\x3f\x3c\x1a\x6a\xc2\xe1\x77\xfb\x26\x2b\xdb\xd5\x07\xda\x1d\xbc\xd3\xd1\xf2\xeb\xcb\x9c\x26\xeb\x01\xed\x8f\x6e\xdf\x34\x34\x3d\xf9\xcb\x96\xa6\x8c\x9a\xa9\xa9\xfd\xe7\x80\x3e\xca\x77\x9b\xaa\xe8\x09\xa4\x2a\xca\xfc\x87\x22\x1f\x8a\x6e\x5d\x0d\x8f\xef\x2d\x2f\x68\x57\x7e\xb8\x97\x5f\x75\xd5\xe5\xe3\x7b\xf7\xfb\x7b\x3f\xbe\xdc\x53\xb1\x4d\xdd\x54\xfd\x0f\xdf\x14\x3f\xe6\xab\x82\x72\x68\x1a\x6f\xf2\x8b\xea\x92\x37\x21\xb5\x95\x13\xf6\x37\x6b\xde\x80\x37\xc3\x15\x37\x48\x98\x40\x1f\x7d\xce\x14\xe0\xab\x8c\x17\x80\x28\xc4\xb2\xbc\x30\x6a\x87\x0e\x21\xb9\xa3\x05\x38\xbe\x39\xfb\xf7\x37\x47\xf9\x29\x91\xbc\x75\x57\xe1\x9b\xfe\xa3\x12\xdf\xe5\x34\xda\xf3\xfa\xf9\xd3\x45\x46\x65\x6d\x42\x9e\x17\x43\x71\xc1\x7d\x0f\xab\xcf\x99\xb2\x39\x43\x1e\xb6\x28\x13\x51\x10\xcc\x7e\x48\x96\x65\x6e\x83\x53\x1d\x4a\x15\x42\x1d\x6f\x99\x34\x50\x7a\x98\xd9\x53\x99\x33\xaa\x2a\x7f\xfd\xf6\xed\xc9\xf3\xa7\x79\xd5\xac\x69\x66\xf2\xeb\x7a\xb8\xca\xf7\xc3\xe5\x7f\x5f\xae\xab\xa6\xea\x8a\xcd\x72\x55\xf3\xa4\x74\x84\xb0\x39\xcd\x92\x0c\x71\x91\xf5\xfd\x86\x28\x17\xb0\xe0\xec\xec\x4d\x7e\xcc\x98\xb0\x2b\x86\x2b\x74\x64\xb8\xca\xfa\xbf\x6e\x78\xa2\x42\x83\xe7\x57\x55\x8e\xcd\x00\xa0\xf6\x72\x3c\x2f\x79\xa9\x7d\x5d\x64\x55\xd7\x2d\x89\xb0\x0e\x37\x3c\xcd\x5a\xe7\x21\x68\xa9\x8e\xb0\xbd\x69\x07\x5a\xc6\x1c\xe5\xa4\x8a\xba\xf9\x58\x6c\xea\x92\x26\x3b\x4e\x48\x5a\x16\x89\x65\x4b\xeb\xc6\xa5\x09\x33\xdb\x6b\x0c\xb5\x58\xd1\xb9\xd0\xe7\xf7\x16\xf7\x40\x88\xef\x3d\xba\xb7\xc8\x9a\x76\x29\x54\x82\x49\x76\x59\xf7\xc5\x05\x91\x6f\x39\x4e\x3a\xa3\x86\x7f\x61\xfc\x91\xae\x28\x44\x9e\x40\xf0\xdc\xf2\x11\x85\x93\x81\x91\xab\x20\x3a\x0e\x62\xa3\x64\xc6\x8f\xdd\x68\x52\x58\x5f\x21\x4b\x21\x61\x32\xe6\xcc\x16\xcc\xb0\xeb\xc9\x6e\xb7\xa9\x57\xd2\xf4\x4b\xc9\x8b\x88\xc6\x07\xb6\x4e\x8a\x87\x03\xa2\x58\x9e\x43\x17\xea\x35\x93\xad\x3c\xa1\xff\x28\x7f\x55\xd1\xce\xb9\xda\xaf\xe5\xd0\xda\xb4\xfb\xf2\x2b\x10\x14\x5b\xb9\x48\x4f\xf2\x77\x2d\x75\x18\xd8\x11\x00\x62\x13\x4f\x88\x30\x30\x8f\xd0\x55\xdb\x76\xe0\x89\xd3\x62\x35\x2d\xcf\x75\x4d\x99\x34\xd2\xbe\xf8\x48\x64\x71\x68\x65\x4b\x96\xb4\xe5\x56\x5c\x31\x51\xb0\x3d\x1d\xf4\xb2\x2d\x88\x8e\xc8\xd6\xb0\xb4\x14\x07\x01\xb5\xdd\xd3\x6e\xba\xa2\xca\x78\xe2\x99\x51\xa1\x2a\xe7\xfa\x89\x21\x51\x3d\xd8\xe5\xb4\x73\x5b\x3a\x54\x79\xa1\x9f\xe3\x43\x7f\xfb\xfa\xa9\x57\xc5\xe5\x25\xf5\xaa\xa7\x5d\xf1\x2a\x5f\x6d\x5a\xda\x52\xbf\xbc\x7b\xd3\xf3\x86\xb9\x5a\xee\xda\x0e\x0c\x0a\x65\x9d\xd2\x67\x48\x73\x13\xcd\x10\xcd\x7e\x7b\x41\xbf\xae\xaf\x6a\x22\xd4\x98\x7Line truncated
|
||||
var _confLocaleLocale_enUsIni = []byte("\x1f\x8b\x08\x00\x00\x09\x6e\x88\x00\xff\xbc\x7d\xeb\x72\xdc\x46\xb2\xe6\x7f\x3c\x05\xac\x09\x85\xa4\x08\xaa\x15\x1e\x9f\xbd\x84\xc3\xb2\x97\x22\xad\xcb\x39\xa2\xc8\x23\xd2\xf6\xce\x3a\x14\x30\xba\x81\xee\xc6\xa8\x1b\xe8\x01\xd0\xa4\xe8\x89\x79\x83\x7d\x80\x7d\xbe\x7d\x92\xcd\xfc\x32\xb3\x2e\x00\x9a\x94\x3c\x13\xab\x1f\x22\xba\x2a\xeb\x9e\x95\x95\x99\x95\x99\x95\xef\x76\x59\x51\x76\x8b\xf4\x79\x7a\x9c\xee\xf2\xaa\xde\x94\x5d\x97\x76\xe5\x66\xf9\x74\xdd\x74\x7d\x59\xa4\xaf\xaa\x9e\x7e\xb7\xd7\xd5\xa2\x4c\x92\x75\xb3\x2d\x09\xf4\x35\xfd\x49\x8a\xbc\x5b\xcf\x9b\xbc\x2d\x28\xe1\xd4\xbe\x93\xf2\xd3\x6e\xd3\xb4\x0c\xf4\xa3\x7c\x25\xeb\x72\xb3\xe3\x32\xf4\x27\xe9\xaa\x55\x9d\x55\x35\xfd\xbc\xa4\xaf\xf4\x4d\x2d\x29\xcd\xbe\xb7\xa4\xf3\x7d\x2f\x69\xfb\x9d\x25\xfd\xb4\x4b\xda\x72\x55\x51\x6f\x5a\x4a\x7a\xaf\x9f\xc9\x4d\x39\xef\xaa\x9e\x5b\xfa\x45\xbe\x92\xeb\xb2\xed\xaa\x86\x6b\xff\x59\xbe\x92\x5d\xbe\x62\x80\x0b\xfa\x93\xf4\xe5\x76\xb7\xc9\x51\xe0\x4a\x3f\x93\x4d\x5e\xaf\xf6\x02\xf3\x56\x3f\x93\x45\x5b\x52\x56\x56\x97\x37\x94\x7a\x82\x1f\xb3\xd9\x2c\xd9\xd3\x24\x64\xbb\xb6\x59\x56\x9b\x32\xcb\xeb\x22\xdb\xca\x30\x7f\xa2\xf4\x54\xd3\x53\x4a\x4f\x39\x1d\x43\x28\x0b\x1a\x6a\x96\x77\x3a\x0e\x9a\x4b\x1a\x79\xde\x25\xa8\xaa\xce\xb7\x56\x9a\x3f\x93\x72\x9b\x57\x1b\x9e\x35\xfe\x4b\xfd\xee\xba\x9b\x06\x53\x7b\xa1\x9f\x34\x07\x59\x7f\xbb\x2b\x31\x05\x4f\xaf\xe8\x2b\x59\xe4\xbb\x7e\xb1\xce\xb9\x9b\xf2\x95\x10\xd0\xae\xa1\xb9\x68\xda\x5b\xc0\xd9\x8f\xa4\x69\x57\x79\x5d\xfd\x9e\xf7\x32\x3f\xe7\xc1\xcf\x64\x5b\xb5\x6d\xc3\x53\x7b\x86\x8f\x84\x46\x9e\x71\x3d\x94\xf2\x8e\x26\x21\xa8\x85\x73\xb6\xd5\xaa\x95\x59\xe4\xcc\x33\xfc\xe2\x5a\x24\x4f\x6b\x92\x2c\x57\xdb\xb2\x69\x3f\x6a\xea\x4b\xfe\x1c\x54\x49\x9d\xd3\xdc\xb8\x5f\x79\x4d\xeb\xa1\xb9\x67\xf8\x11\x01\x74\x49\x5e\x6c\x69\x86\x77\x79\x5d\xf2\xd4\x1d\xf3\x2f\x9a\x2f\xfa\x95\xe4\x8b\x45\xb3\xaf\xfb\xac\x2b\xfb\xbe\xaa\x57\xbc\x06\xc7\x92\x94\x5e\x6a\x52\x12\xe4\xb9\xb4\xdb\x66\xef\x56\x99\xd2\xff\x42\x3f\xd3\x0b\xf9\x29\x79\x41\x21\x64\xba\x92\x3c\x92\x2e\x5b\x96\x65\x21\x63\xe9\xd2\x97\xf4\x9d\xec\xf6\x9b\x0d\xcd\xe6\xdf\xf6\x65\xd7\x73\xa1\x0b\xfa\x4d\xe3\x97\xdf\x49\xd5\x75\xf4\x41\xc9\x6f\xf0\x91\xd0\x92\xd6\x0b\x0c\xe6\x04\x1f\x49\xf2\x6b\x57\xe6\xed\x62\xfd\x21\x91\xbf\xe8\x2b\x7f\x30\x4a\x1e\x5a\x6c\xc6\x2f\xc5\x2d\x69\xc1\x1a\x48\x16\x4d\xc1\x3f\x4e\xe8\x0f\x55\x5d\xd5\x5d\x9f\x6f\x36\x1f\x12\xfd\x60\x30\xf9\x92\x05\xe8\xab\x1e\xb3\xa0\x89\xe9\x65\x5f\xee\x3a\x5e\xc1\xf4\x65\xd5\x76\xfd\xd3\xbe\x22\x1c\x7e\xbf\xaf\x93\xa2\x59\x7c\xa4\xdd\xc1\x3b\x1d\x2d\xbf\x59\xa6\x34\x59\x8f\x68\x7f\xb4\xfb\xba\xa6\xe9\x49\x5f\x35\x34\x65\xd4\x4c\x45\xed\x9f\x02\xfa\x28\xdd\x6d\xca\xbc\x23\x90\x32\x2f\xd2\xef\xf2\xb4\xcf\xdb\x55\xd9\x3f\x7f\x90\xcd\x69\x57\x7e\x7c\x90\xae\xdb\x72\xf9\xfc\xc1\xc3\xee\xc1\xf7\xaf\xf6\x54\x6c\x53\xd5\x65\xf7\xdd\xb3\xfc\xfb\x74\x91\x53\x0e\x4d\xe3\x6d\x3a\x2f\x97\xbc\x09\xa9\xad\x94\xb0\xbf\x5e\xf1\x06\xbc\xed\xd7\xdc\x20\x61\x02\x7d\x74\x29\x53\x80\xaf\x12\x5e\x00\xa2\x10\x59\x31\x37\x6a\x87\x0e\x21\xb9\xa5\x05\x38\xbb\xbd\xfc\xcf\xb7\x47\xe9\x05\x91\xbc\x55\x5b\xe2\x9b\xfe\xa3\x12\xdf\xa4\x34\xda\xab\xea\xf4\xc5\x2c\xa1\xb2\x36\x21\xa7\x79\x9f\xcf\xb9\xef\x6e\xf5\x39\x53\x36\xa7\xcb\xc3\x16\x65\x22\x0a\x82\xd9\xf5\xd1\xb2\x4c\x6d\x70\xaa\x43\xa9\x82\xab\xe3\x1d\x93\x06\x4a\x77\x33\x7b\x21\x73\x46\x55\xa5\x6f\xde\xbd\x3b\x3f\x7d\x91\x96\xf5\x8a\x66\x26\xbd\xa9\xfa\x75\xba\xef\x97\xff\x3d\x5b\x95\x75\xd9\xe6\x9b\x6c\x51\xf1\xa4\xb4\x84\xb0\x29\xcd\x92\x0c\x71\x96\x74\xdd\x86\x28\x17\xb0\xe0\xf2\xf2\x6d\x7a\xc6\x98\xb0\xcb\xfb\x35\x3a\xd2\xaf\x93\xee\x6f\x1b\x9e\x28\xd7\xe0\xd5\xba\x4c\xb1\x19\x00\xd4\x2c\x87\xf3\x92\x16\xda\xd7\x59\x52\xb6\x6d\x46\x84\xb5\xbf\xe5\x69\xd6\x3a\x0f\x41\x4b\x75\x84\xed\x75\xd3\xd3\x32\xa6\x28\x27\x55\x54\xf5\x75\xbe\xa9\x0a\x9a\x6c\x3f\x21\x71\x59\x24\x16\x0d\xad\x1b\x97\x26\xcc\x6c\x6e\x30\xd4\x7c\x41\xe7\x42\x97\x3e\x98\x3d\x00\x21\x7e\xf0\xf4\xc1\x2c\xa9\x9b\x4c\xa8\x04\x93\xec\xa2\xea\xf2\x39\x91\x6f\x39\x4e\x5a\xa3\x86\x7f\x61\xfc\x91\xae\x28\x44\x1a\x41\xf0\xdc\xf2\x11\x85\x93\x81\x91\x2b\x27\x3a\x0e\x62\xa3\x64\x26\x1c\xbb\xd1\x24\xb7\xbe\x42\x96\x5c\xc2\x68\xcc\x89\x2d\x98\x61\xd7\xf1\x6e\xb7\xa9\x16\xd2\xf4\x2b\xc9\xf3\x88\xc6\x07\xb6\x4e\x4a\x08\x07\x44\xb1\xbc\x00\x5d\xa8\xd7\x4c\xb6\xd2\x88\xfe\xa3\xfc\xba\xa4\x9d\xb3\xde\xaf\xe4\xd0\xda\x34\xfb\xe2\x2b\x10\x14\x5b\x39\x4f\x4f\xd2\xf7\x0d\x75\x18\xd8\xe1\x00\x7c\x13\xc7\x44\x18\x98\x47\x68\xcb\x6d\xd3\xf3\xc4\x69\xb1\x8a\x96\xe7\xa6\xa2\x4c\x1a\x69\x97\x5f\x13\x59\xec\x1b\xd9\x92\x05\x6d\xb9\x05\x57\x4c\x14\x6c\x4f\x07\xbd\x6c\x0b\xa2\x23\xb2\x35\x2c\x2d\xc6\x41\x40\x6d\xf7\xb4\x9b\xd6\x54\x19\x4f\x3c\x33\x2a\x54\xe5\x54\x3f\x31\x24\xaa\x07\xbb\x9c\x76\x6e\x43\x87\x2a\x2f\xf4\x29\x3e\xf4\x77\x58\x3f\xf5\x2a\x5f\x2e\xa9\x57\x1d\xed\x8a\xd7\xe9\x62\xd3\xd0\x96\xfa\xe9\xfd\xdb\x8e\x37\xcc\x3a\xdb\x35\x2d\x18\x14\xca\xba\xa0\x4f\x97\x16\x4c\x34\x43\xd4\xfb\xed\x9c\x7e\xdd\xac\x2b\x22\xd4\x98\x76\x2e\xc1\xcc\x13\xa5\x52\x13\xfb\x8Line truncated
|
||||
|
||||
func confLocaleLocale_enUsIniBytes() ([]byte, error) {
|
||||
return bindataRead(
|
||||
@@ -4379,7 +4379,7 @@ func confLocaleLocale_enUsIni() (*asset, error) {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
info := bindataFileInfo{name: "conf/locale/locale_en-US.ini", size: 48011, mode: os.FileMode(420), modTime: time.Unix(1449791468, 0)}
|
||||
info := bindataFileInfo{name: "conf/locale/locale_en-US.ini", size: 48201, mode: os.FileMode(420), modTime: time.Unix(1449827459, 0)}
|
||||
a := &asset{bytes: bytes, info: info}
|
||||
return a, nil
|
||||
}
|
||||
|
||||
@@ -496,6 +496,7 @@ func updateServerInfo(gitBinPath, dir string) []byte {
|
||||
return gitCommand(gitBinPath, dir, args...)
|
||||
}
|
||||
|
||||
// FIXME: use process module
|
||||
func gitCommand(gitBinPath, dir string, args ...string) []byte {
|
||||
command := exec.Command(gitBinPath, args...)
|
||||
command.Dir = dir
|
||||
|
||||
@@ -125,6 +125,8 @@ func SettingsPost(ctx *middleware.Context, form auth.RepoSettingForm) {
|
||||
|
||||
case "advanced":
|
||||
repo.EnableWiki = form.EnableWiki
|
||||
repo.EnableExternalWiki = form.EnableExternalWiki
|
||||
repo.ExternalWikiURL = form.ExternalWikiURL
|
||||
repo.EnableIssues = form.EnableIssues
|
||||
repo.EnableExternalTracker = form.EnableExternalTracker
|
||||
repo.ExternalTrackerFormat = form.TrackerURLFormat
|
||||
|
||||
@@ -27,6 +27,12 @@ const (
|
||||
func MustEnableWiki(ctx *middleware.Context) {
|
||||
if !ctx.Repo.Repository.EnableWiki {
|
||||
ctx.Handle(404, "MustEnableWiki", nil)
|
||||
return
|
||||
}
|
||||
|
||||
if ctx.Repo.Repository.EnableExternalWiki {
|
||||
ctx.Redirect(ctx.Repo.Repository.ExternalWikiURL)
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
0.7.41.1210 Beta
|
||||
0.7.42.1211 Beta
|
||||
@@ -84,6 +84,17 @@
|
||||
<label>{{.i18n.Tr "repo.settings.wiki_desc"}}</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="inline field">
|
||||
<div class="ui checkbox">
|
||||
<input name="enable_external_wiki" type="checkbox" {{if .Repository.EnableExternalWiki}}checked{{end}}>
|
||||
<label>{{.i18n.Tr "repo.settings.use_external_wiki"}}</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="field">
|
||||
<label for="external_wiki_url">{{.i18n.Tr "repo.settings.external_wiki_url"}}</label>
|
||||
<input id="external_wiki_url" name="external_wiki_url" type="url" value="{{.Repository.ExternalWikiURL}}">
|
||||
<p class="help">{{.i18n.Tr "repo.settings.external_wiki_url_desc"}}</p>
|
||||
</div>
|
||||
|
||||
<div class="ui divider"></div>
|
||||
|
||||
@@ -102,7 +113,7 @@
|
||||
</div>
|
||||
<div class="field">
|
||||
<label for="tracker_url_format">{{.i18n.Tr "repo.settings.tracker_url_format"}}</label>
|
||||
<input id="tracker_url_format" name="tracker_url_format" value="{{.Repository.ExternalTrackerFormat}}" placeholder="e.g. https://github.com/{user}/{repo}/issues/{index}">
|
||||
<input id="tracker_url_format" name="tracker_url_format" type="url" value="{{.Repository.ExternalTrackerFormat}}" placeholder="e.g. https://github.com/{user}/{repo}/issues/{index}">
|
||||
<p class="help">{{.i18n.Tr "repo.settings.tracker_url_format_desc" | Str2html}}</p>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in new issue
Block a user