fix path url

This commit is contained in:
tdurieux
2017-09-29 10:27:32 +02:00
parent 993356e943
commit 2aee95c7a8
2 changed files with 6 additions and 4 deletions

View File

@@ -40,6 +40,7 @@ class Anonymous_Github:
application = Flask(__name__)
application.log = {}
application.killurl = str(uuid.uuid4())
application.jinja_env.add_extension('jinja2.ext.do')
@application.template_filter('file_render', )
def file_render(file, terms):

View File

@@ -16,11 +16,12 @@
<div class="main">
<div class="container-fluid">
<div class="paths">
{% set current_path = '/repository/' + current_repository %}
<span class="path"><a href="{{ current_path }}/">{{ name }}</a></span>
{% set current_path = [] %}
{% do current_path.append('/repository/' + current_repository) %}
<span class="path"><a href="{{ current_path|join("/") }}">{{ name }}</a></span>
{% for item in path %}
{% set current_path = current_path + "/" + item %}
<span class="path"><a href="{{ current_path }}/">{{ item }}</a></span>
{% do current_path.append(item) %}
<span class="path"><a href="{{ current_path|join("/") }}">{{ item }}</a></span>
{% endfor %}
</div>
<div class="files">