From 562ad02a6da7323b3ec5e2b0259ee1f17935d5f6 Mon Sep 17 00:00:00 2001 From: Jakub Stasiak Date: Thu, 14 May 2015 00:14:24 +0200 Subject: Add file permalink button The button appears when a file is viewed in a branch or a tag. It points to a URL containing the branch's (or tag's) current commit id so that it'll always point to the same content. --- templates/repo/view_file.tmpl | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'templates') diff --git a/templates/repo/view_file.tmpl b/templates/repo/view_file.tmpl index d33cc95023..4d11170bd0 100644 --- a/templates/repo/view_file.tmpl +++ b/templates/repo/view_file.tmpl @@ -12,6 +12,11 @@ {{.FileName}}{{FileSize .FileSize}} {{end}} {{if not .ReadmeInList}} + {{if not .IsCommit}} + + + + {{end}} -- cgit v1.2.3