diff options
author | Feuerfuchs <git@feuerfuchs.dev> | 2019-06-25 09:22:10 +0200 |
---|---|---|
committer | Feuerfuchs <git@feuerfuchs.dev> | 2019-06-25 09:22:10 +0200 |
commit | 22dd08071b7226978f870fba9dbe7290eddb0ae5 (patch) | |
tree | eddcba36f85660e9141eb5667ca7794655a2a83c | |
parent | Revert to normal header borders (diff) | |
download | gopherproxy-22dd08071b7226978f870fba9dbe7290eddb0ae5.tar.gz gopherproxy-22dd08071b7226978f870fba9dbe7290eddb0ae5.tar.bz2 gopherproxy-22dd08071b7226978f870fba9dbe7290eddb0ae5.zip |
Add 'view raw' link to type 0 pages
-rw-r--r-- | template.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/template.go b/template.go index b9e8b30..ac7f674 100644 --- a/template.go +++ b/template.go | |||
@@ -43,7 +43,10 @@ var tpltext = `<!doctype html> | |||
43 | {{- end -}} | 43 | {{- end -}} |
44 | <span class="location__uripart">{{ $uriLast -}}</span> | 44 | <span class="location__uripart">{{ $uriLast -}}</span> |
45 | </div> | 45 | </div> |
46 | <button class="settings-btn">Settings</button> | 46 | <div> |
47 | {{- if not .Lines }}<a href="/{{ .URI | replace "^(.*?)/0" "$1/9" }}">View raw</a> | {{ end -}} | ||
48 | <button class="settings-btn">Settings</button> | ||
49 | </div> | ||
47 | </header> | 50 | </header> |
48 | <main class="wrap"> | 51 | <main class="wrap"> |
49 | <pre class="content"> | 52 | <pre class="content"> |