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 |
217a39 |
{% if '/fork/' in request.url %}
|
|
Pierre-Yves Chibon |
217a39 |
|
|
Mathieu Bridon |
4c73b0 |
repo=repo.name, identifier=branchname) }}">
|
|
Pierre-Yves Chibon |
217a39 |
{% else %}
|
|
Pierre-Yves Chibon |
217a39 |
|
|
Mathieu Bridon |
4c73b0 |
repo=repo.name, identifier=branchname) }}">
|
|
Pierre-Yves Chibon |
217a39 |
{% endif %}
|
|
Pierre-Yves Chibon |
724de9 |
{{ 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 |
724de9 |
{% if loop.index != loop.length %}
|
|
Pierre-Yves Chibon |
217a39 |
{% if '/fork/' in request.url
|
|
Pierre-Yves Chibon |
217a39 |
%}
|
|
Mathieu Bridon |
4c73b0 |
repo=repo.name, identifier=branchname,
|
|
Pierre-Yves Chibon |
a940c2 |
filename=path)}}"
|
|
Pierre-Yves Chibon |
217a39 |
>{{ file }}/
|
|
Pierre-Yves Chibon |
217a39 |
{%
|
|
Pierre-Yves Chibon |
217a39 |
else %}
|
|
Mathieu Bridon |
4c73b0 |
repo=repo.name, identifier=branchname,
|
|
Pierre-Yves Chibon |
217a39 |
filename=path)}}"
|
|
Pierre-Yves Chibon |
217a39 |
>{{ file }}/{% endif %}{%
|
|
Pierre-Yves Chibon |
724de9 |
else %}
|
|
Pierre-Yves Chibon |
724de9 |
{{ file }}
|
|
Pierre-Yves Chibon |
724de9 |
{% 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 |
217a39 |
{% if '/fork/' in request.url %}
|
|
Pierre-Yves Chibon |
217a39 |
|
|
Mathieu Bridon |
4c73b0 |
repo=repo.name, identifier=branchname,
|
|
Pierre-Yves Chibon |
217a39 |
filename=filename + '/' + entry.name if filename else entry.name) }}">
|
|
Pierre-Yves Chibon |
217a39 |
{% else %}
|
|
Pierre-Yves Chibon |
2088eb |
|
|
Mathieu Bridon |
4c73b0 |
repo=repo.name,
|
|
Pierre-Yves Chibon |
2088eb |
identifier=branchname,
|
|
Pierre-Yves Chibon |
12e862 |
filename=filename + '/' + entry.name if filename else entry.name) }}">
|
|
Pierre-Yves Chibon |
217a39 |
{% endif %}
|
|
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 %}
|