Add more buttons and add row div
This commit is contained in:
parent
e49ddf6cef
commit
82d977eb85
|
@ -35,7 +35,10 @@
|
|||
</div>
|
||||
|
||||
<div class="pull-right">
|
||||
<a href="{{.Link}}" class="btn btn-raised btn-primary">Raw</a>
|
||||
<div class="row">
|
||||
<a href="{{.Link}}" class="btn btn-raised btn-primary">Home</a>
|
||||
<a href="{{.Raw}}" class="btn btn-raised btn-primary">Raw</a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -35,7 +35,10 @@
|
|||
</div>
|
||||
|
||||
<div class="pull-right">
|
||||
<div class="row">
|
||||
<a href="%s" class="btn btn-raised btn-primary">Home</a>
|
||||
<a href="%s" class="btn btn-raised btn-primary">Raw</a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
5
main.go
5
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)
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue