aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFeuerfuchs <git@feuerfuchs.dev>2019-11-17 11:40:09 +0100
committerFeuerfuchs <git@feuerfuchs.dev>2019-11-17 11:40:09 +0100
commit100193b1d5070fbedc2ab6bcb07db966dab6c572 (patch)
tree9d5c4de10ecee97e18087009cc1d8a03daabbdd8
parentCreated proper startpage, support gemini:// links in Gopher mode (diff)
downloadgopherproxy-100193b1d5070fbedc2ab6bcb07db966dab6c572.tar.gz
gopherproxy-100193b1d5070fbedc2ab6bcb07db966dab6c572.tar.bz2
gopherproxy-100193b1d5070fbedc2ab6bcb07db966dab6c572.zip
Fixed "view raw" link
-rw-r--r--template.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/template.go b/template.go
index 7ddc460..70453b0 100644
--- a/template.go
+++ b/template.go
@@ -68,7 +68,7 @@ var tpltext = `<!doctype html>
68 </div> 68 </div>
69 <div class="actions"> 69 <div class="actions">
70 {{- if and (not .Lines) (not .Error) (eq .Protocol "gopher") -}} 70 {{- if and (not .Lines) (not .Error) (eq .Protocol "gopher") -}}
71 <div class="action"><a href="/{{ .URI | replace "^(.*?)/0" "$1/9" }}">View raw</a></div> 71 <div class="action"><a href="/gopher/{{ .URI | replace "^([^/]*)/0" "$1/9" }}">View raw</a></div>
72 {{- end -}} 72 {{- end -}}
73 <div class="action"><button class="settings-btn">Settings</button></div> 73 <div class="action"><button class="settings-btn">Settings</button></div>
74 </div> 74 </div>