mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-02-13 10:52:53 +00:00
fix path url
This commit is contained in:
@@ -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):
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user