|
Pierre-Yves Chibon |
11e38e |
{% extends "repo_master.html" %}
|
|
Pierre-Yves Chibon |
2088eb |
|
|
Pierre-Yves Chibon |
1a7791 |
{% block title %}{{ select.capitalize() }} - {{ repo.name }}{% endblock %}
|
|
Pierre-Yves Chibon |
2088eb |
{%block tag %}home{% endblock %}
|
|
Pierre-Yves Chibon |
2088eb |
|
|
Pierre-Yves Chibon |
2088eb |
|
|
Pierre-Yves Chibon |
11e38e |
{% block repo %}
|
|
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 |
eeb47b |
git remote add origin {{ config.get('GIT_URL') }}:{% if repo.parent %}forks/{% endif %}{{ repo.fullname }}.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 |
eeb47b |
git clone {{ config.get('GIT_URL') }}:{% if repo.parent %}forks/{% endif %}{{ repo.fullname }}.git
|
|
Pierre-Yves Chibon |
c6b613 |
cd {{ repo.name }}
|
|
Pierre-Yves Chibon |
a6f71e |
touch README.rst
|
|
Pierre-Yves Chibon |
a6f71e |
git add README.rst
|
|
Pierre-Yves Chibon |
a6f71e |
git commit -m "Add README file"
|
|
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 |
|
|
Pierre-Yves Chibon |
ea8735 |
username=username, repo=repo.name, branchname=branch) }}">
|
|
Pierre-Yves Chibon |
a6f71e |
{{ branch }}
|
|
Pierre-Yves Chibon |
a6f71e |
|
|
Pierre-Yves Chibon |
ea8735 |
(
|
|
Pierre-Yves Chibon |
ea8735 |
repo=repo.name, branchname=branch) }}">logs)
|
|
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 |
|
|
Pierre-Yves Chibon |
b6a6ab |
repo=repo.name) }}?page={{page - 1}}">
|
|
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 |
|
|
Pierre-Yves Chibon |
b6a6ab |
repo=repo.name) }}?page={{page + 1}}">
|
|
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 |
168d31 |
{% if tree %}
|
|
Pierre-Yves Chibon |
168d31 |
<section class="tree_list"></section>
|
|
Pierre-Yves Chibon |
168d31 |
Current tree
|
|
Pierre-Yves Chibon |
168d31 |
|
|
Pierre-Yves Chibon |
168d31 |
{% for entry in tree %}
|
|
Pierre-Yves Chibon |
168d31 |
|
|
Pierre-Yves Chibon |
168d31 |
{% if entry.filemode == 16384 %}
|
|
Pierre-Yves Chibon |
168d31 |
[ ]
|
|
Pierre-Yves Chibon |
168d31 |
{% endif %}
|
|
Pierre-Yves Chibon |
ea8735 |
|
|
Pierre-Yves Chibon |
168d31 |
repo=repo.name, identifier=branchname, filename=entry.name) }}">
|
|
Pierre-Yves Chibon |
ea8735 |
{{ entry.name }}
|
|
Pierre-Yves Chibon |
ea8735 |
|
|
Pierre-Yves Chibon |
168d31 |
{{ entry.hex }}
|
|
Pierre-Yves Chibon |
168d31 |
{{ entry.id }}
|
|
Pierre-Yves Chibon |
168d31 |
|
|
Pierre-Yves Chibon |
168d31 |
{% endfor %}
|
|
Pierre-Yves Chibon |
168d31 |
|
|
Pierre-Yves Chibon |
168d31 |
|
|
Pierre-Yves Chibon |
168d31 |
{% endif %}
|
|
Pierre-Yves Chibon |
168d31 |
|
|
Pierre-Yves Chibon |
a6f71e |
<section class="commit_list"></section>
|
|
Pierre-Yves Chibon |
59cdee |
{% if origin == 'view_log' or origin == 'view_fork_log' %}
|
|
Pierre-Yves Chibon |
a6f71e |
Commits list
|
|
Pierre-Yves Chibon |
59cdee |
{% else %}
|
|
Pierre-Yves Chibon |
59cdee |
Last 10 commits
|
|
Pierre-Yves Chibon |
a6f71e |
{% endif %}
|
|
Pierre-Yves Chibon |
df2ed9 |
{% if diff_commits and authenticated %}
|
|
Pierre-Yves Chibon |
db3744 |
|
|
Pierre-Yves Chibon |
f3bc46 |
|
|
Pierre-Yves Chibon |
db3744 |
username=username, repo=repo.name) }}">Request pull
|
|
Pierre-Yves Chibon |
db3744 |
|
|
Pierre-Yves Chibon |
db3744 |
{% endif %}
|
|
Pierre-Yves Chibon |
a6f71e |
|
|
Pierre-Yves Chibon |
a6f71e |
{% for commit in last_commits %}
|
|
Pierre-Yves Chibon |
a6f71e |
|
|
Pierre-Yves Chibon |
ea8735 |
|
|
Pierre-Yves Chibon |
ea8735 |
repo=repo.name, commitid=commit.hex) }}">
|
|
Pierre-Yves Chibon |
ea8735 |
{{ commit.hex[:6] }}
|
|
Pierre-Yves Chibon |
dfb1f6 |
|
|
Pierre-Yves Chibon |
a6f71e |
{{ commit.message.split('\n')[0] }}
|
|
Pierre-Yves Chibon |
568e07 |
{% if diff_commits and commit.oid.hex in diff_commits %}
|
|
Pierre-Yves Chibon |
568e07 |
*
|
|
Pierre-Yves Chibon |
df2ed9 |
{% if authenticated %}
|
|
Pierre-Yves Chibon |
f3bc46 |
(
|
|
Pierre-Yves Chibon |
db3744 |
username=username, repo=repo.name, commitid=commit.oid.hex) }}"
|
|
Pierre-Yves Chibon |
db3744 |
>Request pull)
|
|
Pierre-Yves Chibon |
568e07 |
{% endif %}
|
|
Pierre-Yves Chibon |
df2ed9 |
{% endif %}
|
|
Pierre-Yves Chibon |
dfb1f6 |
|
|
Pierre-Yves Chibon |
dfb1f6 |
{% endfor %}
|
|
Pierre-Yves Chibon |
dfb1f6 |
|
|
Pierre-Yves Chibon |
dfb1f6 |
|
|
Pierre-Yves Chibon |
a6f71e |
|
|
Pierre-Yves Chibon |
cc7f0a |
{% if readme %}
|
|
Pierre-Yves Chibon |
168d31 |
<section class="readme"></section>
|
|
Pierre-Yves Chibon |
168d31 |
{{ readme }}
|
|
Pierre-Yves Chibon |
168d31 |
|
|
Pierre-Yves Chibon |
cc7f0a |
{% endif %}
|
|
Pierre-Yves Chibon |
a6f71e |
|
|
Pierre-Yves Chibon |
e9ba09 |
<section class="git_links"></section>
|
|
Pierre-Yves Chibon |
eeb47b |
git url: {{ config.get('GIT_URL') }}:{% if repo.parent %}forks/{% endif %}{{ repo.fullname }}.git
|
|
Pierre-Yves Chibon |
e9ba09 |
|
|
Pierre-Yves Chibon |
dfb1f6 |
{% endif %}
|
|
Pierre-Yves Chibon |
2088eb |
|
|
Pierre-Yves Chibon |
2088eb |
{% endblock %}
|