diff --git a/progit/templates/file.html b/progit/templates/file.html index 45cee0e..df69b08 100644 --- a/progit/templates/file.html +++ b/progit/templates/file.html @@ -10,7 +10,22 @@ {{ repo.split('.git')[0] }} - : {{ branchname }}/{{filename}} + : + {{ branchname }}/{% + for file in filename.split('/') %} + {% if loop.first %} + {% set path = file %} + {% else %} + {% set path = path + '/' + file %} + {% endif %} + {% if loop.index != loop.length %} +{{ file }}/{% + else %} +{{ file }} + {% endif %} + {% endfor %}