mirror of
https://github.com/gojp/goreportcard.git
synced 2026-01-28 22:39:05 +08:00
remove shutdown notice, add digital ocean attribution logo/link
This commit is contained in:
BIN
assets/do-proudly-hosted.png
Normal file
BIN
assets/do-proudly-hosted.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 17 KiB |
@@ -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)
|
||||
}
|
||||
1
main.go
1
main.go
@@ -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...")
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user