From 88dd6fab76231a7cefbb0959a960099352d93c16 Mon Sep 17 00:00:00 2001 From: Eric Sunshine Date: Fri, 23 Jan 2015 17:14:25 -0500 Subject: [PATCH] views/tree: signify root directory in page title The page title in a root tree displays as "git >> repo >> branch >>", which looks odd and fails to convey the fact that the page represents a tree. Appending a '/' (for example "git >> repo >> branch >> /") makes it more obvious that the page shows a tree, in general, and the root tree, in particular. Signed-off-by: Eric Sunshine Signed-off-by: Alberto Bertogli --- views/tree.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/tree.html b/views/tree.html index 68a5844..c705b18 100644 --- a/views/tree.html +++ b/views/tree.html @@ -11,7 +11,7 @@ % relroot = reltree + '../' * (len(branch.split('/')) - 1) git » {{repo.name}} » - {{branch}} » {{dirname.unicode}} + {{branch}} » {{dirname.unicode if dirname.unicode else '/'}}