From 07180d93fb4520234750251fadfc0a0bb07445be Mon Sep 17 00:00:00 2001 From: Eliot Whalan Date: Thu, 23 Jun 2016 20:59:12 +1000 Subject: [PATCH] Add more buttons and add row div --- assets/paste.html | 5 ++++- assets/syntax.html | 5 ++++- main.go | 5 +++-- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/assets/paste.html b/assets/paste.html index 44eaa1d..cdac78d 100644 --- a/assets/paste.html +++ b/assets/paste.html @@ -35,7 +35,10 @@
- Raw +
+ Home + Raw +
diff --git a/assets/syntax.html b/assets/syntax.html index 3d23d8d..2791a1f 100644 --- a/assets/syntax.html +++ b/assets/syntax.html @@ -35,7 +35,10 @@
- Raw +
+ Home + Raw +
diff --git a/main.go b/main.go index 4008ee6..0aafe02 100644 --- a/main.go +++ b/main.go @@ -235,7 +235,8 @@ func pasteHandler(w http.ResponseWriter, r *http.Request) { p := &Page{ Title: paste, Body: []byte(s), - Link: link, + Raw: link, + Home: ADDRESS, } t, err := template.ParseFiles("assets/paste.html") if err != nil { @@ -246,7 +247,7 @@ func pasteHandler(w http.ResponseWriter, r *http.Request) { } else { dat, err := ioutil.ReadFile("assets/syntax.html") check(err) - fmt.Fprintf(w, string(dat), paste, paste, s, link) + fmt.Fprintf(w, string(dat), paste, paste, s, ADDRESS, link) } }