remove shutdown notice, add digital ocean attribution logo/link

This commit is contained in:
Shawn Smith
2015-08-11 17:50:07 +09:00
parent 439c9e7a45
commit 11d5c1db38
4 changed files with 1 additions and 15 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

View File

@@ -1,13 +0,0 @@
package handlers
import (
"net/http"
"text/template"
)
// ShutdownHandler handles the shutdown page
func ShutdownHandler(w http.ResponseWriter, r *http.Request) {
t := template.Must(template.New("shutdown.html").ParseFiles("templates/shutdown.html"))
t.Execute(w, nil)
}

View File

@@ -33,7 +33,6 @@ func main() {
http.HandleFunc("/report/", makeHandler("report", handlers.ReportHandler))
http.HandleFunc("/badge/", makeHandler("badge", handlers.BadgeHandler))
http.HandleFunc("/high_scores/", handlers.HighScoresHandler)
http.HandleFunc("/shutdown/", handlers.ShutdownHandler)
http.HandleFunc("/", handlers.HomeHandler)
fmt.Println("Running on 127.0.01:8080...")

View File

@@ -143,7 +143,6 @@
<body>
<div id="notifications">
</div>
<div class="alert alert-warning" role="alert">Go Report Card shutting down <a href="/shutdown">(more info)</a></div>
<div class="jumbotron">
<div class="container">
<div class="row header">
@@ -194,6 +193,7 @@
<a href="https://twitter.com/shawnps">@shawnps</a> and
<a href="https://twitter.com/ironzeb">@ironzeb</a>. The Go Gopher was created by <a href="http://reneefrench.blogspot.com/">Renée French</a>.
<a href="/high_scores"><strong>High Scores</strong></a>
<a href="https://www.digitalocean.com/"><img width="15%" src="/assets/do-proudly-hosted.png"></img></a>
</p>
</div>
</div>