|
Pierre-Yves Chibon |
2088eb |
{% extends "master.html" %}
|
|
Pierre-Yves Chibon |
2088eb |
|
|
Mathieu Bridon |
998605 |
{% block title %}{{ repo.name }}{% endblock %}
|
|
Pierre-Yves Chibon |
2088eb |
{%block tag %}home{% endblock %}
|
|
Pierre-Yves Chibon |
2088eb |
|
|
Pierre-Yves Chibon |
2088eb |
|
|
Pierre-Yves Chibon |
2088eb |
{% block content %}
|
|
Pierre-Yves Chibon |
2088eb |
|
|
Pierre-Yves Chibon |
217a39 |
{% if '/fork/' in request.url %}
|
|
Mathieu Bridon |
998605 |
|
|
Pierre-Yves Chibon |
217a39 |
{% else %}
|
|
Mathieu Bridon |
998605 |
|
|
Pierre-Yves Chibon |
217a39 |
{% endif %}
|
|
Pierre-Yves Chibon |
24e239 |
{{ repo.fullname }}
|
|
Pierre-Yves Chibon |
2088eb |
|
|
Pierre-Yves Chibon |
dfb1f6 |
{% if branchname %} ({{ branchname }}) {% endif %}
|
|
Pierre-Yves Chibon |
2088eb |
|
|
Pierre-Yves Chibon |
2088eb |
|
|
Pierre-Yves Chibon |
2e28de |
{% if repo.fork %}
|
|
Pierre-Yves Chibon |
2e28de |
<section id="parent"></section>
|
|
Pierre-Yves Chibon |
b0d90a |
Forked from
|
|
Pierre-Yves Chibon |
b0d90a |
|
|
Pierre-Yves Chibon |
b0d90a |
{{ repo.parent.name }}
|
|
Pierre-Yves Chibon |
2e28de |
|
|
Pierre-Yves Chibon |
2e28de |
{% endif %}
|
|
Pierre-Yves Chibon |
2e28de |
|
|
Pierre-Yves Chibon |
0182e8 |
<section id="fork_repo"></section>
|
|
Pierre-Yves Chibon |
0182e8 |
Fork project
|
|
Pierre-Yves Chibon |
0182e8 |
|
|
Pierre-Yves Chibon |
0182e8 |
|
|
Pierre-Yves Chibon |
a6f71e |
{% if repo_obj and repo_obj.is_empty %}
|
|
Pierre-Yves Chibon |
dfb1f6 |
|
|
Pierre-Yves Chibon |
a6f71e |
<section class="repo_info"></section>
|
|
Pierre-Yves Chibon |
a6f71e |
This repo is brand new!
|
|
Pierre-Yves Chibon |
217a39 |
|
|
Pierre-Yves Chibon |
a6f71e |
If you already have a git repo:
|
|
Pierre-Yves Chibon |
a6f71e |
|
|
Pierre-Yves Chibon |
a6f71e |
git remote add origin https://githosted.org/{{ repo.name }}.git
|
|
Pierre-Yves Chibon |
a6f71e |
git push -u origin master
|
|
Pierre-Yves Chibon |
a6f71e |
|
|
Pierre-Yves Chibon |
dfb1f6 |
|
|
Pierre-Yves Chibon |
a6f71e |
If you have no create your git repo yet:
|
|
Pierre-Yves Chibon |
a6f71e |
|
|
Pierre-Yves Chibon |
a6f71e |
touch README.rst
|
|
Pierre-Yves Chibon |
a6f71e |
git init
|
|
Pierre-Yves Chibon |
a6f71e |
git add README.rst
|
|
Pierre-Yves Chibon |
a6f71e |
git commit -m "Add README file"
|
|
Pierre-Yves Chibon |
a6f71e |
git remote add origin https://githosted.org/{{ repo.name }}.git
|
|
Pierre-Yves Chibon |
a6f71e |
git push -u origin master
|
|
Pierre-Yves Chibon |
a6f71e |
|
|
Pierre-Yves Chibon |
a6f71e |
|
|
Pierre-Yves Chibon |
a6f71e |
|
|
Pierre-Yves Chibon |
a6f71e |
|
|
Pierre-Yves Chibon |
a6f71e |
{% else %}
|
|
Pierre-Yves Chibon |
a6f71e |
<section class="branch_list"></section>
|
|
Pierre-Yves Chibon |
a6f71e |
Branches
|
|
Pierre-Yves Chibon |
a6f71e |
|
|
Pierre-Yves Chibon |
a6f71e |
{% for branch in branches %}
|
|
Pierre-Yves Chibon |
a6f71e |
|
|
Pierre-Yves Chibon |
a6f71e |
{% if '/fork/' in request.url %}
|
|
Pierre-Yves Chibon |
a6f71e |
|
|
Pierre-Yves Chibon |
a6f71e |
username=username, repo=repo.name, branchname=branch) }}">
|
|
Pierre-Yves Chibon |
2088eb |
{% else %}
|
|
Pierre-Yves Chibon |
a6f71e |
|
|
Pierre-Yves Chibon |
a6f71e |
repo=repo.name, branchname=branch) }}">
|
|
Pierre-Yves Chibon |
a6f71e |
{% endif %}
|
|
Pierre-Yves Chibon |
a6f71e |
{{ branch }}
|
|
Pierre-Yves Chibon |
a6f71e |
|
|
Pierre-Yves Chibon |
a6f71e |
{% if '/fork/' in request.url %}
|
|
Pierre-Yves Chibon |
a6f71e |
(
|
|
Pierre-Yves Chibon |
a6f71e |
repo=repo.name, branchname=branch) }}">logs)
|
|
Pierre-Yves Chibon |
a6f71e |
{% else %}
|
|
Pierre-Yves Chibon |
a6f71e |
(
|
|
Pierre-Yves Chibon |
a6f71e |
repo=repo.name, branchname=branch) }}">logs)
|
|
Pierre-Yves Chibon |
a6f71e |
{% endif %}
|
|
Pierre-Yves Chibon |
a6f71e |
|
|
Pierre-Yves Chibon |
a6f71e |
|
|
Pierre-Yves Chibon |
a6f71e |
{% endfor %}
|
|
Pierre-Yves Chibon |
a6f71e |
|
|
Pierre-Yves Chibon |
a6f71e |
|
|
Pierre-Yves Chibon |
a6f71e |
|
|
Pierre-Yves Chibon |
a6f71e |
{% if total_page %}
|
|
Pierre-Yves Chibon |
a6f71e |
|
|
Pierre-Yves Chibon |
a6f71e |
|
|
Pierre-Yves Chibon |
a6f71e |
|
|
Pierre-Yves Chibon |
a6f71e |
{% if page > 1%}
|
|
Pierre-Yves Chibon |
b6a6ab |
{% if '/fork/' in request.url %}
|
|
Pierre-Yves Chibon |
b6a6ab |
|
|
Pierre-Yves Chibon |
b6a6ab |
repo=repo.name) }}?page={{page - 1}}">
|
|
Pierre-Yves Chibon |
b6a6ab |
{% else %}
|
|
Pierre-Yves Chibon |
b6a6ab |
|
|
Pierre-Yves Chibon |
a6f71e |
repo=repo.name) }}?page={{page - 1}}">
|
|
Pierre-Yves Chibon |
b6a6ab |
{% endif %}
|
|
Pierre-Yves Chibon |
2088eb |
< Previous
|
|
Pierre-Yves Chibon |
a6f71e |
|
|
Pierre-Yves Chibon |
a6f71e |
{% else %}
|
|
Pierre-Yves Chibon |
a6f71e |
< Previous
|
|
Pierre-Yves Chibon |
a6f71e |
{% endif %}
|
|
Pierre-Yves Chibon |
a6f71e |
|
|
Pierre-Yves Chibon |
a6f71e |
{{ page }} / {{ total_page }}
|
|
Pierre-Yves Chibon |
a6f71e |
|
|
Pierre-Yves Chibon |
a6f71e |
{% if page < total_page %}
|
|
Pierre-Yves Chibon |
b6a6ab |
{% if '/fork/' in request.url %}
|
|
Pierre-Yves Chibon |
b6a6ab |
|
|
Pierre-Yves Chibon |
b6a6ab |
repo=repo.name) }}?page={{page + 1}}">
|
|
Pierre-Yves Chibon |
b6a6ab |
{% else %}
|
|
Pierre-Yves Chibon |
b6a6ab |
|
|
Pierre-Yves Chibon |
a6f71e |
repo=repo.name) }}?page={{page + 1}}">
|
|
Pierre-Yves Chibon |
b6a6ab |
{% endif %}
|
|
Pierre-Yves Chibon |
a6f71e |
Next >
|
|
Pierre-Yves Chibon |
a6f71e |
|
|
Pierre-Yves Chibon |
a6f71e |
{% else %}
|
|
Pierre-Yves Chibon |
a6f71e |
Next >
|
|
Pierre-Yves Chibon |
2088eb |
{% endif %}
|
|
Pierre-Yves Chibon |
a6f71e |
|
|
Pierre-Yves Chibon |
2088eb |
|
|
Pierre-Yves Chibon |
a6f71e |
|
|
Pierre-Yves Chibon |
dfb1f6 |
{% endif %}
|
|
Pierre-Yves Chibon |
a6f71e |
|
|
Pierre-Yves Chibon |
a6f71e |
<section class="commit_list"></section>
|
|
Pierre-Yves Chibon |
a6f71e |
{% if origin != 'view_log' %}
|
|
Pierre-Yves Chibon |
a6f71e |
Last 10 commits
|
|
Pierre-Yves Chibon |
a6f71e |
{% else %}
|
|
Pierre-Yves Chibon |
a6f71e |
Commits list
|
|
Pierre-Yves Chibon |
a6f71e |
{% endif %}
|
|
Pierre-Yves Chibon |
a6f71e |
|
|
Pierre-Yves Chibon |
a6f71e |
{% for commit in last_commits %}
|
|
Pierre-Yves Chibon |
a6f71e |
|
|
Pierre-Yves Chibon |
217a39 |
{% if '/fork/' in request.url %}
|
|
Pierre-Yves Chibon |
217a39 |
|
|
Mathieu Bridon |
998605 |
repo=repo.name, commitid=commit.hex) }}">
|
|
Pierre-Yves Chibon |
217a39 |
{% else %}
|
|
Pierre-Yves Chibon |
217a39 |
|
|
Mathieu Bridon |
998605 |
repo=repo.name, commitid=commit.hex) }}">
|
|
Pierre-Yves Chibon |
217a39 |
{% endif %}
|
|
Pierre-Yves Chibon |
217a39 |
|
|
Pierre-Yves Chibon |
2088eb |
{{ commit.hex[:6] }}
|
|
Pierre-Yves Chibon |
dfb1f6 |
|
|
Pierre-Yves Chibon |
a6f71e |
{{ commit.message.split('\n')[0] }}
|
|
Pierre-Yves Chibon |
dfb1f6 |
|
|
Pierre-Yves Chibon |
dfb1f6 |
{% endfor %}
|
|
Pierre-Yves Chibon |
dfb1f6 |
|
|
Pierre-Yves Chibon |
dfb1f6 |
|
|
Pierre-Yves Chibon |
a6f71e |
|
|
Pierre-Yves Chibon |
a6f71e |
{% if tree %}
|
|
Pierre-Yves Chibon |
a6f71e |
<section class="tree_list"></section>
|
|
Pierre-Yves Chibon |
a6f71e |
Current tree
|
|
Pierre-Yves Chibon |
a6f71e |
|
|
Pierre-Yves Chibon |
a6f71e |
{% for entry in tree %}
|
|
Pierre-Yves Chibon |
a6f71e |
|
|
Pierre-Yves Chibon |
a6f71e |
{% if entry.filemode == 16384 %}
|
|
Pierre-Yves Chibon |
a6f71e |
[ ]
|
|
Pierre-Yves Chibon |
a6f71e |
{% endif %}
|
|
Pierre-Yves Chibon |
a6f71e |
{% if '/fork/' in request.url %}
|
|
Pierre-Yves Chibon |
a6f71e |
|
|
Pierre-Yves Chibon |
a6f71e |
repo=repo.name, identifier=branchname, filename=entry.name) }}">
|
|
Pierre-Yves Chibon |
a6f71e |
{% else %}
|
|
Pierre-Yves Chibon |
a6f71e |
|
|
Pierre-Yves Chibon |
a6f71e |
repo=repo.name, identifier=branchname, filename=entry.name) }}">
|
|
Pierre-Yves Chibon |
a6f71e |
{% endif %}
|
|
Pierre-Yves Chibon |
a6f71e |
{{ entry.name }}
|
|
Pierre-Yves Chibon |
a6f71e |
|
|
Pierre-Yves Chibon |
a6f71e |
{{ entry.hex }}
|
|
Pierre-Yves Chibon |
a6f71e |
{{ entry.id }}
|
|
Pierre-Yves Chibon |
a6f71e |
|
|
Pierre-Yves Chibon |
a6f71e |
{% endfor %}
|
|
Pierre-Yves Chibon |
a6f71e |
|
|
Pierre-Yves Chibon |
a6f71e |
|
|
Pierre-Yves Chibon |
a6f71e |
{% endif %}
|
|
Pierre-Yves Chibon |
a6f71e |
|
|
Pierre-Yves Chibon |
dfb1f6 |
{% endif %}
|
|
Pierre-Yves Chibon |
2088eb |
|
|
Pierre-Yves Chibon |
2088eb |
{% endblock %}
|