#1080: Remove footer ads/branding from default template

This commit is contained in:
Unknwon committed 2015-03-23 10:19:19 -04:00
1 parent ade343f6dc
commit 2bb982dada
10 files changed
+23 -8

No files matched your search

+3
View File
@@ -288,3 +288,6 @@ ARGS =
[i18n] [i18n]
LANGS = en-US,zh-CN,zh-HK,de-DE,fr-FR,nl-NL,lv-LV,ru-RU,ja-JP,es-ES,pt-BR,pl-PL LANGS = en-US,zh-CN,zh-HK,de-DE,fr-FR,nl-NL,lv-LV,ru-RU,ja-JP,es-ES,pt-BR,pl-PL
NAMES = English,简体中文,繁體中文,Deutsch,Français,Nederlands,Latviešu,Русский,日本语,Español,Português,Polski NAMES = English,简体中文,繁體中文,Deutsch,Français,Nederlands,Latviešu,Русский,日本语,Español,Português,Polski
[other]
SHOW_FOOTER_BRANDING = false
+1 -1
View File
@@ -17,7 +17,7 @@ import (
"github.com/gogits/gogs/modules/setting" "github.com/gogits/gogs/modules/setting"
) )
const APP_VER = "0.6.0.0320 Beta" const APP_VER = "0.6.0.0323 Beta"
func init() { func init() {
runtime.GOMAXPROCS(runtime.NumCPU()) runtime.GOMAXPROCS(runtime.NumCPU())
+4 -4
View File
@@ -50,10 +50,10 @@ type Version struct {
// If you want to "retire" a migration, remove it from the top of the list and // If you want to "retire" a migration, remove it from the top of the list and
// update _MIN_VER_DB accordingly // update _MIN_VER_DB accordingly
var migrations = []Migration{ var migrations = []Migration{
NewMigration("generate collaboration from access", accessToCollaboration), // V0 -> V1 NewMigration("generate collaboration from access", accessToCollaboration), // V0 -> V1:v0.5.13
NewMigration("make authorize 4 if team is owners", ownerTeamUpdate), // V1 -> V2 NewMigration("make authorize 4 if team is owners", ownerTeamUpdate), // V1 -> V2:v0.5.13
NewMigration("refactor access table to use id's", accessRefactor), // V2 -> V3 NewMigration("refactor access table to use id's", accessRefactor), // V2 -> V3:v0.5.13
NewMigration("generate team-repo from team", teamToTeamRepo), // V3 -> V4 NewMigration("generate team-repo from team", teamToTeamRepo), // V3 -> V4:v0.5.13
} }
// Migrate database to current version // Migrate database to current version
+2 -2
View File
@@ -61,7 +61,7 @@ func (fi bindata_file_info) Sys() interface{} {
return nil return nil
} }
var _conf_app_ini = []byte("\x1f\x8b\x08\x00\x00\x09\x6e\x88\x00\xff\xb4\x59\x4f\x73\xe3\x46\x76\xbf\xe3\x53\xf4\xd0\x71\x3c\x93\xe2\x3f\x49\x9e\x19\x59\xb6\x12\x53\x24\x28\x61\x45\x91\x34\x00\x69\x3c\x9e\x52\x61\x20\xa0\x49\xc2\x02\xd1\x18\x34\x20\x89\x5b\x39\xc4\x95\x43\xee\xc9\x56\x72\xc9\x21\x39\xa4\x52\x95\x64\x93\xca\x6d\x77\xab\x72\x72\xe5\x6e\x7f\x07\x97\x77\xf3\x2d\xf2\x7b\xdd\x00\x09\x6a\xb4\xb3\x5e\x27\x5b\x33\x25\x02\xfd\xe7\xf5\xfb\xff\x7e\xaf\xf1\x1e\x1b\x9b\x17\xa6\xcd\xd4\x9f\xb3\xc9\xc0\x1a\xbe\x64\xee\x89\xe5\xb0\xa1\x35\x32\x8d\xf7\xd8\x74\x64\xf6\x1c\x93\x9d\xf5\x4e\x4d\xd6\x3f\xe9\x8d\x8f\x4d\x87\x4d\xc6\xac\x3f\xb1\x6d\xd3\x99\x4e\xc6\x03\x6b\x7c\xcc\xfa\xe7\x8e\x3b\x39\xc3\xe0\x78\x68\x1d\xeb\x9d\xc6\xc7\xac\x97\xa6\x2c\xf1\x97\x9c\xe5\x0b\x3f\x67\x72\x21\x6e\x25\x13\x09\xe3\x37\x3c\x5b\xb1\xd4\x9f\x63\x22\xca\x63\x6e\xf4\xa6\x53\x6f\xdc\x3b\x33\xd9\x21\x3b\x16\x73\x79\x80\xbf\xec\x38\xca\x99\xc3\xb3\x9b\x28\xe0\xa0\xd4\x5f\xf8\x09\x96\x63\x2c\x9a\xb1\x95\x28\x58\x56\x24\x2c\x16\x81\x1f\xc7\x2b\xc3\x3e\x1f\x7b\xe7\x0e\xb8\x3f\x64\xf3\x28\xc7\x6a\x33\xca\x17\x3c\x63\x8d\x90\xdf\x34\x9a\xac\x91\x66\x22\x6c\x30\x81\x81\x9c\xcb\x1c\x23\x21\x9f\xf9\x45\x0c\x5a\x52\xaf\x51\x14\x20\x3a\x31\x80\x77\xc3\x78\x95\xf1\x54\xc8\x28\x17\xd9\xea\xd2\xb0\x27\x13\x97\x1d\x1a\x4e\xdf\xb6\xa6\xae\xe7\xbe\x9c\xd2\xb2\x2b\x5f\x2e\xb0\x4e\x82\x43\x9e\x5d\x1a\x53\x7b\xe2\x4e\xfa\x93\x11\x66\x16\x79\x9e\x1a\x83\xc9\x59\xcf\x1a\xe3\x4d\xf1\xb8\x10\x32\x57\x64\xbc\x73\x9b\x96\xbc\xff\xb8\x5a\xff\x44\x1e\x74\x3a\xef\x3f\xd6\xcb\xf1\xf2\xfe\xe3\x13\xd7\x9d\x7a\xd3\x89\xed\x3e\x91\x1d\x43\xbd\xf4\x06\x03\x88\x66\xac\x27\x40\x60\xaf\xdb\xed\x42\xce\x41\x24\xfd\xab\x98\x33\xc7\x39\x61\x33\xee\xe7\x45\xc6\xd9\xed\x82\x27\x2c\x11\x39\xf3\x6f\xfc\x28\xa6\x69\x63\x60\x39\xbd\xa3\x91\xe9\xd1\xb2\x43\x36\xf3\x63\xc9\x0d\x3c\x57\xc4\x76\x77\x6b\xa4\xfa\x83\x31\xd9\x27\x61\x51\x52\x29\x6e\x29\x42\x6e\x4c\x86\xc3\x91\x35\x36\x2b\x2d\x69\x22\x15\x61\x7b\x72\xee\x9a\xb6\x37\x9a\x1c\xaf\xa7\x3e\x66\xc7\x3c\xe1\x99\x9f\x73\x26\x73\x9e\xca\x03\x8c\xfc\x11\x0b\x42\x98\x3d\x5f\x74\x72\xd1\x99\xc3\xd0\x9d\xa0\x90\xb9\x58\x76\x48\x65\x52\x2d\x68\xab\x71\x16\xf0\x2c\x67\xad\xc0\x3f\xcc\xb3\x82\xb3\x56\x58\x80\x50\x24\x92\xc3\xfd\xe7\xcf\xba\x8b\xee\xb2\x2b\x59\x8b\x74\x7a\xb8\x5c\xd1\x4f\x9b\xdf\xf9\xcb\x34\xe6\xed\x40\x2c\x8d\x8f\x41\x67\x92\xb1\x59\x26\x96\xcc\x67\xed\x74\x76\xc7\x66\x11\x04\xe3\x77\xa9\xc8\x72\x1e\xea\x19\xf8\x07\x7b\x11\x25\x21\x79\x24\x1d\x16\xcd\xa2\x40\xf3\x2a\xa0\xc3\xc7\xa1\x00\x15\x52\xe2\x4c\x64\x73\x9e\xb3\x5c\x94\xfb\xd5\xc6\x34\x8b\x6e\x68\xf1\x35\x5f\x3d\xd1\x72\x89\x94\x27\x52\xc6\x2c\xbd\x0e\xe4\xce\x2e\x6b\x41\x79\x44\x55\x9d\xde\x12\x45\x5e\xbe\xf1\x25\x6b\x25\x02\xdb\xe4\x0f\xdb\x85\x95\xd5\x26\x9a\x90\xf4\x10\x72\x69\xf4\x4d\xdb\xf5\x28\xc8\xa0\xee\xba\x0a\x3b\xd5\x31\xc6\xa9\xf9\xf2\xc1\x05\x25\x45\x1c\x7f\x9e\xa6\x08\x91\x18\xb6\x8e\x99\x98\xb1\x9c\x43\x83\x24\x94\x9f\x84\xd0\x02\xd4\x1d\x68\xbd\x91\xbd\xb0\xbc\x16\x32\x4a\x05\x18\x25\x57\x83\xb2\x28\x62\x69\x98\xdf\xf1\xa0\x80\x82\x0d\xc7\xed\xb9\x56\xdf\x53\xfe\x3e\xed\xb9\xf0\x39\x9d\x0a\x62\x52\x31\xac\x58\x1e\x7a\xfc\x85\x35\x65\xb2\x48\x49\xad\x86\x39\x56\x8e\xa4\xc6\x36\x2e\x34\x02\x33\x51\x32\xd7\xa9\x02\xa6\x80\x49\x92\x56\x2c\xe6\x73\x98\xb1\x40\xe8\xc9\x26\x0b\xfc\x84\x5d\x71\xd6\x58\x88\x25\xd7\x31\x0e\x43\xc5\x30\x62\xc3\x18\xf5\x54\x6e\x02\x0f\xc7\xa4\x07\x5a\x81\x88\x0d\xfd\xdc\x47\xf0\xf2\xcb\x5a\x9e\x58\xae\xe4\x9b\x58\x65\x0a\x78\xd3\x3c\xe3\x52\x53\xc2\x60\x94\xf3\x3d\x4c\x44\xf9\x07\x92\xd2\x4e\xc6\x82\x85\xa0\x8c\x34\x38\xaa\x12\x81\xda\x6b\x9c\x4c\x1c\x0a\xa5\x9d\xdd\xe7\xed\x2e\xfe\xed\x1c\xec\xed\x75\x9f\x19\x65\x4e\x23\x97\x36\xca\x04\x95\x09\x91\x1b\xd3\x9e\xe3\xbc\x18\x28\xbd\x0c\xe9\xa0\xda\xb1\x49\xbc\x6a\x32\x5e\xe5\x2f\x1d\x94\xc4\x59\xc6\xdf\x14\x51\x56\x8a\x88\x94\x13\xcd\x56\xad\x59\x11\xc7\x0d\x44\xf2\x68\x9d\xbb\xf4\xfa\x8a\x6c\xc5\xbf\xa2\x6a\x68\x53\x30\x92\x5f\x05\x59\x3b\xbc\x82\x3a\xfc\x70\x19\x25\x97\x2a\x93\x05\x45\x16\xe5\xc8\x77\xd6\x18\x16\x1c\x8d\x10\xce\xfd\xd3\x9a\x31\x1e\x3d\xd2\xd9\x5f\x17\x07\x77\xc2\x4e\x4d\x73\xca\x5e\x4e\xce\x6d\xa6\x64\x1b\xf4\xdc\x1e\x73\x7a\x43\xf3\xd1\x23\xc3\x31\xfb\xb6\xe9\x7a\xf0\x42\x10\x78\xf4\xde\xa7\xc3\x81\xf9\xc2\xc6\xff\x3f\xfe\x93\xc7\xe4\x0b\x45\x2e\xc8\x8c\xf0\xf7\x8c\x2f\xf9\xf2\x0a\xb2\x86\x3e\x82\x02\x09\xc4\x1a\x7b\xb6\x79\x66\x9e\x1d\x21\x9f\x0c\x7a\x2f\x1d\xec\x7f\x6e\xf4\x27\x93\x53\xcb\x54\x39\xbe\xa6\x52\xcf\xbf\xe5\x92\x8c\x5a\x4e\xaf\xf7\xd5\xd7\x44\x49\x90\xf1\x30\xd2\x5a\xb1\xa9\xf2\x48\x0a\x60\x71\xb7\x62\x7e\x01\x2d\x27\x79\xe5\x95\x0b\xee\x87\x60\x44\xd5\x2b\x04\x04\xf9\x97\x7a\x31\x6c\xaa\x8c\x8e\xe9\x21\x67\x7f\xfe\xd2\xeb\x9d\xbb\x27\xe6\x18\x0e\x0e\x27\x9f\xac\xeb\xce\xe7\xad\x17\xe6\x11\x4d\xb5\x68\xa0\x2c\x0c\x70\x94\x4b\xa3\xd7\x77\xad\x0b\xd3\xeb\xc3\x42\xde\x88\x9e\xce\xac\x31\xb2\x25\x09\xb6\xb3\xdf\x05\x71\xc7\xa4\x30\x21\x87\xf8\xad\x8b\x10\xad\x8a\x1b\x0e\xbf\x47\x2a\x0a\x44\x32\x8b\xb2\x25\xe3\xad\x25\x52\xbc\x0a\x8c\x8c\xcf\x2Line truncated var _conf_app_ini = []byte("\x1f\x8b\x08\x00\x00\x09\x6e\x88\x00\xff\xb4\x59\xcd\x73\xe3\x46\x76\xbf\xe3\xaf\xe8\xa1\xe3\x78\x26\xc5\x2f\x49\x9e\x0f\xcb\x56\x62\x8a\x04\x25\xac\x28\x92\x06\x20\xc9\xe3\x29\x15\x06\x02\x9a\x24\x2c\x10\x8d\x41\x03\x92\xb8\x95\x43\x5c\x39\xe4\x9e\x6c\x25\x97\x1c\x92\x43\x2a\x55\x49\x36\xa9\xdc\x76\xb7\x2a\x27\x57\xee\xf6\xff\xe0\xf2\x6e\xfe\x8b\xfc\x5e\x37\x40\x82\x1a\xed\xac\xd7\xc9\xd6\x4c\x89\x40\x7f\xbc\x7e\xdf\xef\xf7\x1a\xef\xb1\xb1\x79\x6e\xda\x4c\xfd\x39\x9d\x0c\xac\xe1\x4b\xe6\x1e\x5b\x0e\x1b\x5a\x23\xd3\x78\x8f\x4d\x47\x66\xcf\x31\xd9\x69\xef\xc4\x64\xfd\xe3\xde\xf8\xc8\x74\xd8\x64\xcc\xfa\x13\xdb\x36\x9d\xe9\x64\x3c\xb0\xc6\x47\xac\x7f\xe6\xb8\x93\x53\x0c\x8e\x87\xd6\x91\xde\x69\x7c\xcc\x7a\x69\xca\x12\x7f\xc9\x59\xbe\xf0\x73\x26\x17\xe2\x56\x32\x91\x30\x7e\xc3\xb3\x15\x4b\xfd\x39\x26\xa2\x3c\xe6\x46\x6f\x3a\xf5\xc6\xbd\x53\x93\x1d\xb0\x23\x31\x97\xfb\xf8\xcb\x8e\xa2\x9c\x39\x3c\xbb\x89\x02\x0e\x4a\xfd\x85\x9f\x60\x39\xc6\xa2\x19\x5b\x89\x82\x65\x45\xc2\x62\x11\xf8\x71\xbc\x32\xec\xb3\xb1\x77\xe6\x80\xfb\x03\x36\x8f\x72\xac\x36\xa3\x7c\xc1\x33\xd6\x08\xf9\x4d\xa3\xc9\x1a\x69\x26\xc2\x06\x13\x18\xc8\xb9\xcc\x31\x12\xf2\x99\x5f\xc4\xa0\x25\xf5\x1a\x45\x01\xa2\x13\x03\x78\x37\x8c\x57\x19\x4f\x85\x8c\x72\x91\xad\x2e\x0d\x7b\x32\x71\xd9\x81\xe1\xf4\x6d\x6b\xea\x7a\xee\xcb\x29\x2d\xbb\xf2\xe5\x02\xeb\x24\x38\xe4\xd9\xa5\x31\xb5\x27\xee\xa4\x3f\x19\x61\x66\x91\xe7\xa9\x31\x98\x9c\xf6\xac\x31\xde\x14\x8f\x0b\x21\x73\x45\xc6\x3b\xb3\x69\xc9\xfb\x8f\xab\xf5\x4f\xe4\x7e\xa7\xf3\xfe\x63\xbd\x1c\x2f\xef\x3f\x3e\x76\xdd\xa9\x37\x9d\xd8\xee\x13\xd9\x31\xd4\x4b\x6f\x30\x80\x68\xc6\x7a\x02\x04\xf6\xba\xdd\x2e\xe4\x1c\x44\xd2\xbf\x8a\x39\x73\x9c\x63\x36\xe3\x7e\x5e\x64\x9c\xdd\x2e\x78\xc2\x12\x91\x33\xff\xc6\x8f\x62\x9a\x36\x06\x96\xd3\x3b\x1c\x99\x1e\x2d\x3b\x60\x33\x3f\x96\xdc\xc0\x73\x45\x6c\x77\xb7\x46\xaa\x3f\x18\x93\x7d\x12\x16\x25\x95\xe2\x96\x22\xe4\xc6\x64\x38\x1c\x59\x63\xb3\xd2\x92\x26\x52\x11\xb6\x27\x67\xae\x69\x7b\xa3\xc9\xd1\x7a\xea\x63\x76\xc4\x13\x9e\xf9\x39\x67\x32\xe7\xa9\xdc\xc7\xc8\x1f\xb1\x20\x84\xd9\xf3\x45\x27\x17\x9d\x39\x0c\xdd\x09\x0a\x99\x8b\x65\x87\x54\x26\xd5\x82\xb6\x1a\x67\x01\xcf\x72\xd6\x0a\xfc\x83\x3c\x2b\x38\x6b\x85\x05\x08\x45\x22\x39\x78\xf1\xfc\x59\x77\xd1\x5d\x76\x25\x6b\x91\x4e\x0f\x96\x2b\xfa\x69\xf3\x3b\x7f\x99\xc6\xbc\x1d\x88\xa5\xf1\x31\xe8\x4c\x32\x36\xcb\xc4\x92\xf9\xac\x9d\xce\xee\xd8\x2c\x82\x60\xfc\x2e\x15\x59\xce\x43\x3d\x03\xff\x60\x17\x51\x12\x92\x47\xd2\x61\xd1\x2c\x0a\x34\xaf\x02\x3a\x7c\x1c\x0a\x50\x21\x25\xce\x44\x36\xe7\x39\xcb\x45\xb9\x5f\x6d\x4c\xb3\xe8\x86\x16\x5f\xf3\xd5\x13\x2d\x97\x48\x79\x22\x65\xcc\xd2\xeb\x40\xee\xec\xb2\x16\x94\x47\x54\xd5\xe9\x2d\x51\xe4\xe5\x1b\x5f\xb2\x56\x22\xb0\x4d\xfe\xb0\x5d\x58\x59\x6d\xa2\x09\x49\x0f\x21\x97\x46\xdf\xb4\x5d\x8f\x82\x0c\xea\xae\xab\xb0\x53\x1d\x63\x9c\x98\x2f\x1f\x5c\x50\x52\xc4\xf1\x67\x69\x8a\x10\x89\x61\xeb\x98\x89\x19\xcb\x39\x34\x48\x42\xf9\x49\x08\x2d\x40\xdd\x81\xd6\x1b\xd9\x0b\xcb\x6b\x21\xa3\x54\x80\x51\x72\x35\x28\x8b\x22\x96\x86\xf9\x1d\x0f\x0a\x28\xd8\x70\xdc\x9e\x6b\xf5\x3d\xe5\xef\xd3\x9e\x0b\x9f\xd3\xa9\x20\x26\x15\xc3\x8a\xe5\xa1\x47\x5f\x58\x53\x26\x8b\x94\xd4\x6a\x98\x63\xe5\x48\x6a\x6c\xe3\x42\x23\x30\x13\x25\x73\x9d\x2a\x60\x0a\x98\x24\x69\xc5\x62\x3e\x87\x19\x0b\x84\x9e\x6c\xb2\xc0\x4f\xd8\x15\x67\x8d\x85\x58\x72\x1d\xe3\x30\x54\x0c\x23\x36\x8c\x51\x4f\xe5\x26\xf0\x70\x44\x7a\xa0\x15\x88\xd8\xd0\xcf\x7d\x04\x2f\xbf\xac\xe5\x89\xe5\x4a\xbe\x89\x55\xa6\x80\x37\xcd\x33\x2e\x35\x25\x0c\x46\x39\xdf\xc3\x44\x94\x7f\x20\x29\xed\x64\x2c\x58\x08\xca\x48\x83\xc3\x2a\x11\xa8\xbd\xc6\xf1\xc4\xa1\x50\xda\xd9\x7d\xde\xee\xe2\xdf\xce\xfe\xde\x5e\xf7\x99\x51\xe6\x34\x72\x69\xa3\x4c\x50\x99\x10\xb9\x31\xed\x39\xce\xc5\x40\xe9\x65\x48\x07\xd5\x8e\x4d\xe2\x55\x93\xf1\x2a\x7f\xe9\xa0\x24\xce\x32\xfe\xa6\x88\xb2\x52\x44\xa4\x9c\x68\xb6\x6a\xcd\x8a\x38\x6e\x20\x92\x47\xeb\xdc\xa5\xd7\x57\x64\x2b\xfe\x15\x55\x43\x9b\x82\x91\xfc\x2a\xc8\xda\xe1\x15\xd4\xe1\x87\xcb\x28\xb9\x54\x99\x2c\x28\xb2\x28\x47\xbe\xb3\xc6\xb0\xe0\x68\x84\x70\xee\x9f\xd4\x8c\xf1\xe8\x91\xce\xfe\xba\x38\xb8\x13\x76\x62\x9a\x53\xf6\x72\x72\x66\x33\x25\xdb\xa0\xe7\xf6\x98\xd3\x1b\x9a\x8f\x1e\x19\x8e\xd9\xb7\x4d\xd7\x83\x17\x82\xc0\xa3\xf7\x3e\x1d\x0e\xcc\x0b\x1b\xff\xff\xf8\x4f\x1e\x93\x2f\x14\xb9\x20\x33\xc2\xdf\x33\xbe\xe4\xcb\x2b\xc8\x1a\xfa\x08\x0a\x24\x10\x6b\xec\xd9\xe6\xa9\x79\x7a\x88\x7c\x32\xe8\xbd\x74\xb0\xff\xb9\xd1\x9f\x4c\x4e\x2c\x53\xe5\xf8\x9a\x4a\x3d\xff\x96\x4b\x32\x6a\x39\xbd\xde\x57\x5f\x13\x25\x41\xc6\xc3\x48\x6b\xc5\xa6\xca\x23\x29\x80\xc5\xdd\x8a\xf9\x05\xb4\x9c\xe4\x95\x57\x2e\xb8\x1f\x82\x11\x55\xaf\x10\x10\xe4\x5f\xea\xc5\xb0\xa9\x32\x3a\xa6\x87\x9c\xfd\xf9\x4b\xaf\x77\xe6\x1e\x9b\x63\x38\x38\x9c\x7c\xb2\xae\x3b\x9f\xb7\x2e\xcc\x43\x9a\x6a\xd1\x40\x59\x18\xe0\x28\x97\x46\xaf\xef\x5a\xe7\xa6\xd7\x87\x85\xbc\x11\x3d\x9d\x5a\x63\x64\x4b\x12\x6c\xe7\x45\x17\xc4\x1d\x93\xc2\x84\x1c\xe2\xb7\x2e\x42\xb4\x2a\x6e\x38\xfc\x1e\xa9\x28\x10\xc9\x2c\xca\x96\x8c\xb7\x96\x48\xf1\x2a\x30\x32\x3e\x8f\x6Line truncated
func conf_app_ini_bytes() ([]byte, error) { func conf_app_ini_bytes() ([]byte, error) {
return bindata_read( return bindata_read(
@@ -76,7 +76,7 @@ func conf_app_ini() (*asset, error) {
return nil, err return nil, err
} }
info := bindata_file_info{name: "conf/app.ini", size: 8588, mode: os.FileMode(420), modTime: time.Unix(1427066513, 0)} info := bindata_file_info{name: "conf/app.ini", size: 8625, mode: os.FileMode(420), modTime: time.Unix(1427119977, 0)}
a := &asset{bytes: bytes, info: info} a := &asset{bytes: bytes, info: info}
return a, nil return a, nil
} }
+1
View File
@@ -209,6 +209,7 @@ func Contexter() macaron.Handler {
ctx.Data["CsrfTokenHtml"] = template.HTML(`<input type="hidden" name="_csrf" value="` + x.GetToken() + `">`) ctx.Data["CsrfTokenHtml"] = template.HTML(`<input type="hidden" name="_csrf" value="` + x.GetToken() + `">`)
ctx.Data["ShowRegistrationButton"] = setting.Service.ShowRegistrationButton ctx.Data["ShowRegistrationButton"] = setting.Service.ShowRegistrationButton
ctx.Data["ShowFooterBranding"] = setting.ShowFooterBranding
c.Map(ctx) c.Map(ctx)
} }
+5
View File
@@ -130,6 +130,9 @@ var (
// I18n settings. // I18n settings.
Langs, Names []string Langs, Names []string
// Other settings.
ShowFooterBranding bool
// Global setting objects. // Global setting objects.
Cfg *ini.File Cfg *ini.File
CustomPath string // Custom directory path. CustomPath string // Custom directory path.
@@ -327,6 +330,8 @@ func NewConfigContext() {
Langs = Cfg.Section("i18n").Key("LANGS").Strings(",") Langs = Cfg.Section("i18n").Key("LANGS").Strings(",")
Names = Cfg.Section("i18n").Key("NAMES").Strings(",") Names = Cfg.Section("i18n").Key("NAMES").Strings(",")
ShowFooterBranding = Cfg.Section("other").Key("SHOW_FOOTER_BRANDING").MustBool()
HasRobotsTxt = com.IsFile(path.Join(CustomPath, "robots.txt")) HasRobotsTxt = com.IsFile(path.Join(CustomPath, "robots.txt"))
} }
+1 -1
View File
@@ -1 +1 @@
0.6.0.0320 Beta 0.6.0.0323 Beta
+2
View File
@@ -5,10 +5,12 @@
© 2015 Gogs · {{.i18n.Tr "version"}}: {{AppVer}} · {{.i18n.Tr "page"}}: <strong>{{LoadTimes .PageStartTime}}</strong> · {{.i18n.Tr "template"}}: <strong>{{call .TmplLoadTimes}}</strong> © 2015 Gogs · {{.i18n.Tr "version"}}: {{AppVer}} · {{.i18n.Tr "page"}}: <strong>{{LoadTimes .PageStartTime}}</strong> · {{.i18n.Tr "template"}}: <strong>{{call .TmplLoadTimes}}</strong>
</div> </div>
<div class="ui right links"> <div class="ui right links">
{{if .ShowFooterBranding}}
<a target="_blank" href="https://github.com/gogits/gogs"><i class="fa fa-github-square"></i><span class="sr-only">GitHub</span></a> <a target="_blank" href="https://github.com/gogits/gogs"><i class="fa fa-github-square"></i><span class="sr-only">GitHub</span></a>
<a target="_blank" href="https://twitter.com/gogitservice"><i class="fa fa-twitter"></i><span class="sr-only">Twitter</span></a> <a target="_blank" href="https://twitter.com/gogitservice"><i class="fa fa-twitter"></i><span class="sr-only">Twitter</span></a>
<a target="_blank" href="https://plus.google.com/communities/115599856376145964459"><i class="fa fa-google-plus"></i><span class="sr-only">Google Plus</span></a> <a target="_blank" href="https://plus.google.com/communities/115599856376145964459"><i class="fa fa-google-plus"></i><span class="sr-only">Google Plus</span></a>
<a target="_blank" href="http://weibo.com/gogschina"><i class="fa fa-weibo"></i><span class="sr-only">Sina Weibo</span></a> <a target="_blank" href="http://weibo.com/gogschina"><i class="fa fa-weibo"></i><span class="sr-only">Sina Weibo</span></a>
{{end}}
<div class="ui language bottom pointing dropdown link item"> <div class="ui language bottom pointing dropdown link item">
<i class="world icon"></i> <i class="world icon"></i>
<div class="text">{{.LangName}}</div> <div class="text">{{.LangName}}</div>
+2
View File
@@ -10,9 +10,11 @@
</p> </p>
</div> </div>
{{if .ShowFooterBranding}}
<div class="col-md-2" style="margin: -5px;"> <div class="col-md-2" style="margin: -5px;">
<a target="_blank" href="https://github.com/gogits/gogs"><i class="fa fa-github fa-2x"></i></a> <a target="_blank" href="https://github.com/gogits/gogs"><i class="fa fa-github fa-2x"></i></a>
</div> </div>
{{end}}
<div class="col-md-4"> <div class="col-md-4">
<p class="desc"> <p class="desc">
+2
View File
@@ -5,10 +5,12 @@
{{.i18n.Tr "template"}}: <strong>{{call .TmplLoadTimes}}</strong></p> {{.i18n.Tr "template"}}: <strong>{{call .TmplLoadTimes}}</strong></p>
<div class="right" id="footer-links"> <div class="right" id="footer-links">
{{if .ShowFooterBranding}}
<a target="_blank" href="https://github.com/gogits/gogs"><i class="fa fa-github-square"></i></a> <a target="_blank" href="https://github.com/gogits/gogs"><i class="fa fa-github-square"></i></a>
<a target="_blank" href="https://twitter.com/gogitservice"><i class="fa fa-twitter"></i></a> <a target="_blank" href="https://twitter.com/gogitservice"><i class="fa fa-twitter"></i></a>
<a target="_blank" href="https://plus.google.com/communities/115599856376145964459"><i class="fa fa-google-plus"></i></a> <a target="_blank" href="https://plus.google.com/communities/115599856376145964459"><i class="fa fa-google-plus"></i></a>
<a target="_blank" href="http://weibo.com/gogschina"><i class="fa fa-weibo"></i></a> <a target="_blank" href="http://weibo.com/gogschina"><i class="fa fa-weibo"></i></a>
{{end}}
<div id="footer-lang" class="inline drop drop-top">{{.i18n.Tr "language"}} <div id="footer-lang" class="inline drop drop-top">{{.i18n.Tr "language"}}
<div class="drop-down"> <div class="drop-down">
<ul class="menu menu-vertical switching-list"> <ul class="menu menu-vertical switching-list">