diff --git a/main.go b/main.go index 386fbba..8ca5ff1 100644 --- a/main.go +++ b/main.go @@ -96,7 +96,7 @@ func main() { // static resources http.Handle("/static/", http.StripPrefix("/static/", http.FileServer(http.Dir("static")))) http.Handle("/static/users/", http.StripPrefix("/static/", http.FileServer(http.Dir("C:\\Users\\DL882\\wide\\static\\")))) - serveSingle("/favicon.ico", "./static/favicon.ico") + serveSingle("/favicon.ico", "./static/images/favicon.png") // oauth http.HandleFunc("/oauth/github", session.RedirectGitHubHandler) diff --git a/static/images/favicon.png b/static/images/favicon.png new file mode 100644 index 0000000..12c7343 Binary files /dev/null and b/static/images/favicon.png differ diff --git a/static/images/wide-logo.png b/static/images/wide-logo.png index 02463de..139b29c 100644 Binary files a/static/images/wide-logo.png and b/static/images/wide-logo.png differ diff --git a/views/about.html b/views/about.html index a01af43..737e61b 100644 --- a/views/about.html +++ b/views/about.html @@ -1,6 +1,6 @@
- +

Hello, 世界

Coding with Go on the Wide way.

diff --git a/views/index.html b/views/index.html index c08299d..99be684 100644 --- a/views/index.html +++ b/views/index.html @@ -297,7 +297,7 @@ {{.i18n.team}}
    - @@ -320,12 +320,12 @@ {{.i18n.issues}}
  • -
  • +
  • {{.i18n.keyboard_shortcuts}}
  • -
  • +
  • Playground
  • @@ -347,7 +347,7 @@
      @@ -581,71 +581,71 @@ {{if eq $.conf.RuntimeMode "dev"}} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - + + + + + + + + + + + {{else}} - - + + {{end}} - - + + diff --git a/views/login.html b/views/login.html index a66bd5b..b9b88e2 100644 --- a/views/login.html +++ b/views/login.html @@ -22,7 +22,7 @@
  • GitHub
  • {{.i18n.help}}
  • {{.i18n.issues}}
  • -
  • +
@@ -61,7 +61,7 @@ $('#loginForm').submit(function () { var options = { - url: '{{.conf.Context}}/login', + url: '/login', type: 'POST', dataType: 'json', beforeSubmit: function () { @@ -84,7 +84,7 @@ return; } - window.location.href = "{{.conf.Context}}/"; + window.location.href = "/"; } }; diff --git a/views/playground/index.html b/views/playground/index.html index c0aa273..935a6d1 100644 --- a/views/playground/index.html +++ b/views/playground/index.html @@ -30,7 +30,7 @@