Selaa lähdekoodia

Merge pull request #2168 from calmh/codename

Add release code name
Jakob Borg 10 vuotta sitten
vanhempi
sitoutus
c2bc3358cc

+ 1 - 0
cmd/syncthing/gui.go

@@ -355,6 +355,7 @@ func (s *apiSvc) getSystemVersion(w http.ResponseWriter, r *http.Request) {
 	w.Header().Set("Content-Type", "application/json; charset=utf-8")
 	w.Header().Set("Content-Type", "application/json; charset=utf-8")
 	json.NewEncoder(w).Encode(map[string]string{
 	json.NewEncoder(w).Encode(map[string]string{
 		"version":     Version,
 		"version":     Version,
+		"codename":    Codename,
 		"longVersion": LongVersion,
 		"longVersion": LongVersion,
 		"os":          runtime.GOOS,
 		"os":          runtime.GOOS,
 		"arch":        runtime.GOARCH,
 		"arch":        runtime.GOARCH,

+ 2 - 1
cmd/syncthing/main.go

@@ -45,6 +45,7 @@ import (
 
 
 var (
 var (
 	Version     = "unknown-dev"
 	Version     = "unknown-dev"
+	Codename    = "Aluminium Ant"
 	BuildEnv    = "default"
 	BuildEnv    = "default"
 	BuildStamp  = "0"
 	BuildStamp  = "0"
 	BuildDate   time.Time
 	BuildDate   time.Time
@@ -93,7 +94,7 @@ func init() {
 	BuildDate = time.Unix(int64(stamp), 0)
 	BuildDate = time.Unix(int64(stamp), 0)
 
 
 	date := BuildDate.UTC().Format("2006-01-02 15:04:05 MST")
 	date := BuildDate.UTC().Format("2006-01-02 15:04:05 MST")
-	LongVersion = fmt.Sprintf("syncthing %s (%s %s-%s %s) %s@%s %s", Version, runtime.Version(), runtime.GOOS, runtime.GOARCH, BuildEnv, BuildUser, BuildHost, date)
+	LongVersion = fmt.Sprintf(`syncthing %s "%s" (%s %s-%s %s) %s@%s %s`, Version, Codename, runtime.Version(), runtime.GOOS, runtime.GOARCH, BuildEnv, BuildUser, BuildHost, date)
 
 
 	if os.Getenv("STTRACE") != "" {
 	if os.Getenv("STTRACE") != "" {
 		logFlags = log.Ltime | log.Ldate | log.Lmicroseconds | log.Lshortfile
 		logFlags = log.Ltime | log.Ldate | log.Lmicroseconds | log.Lshortfile

+ 7 - 1
gui/syncthing/core/aboutModalView.html

@@ -1,5 +1,11 @@
 <modal id="about" status="info" icon="heart-o" title="{{'About' | translate}}" large="yes" close="yes">
 <modal id="about" status="info" icon="heart-o" title="{{'About' | translate}}" large="yes" close="yes">
-  <h1 class="text-center"><img alt="Syncthing" title="Syncthing" src="assets/img/logo-horizontal.svg" style="vertical-align: -16px" height="100" width="366"/><br/><small>{{versionString()}}</small></h1>
+  <h1 class="text-center">
+    <img alt="Syncthing" title="Syncthing" src="assets/img/logo-horizontal.svg" style="vertical-align: -16px" height="100" width="366"/>
+    <br/>
+    <small>{{versionString()}}</small>
+    <br/>
+    <small><i>"{{version.codename}}"</i></small>
+  </h1>
   <hr/>
   <hr/>
 
 
   <p translate>Copyright &copy; 2015 the following Contributors:</p>
   <p translate>Copyright &copy; 2015 the following Contributors:</p>

Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 1 - 1
lib/auto/gui.files.go


Kaikkia tiedostoja ei voida näyttää, sillä liian monta tiedostoa muuttui tässä diffissä