Blame progit/templates/file.html
|
Pierre-Yves Chibon |
0bf43e |
{% extends "repo_master.html" %}
|
|
Pierre-Yves Chibon |
2088eb |
|
|
Pierre-Yves Chibon |
1a7791 |
{% block title %}Tree - {{ repo.name }}{% endblock %}
|
|
Pierre-Yves Chibon |
2088eb |
{%block tag %}home{% endblock %}
|
|
Pierre-Yves Chibon |
2088eb |
|
|
Pierre-Yves Chibon |
2088eb |
|
|
Pierre-Yves Chibon |
0bf43e |
{% block repo %}
|
|
Pierre-Yves Chibon |
2088eb |
|
|
Pierre-Yves Chibon |
2088eb |
|
|
Pierre-Yves Chibon |
ea8735 |
|
|
Pierre-Yves Chibon |
ea8735 |
repo=repo.name, identifier=branchname)
|
|
Pierre-Yves Chibon |
ea8735 |
}}">{{ branchname }}/{%
|
|
Pierre-Yves Chibon |
724de9 |
for file in filename.split('/') %}
|
|
Pierre-Yves Chibon |
724de9 |
{% if loop.first %}
|
|
Pierre-Yves Chibon |
724de9 |
{% set path = file %}
|
|
Pierre-Yves Chibon |
724de9 |
{% else %}
|
|
Pierre-Yves Chibon |
724de9 |
{% set path = path + '/' + file %}
|
|
Pierre-Yves Chibon |
724de9 |
{% endif %}
|
|
Pierre-Yves Chibon |
ea8735 |
{% if loop.index != loop.length %}
|
|
Pierre-Yves Chibon |
ea8735 |
href="{{ url_for('view_file', username=username,
|
|
Mathieu Bridon |
4c73b0 |
repo=repo.name, identifier=branchname,
|
|
Pierre-Yves Chibon |
217a39 |
filename=path)}}"
|
|
Pierre-Yves Chibon |
ea8735 |
>{{ file }}/{% else %}{{ file }}{% endif %}
|
|
Pierre-Yves Chibon |
724de9 |
{% endfor %}
|
|
Pierre-Yves Chibon |
2088eb |
|
|
Pierre-Yves Chibon |
2088eb |
|
|
Pierre-Yves Chibon |
12e862 |
Tree
|
|
Pierre-Yves Chibon |
d72975 |
{% if content %}
|
|
Pierre-Yves Chibon |
2088eb |
<section class="repos_list"></section>
|
|
Pierre-Yves Chibon |
2088eb |
{% if output_type=='file' %}
|
|
Pierre-Yves Chibon |
2088eb |
{% autoescape false %}
|
|
Pierre-Yves Chibon |
2088eb |
{{ content }}
|
|
Pierre-Yves Chibon |
2088eb |
{% endautoescape %}
|
|
Pierre-Yves Chibon |
2088eb |
{% else %}
|
|
Pierre-Yves Chibon |
2088eb |
|
|
Pierre-Yves Chibon |
2088eb |
{% for entry in content %}
|
|
Pierre-Yves Chibon |
2088eb |
|
|
Pierre-Yves Chibon |
2088eb |
{% if entry.filemode == 16384 %}
|
|
Pierre-Yves Chibon |
2088eb |
[ ]
|
|
Pierre-Yves Chibon |
2088eb |
{% endif %}
|
|
Pierre-Yves Chibon |
ea8735 |
|
|
Mathieu Bridon |
4c73b0 |
repo=repo.name, identifier=branchname,
|
|
Pierre-Yves Chibon |
217a39 |
filename=filename + '/' + entry.name if filename else entry.name) }}">
|
|
Pierre-Yves Chibon |
2088eb |
{{ entry.name }}
|
|
Pierre-Yves Chibon |
2088eb |
|
|
Pierre-Yves Chibon |
2088eb |
{{ entry.hex }}
|
|
Pierre-Yves Chibon |
2088eb |
{{ entry.id }}
|
|
Pierre-Yves Chibon |
2088eb |
|
|
Pierre-Yves Chibon |
2088eb |
{% endfor %}
|
|
Pierre-Yves Chibon |
2088eb |
|
|
Pierre-Yves Chibon |
2088eb |
{% endif %}
|
|
Pierre-Yves Chibon |
2088eb |
|
|
Pierre-Yves Chibon |
d72975 |
{% else %}
|
|
Pierre-Yves Chibon |
d72975 |
No content found in this repository
|
|
Pierre-Yves Chibon |
d72975 |
{% endif %}
|
|
Pierre-Yves Chibon |
2088eb |
|
|
Pierre-Yves Chibon |
2088eb |
{% endblock %}
|