mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-07-10 15:38:35 +02:00
fix path url
This commit is contained in:
@@ -40,6 +40,7 @@ class Anonymous_Github:
|
|||||||
application = Flask(__name__)
|
application = Flask(__name__)
|
||||||
application.log = {}
|
application.log = {}
|
||||||
application.killurl = str(uuid.uuid4())
|
application.killurl = str(uuid.uuid4())
|
||||||
|
application.jinja_env.add_extension('jinja2.ext.do')
|
||||||
|
|
||||||
@application.template_filter('file_render', )
|
@application.template_filter('file_render', )
|
||||||
def file_render(file, terms):
|
def file_render(file, terms):
|
||||||
|
|||||||
+5
-4
@@ -16,11 +16,12 @@
|
|||||||
<div class="main">
|
<div class="main">
|
||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
<div class="paths">
|
<div class="paths">
|
||||||
{% set current_path = '/repository/' + current_repository %}
|
{% set current_path = [] %}
|
||||||
<span class="path"><a href="{{ current_path }}/">{{ name }}</a></span>
|
{% do current_path.append('/repository/' + current_repository) %}
|
||||||
|
<span class="path"><a href="{{ current_path|join("/") }}">{{ name }}</a></span>
|
||||||
{% for item in path %}
|
{% for item in path %}
|
||||||
{% set current_path = current_path + "/" + item %}
|
{% do current_path.append(item) %}
|
||||||
<span class="path"><a href="{{ current_path }}/">{{ item }}</a></span>
|
<span class="path"><a href="{{ current_path|join("/") }}">{{ item }}</a></span>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
<div class="files">
|
<div class="files">
|
||||||
|
|||||||
Reference in New Issue
Block a user