Sfoglia il codice sorgente

GIN capitalisation

Some minor changes to text and indentation
- Capitalise GIN in all visible places
- Fix indentation in injected header
Achilleas Koutsou 6 anni fa
parent
commit
3484146466
4 ha cambiato i file con 13 aggiunte e 14 eliminazioni
  1. 3 3
      cmd/serv.go
  2. 1 1
      gogs.go
  3. 1 1
      templates/base/head.tmpl
  4. 8 9
      templates/inject/head.tmpl

+ 3 - 3
cmd/serv.go

@@ -38,7 +38,7 @@ var Serv = cli.Command{
 }
 
 func fail(userMessage, logMessage string, args ...interface{}) {
-	fmt.Fprintln(os.Stderr, "Gin:", userMessage)
+	fmt.Fprintln(os.Stderr, "GIN:", userMessage)
 
 	if len(logMessage) > 0 {
 		if !setting.ProdMode {
@@ -134,7 +134,7 @@ func runServ(c *cli.Context) error {
 	setup(c, "serv.log", true)
 
 	if setting.SSH.Disabled {
-		println("Gins: SSH has been disabled")
+		println("GIN: SSH has been disabled")
 		return nil
 	}
 
@@ -145,7 +145,7 @@ func runServ(c *cli.Context) error {
 	sshCmd := strings.Replace(os.Getenv("SSH_ORIGINAL_COMMAND"), "'", "", -1)
 	log.Info("SSH commadn:%s", sshCmd)
 	if len(sshCmd) == 0 {
-		println("Hi there, You've successfully authenticated, but Gin does not provide shell access.")
+		println("Hi there, You've successfully authenticated, but GIN does not provide shell access.")
 		return nil
 	}
 

+ 1 - 1
gogs.go

@@ -24,7 +24,7 @@ func init() {
 
 func main() {
 	app := cli.NewApp()
-	app.Name = "Gin"
+	app.Name = "GIN"
 	app.Usage = "Modern Research Data Management for Neuroscience"
 	app.Version = APP_VER
 	app.Commands = []cli.Command{

+ 1 - 1
templates/base/head.tmpl

@@ -5,7 +5,7 @@
 	<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
 	{{if not .PageIsAdmin}}
 		<meta name="author" content="{{if .Repository}}{{.Owner.Name}}{{else}}G-Node{{end}}"/>
-		<meta name="description" content="{{if .Repository}}{{.Repository.Name}}{{if .Repository.Description}} - {{.Repository.Description}}{{end}}{{else}}Gin is a data repository for science{{end}}"/>
+		<meta name="description" content="{{if .Repository}}{{.Repository.Name}}{{if .Repository.Description}} - {{.Repository.Description}}{{end}}{{else}}GIN is a data repository for science{{end}}"/>
 		<meta name="keywords" content="gin, data, sharing, science git">
 	{{end}}
 	<meta name="referrer" content="no-referrer" />

+ 8 - 9
templates/inject/head.tmpl

@@ -1,14 +1,13 @@
 <!-- Custom CSS overrides -->
 <link rel="stylesheet" href="/css/custom.css">
 
-
-	{{if or .PageIsExploreRepositories (or .PageIsHome .PageIsWiki) }}
-		<meta name="robots" content="nofollow"/>
-	{{else if .PageIsViewFiles }}
-		<meta name="robots" content="noindex,nofollow"/>
-	{{else}}
-		<meta name="robots" content="noindex, nofollow"/>
-	{{end}}
+{{if or .PageIsExploreRepositories (or .PageIsHome .PageIsWiki) }}
+	<meta name="robots" content="nofollow"/>
+{{else if .PageIsViewFiles }}
+	<meta name="robots" content="noindex,nofollow"/>
+{{else}}
+	<meta name="robots" content="noindex,nofollow"/>
+{{end}}
 
 <!-- Front page cursive font -->
 <link href='https://fonts.googleapis.com/css?family=Kaushan+Script' rel='stylesheet' type='text/css'>
@@ -16,7 +15,7 @@
 <!-- twitterish -->
 <meta name="twitter:card" content="summary" />
 <meta name="twitter:site" content="@gnode" />
-<meta name="twitter:title" content=" GIN" />
+<meta name="twitter:title" content="GIN" />
 <meta name="twitter:description" content="Modern Research Data Management for Neuroscience"/>
 <meta name="twitter:image" content="https://web.gin.g-node.org/img/favicon.png" />