diff options
author | Alberto Bertogli <albertito@blitiri.com.ar> | 2020-05-24 16:52:11 +0200 |
---|---|---|
committer | Alberto Bertogli <albertito@blitiri.com.ar> | 2020-05-24 17:05:18 +0200 |
commit | aee18d0edd88b9db07c3cfb5c13d9889ffac94c1 (patch) | |
tree | bd17d5b50e5de951b8b2df67e56a6ce3de57bfcb /views/tree.html | |
parent | 20b99ee568fd15ca2897f995e9775861ef293544 (diff) | |
download | git-arr-fork-aee18d0edd88b9db07c3cfb5c13d9889ffac94c1.zip |
Simplify smstr
With the Python 2 to 3 migration and the type checking, we can be
fairly confident that smstr are always constructed from strings, not
bytes.
This allows the code to be simplified, as we no longer need to carry
the dual raw/unicode representation.
Diffstat (limited to 'views/tree.html')
-rw-r--r-- | views/tree.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/views/tree.html b/views/tree.html index 3f3829c..179672d 100644 --- a/views/tree.html +++ b/views/tree.html @@ -10,7 +10,7 @@ % relroot = reltree + '../' * (len(branch.split('/')) - 1) <title>git » {{repo.name}} » - {{branch}} » {{dirname.unicode if dirname.unicode else '/'}}</title> + {{branch}} » {{dirname.raw if dirname.raw else '/'}}</title> <link rel="stylesheet" type="text/css" href="{{relroot}}../../../../../static/git-arr.css"/> <meta http-equiv="content-type" content="text/html; charset=utf-8"/> @@ -31,7 +31,7 @@ % if not c.raw: % continue % end - <a href="{{base.url}}{{c.url}}/">{{c.unicode}}</a> / + <a href="{{base.url}}{{c.url}}/">{{c.raw}}</a> / % base += c + '/' % end </h3> |