Blame progit/templates/index.html
|
Pierre-Yves Chibon |
2088eb |
{% extends "master.html" %}
|
|
Pierre-Yves Chibon |
2088eb |
|
|
Pierre-Yves Chibon |
2088eb |
{% block title %}Home{% endblock %}
|
|
Pierre-Yves Chibon |
2088eb |
{%block tag %}home{% endblock %}
|
|
Pierre-Yves Chibon |
2088eb |
|
|
Pierre-Yves Chibon |
2088eb |
|
|
Johan Cwiklinski |
ab027f |
{% block header %}
|
|
Johan Cwiklinski |
ab027f |
|
|
Johan Cwiklinski |
ab027f |
href="{{ url_for('static', filename='toggle.css') }}"/>
|
|
Johan Cwiklinski |
ab027f |
{% endblock %}
|
|
Johan Cwiklinski |
ab027f |
|
|
Johan Cwiklinski |
63918a |
{% from "render_repo.html" import render_repos %}
|
|
Johan Cwiklinski |
63918a |
{% from "render_repo.html" import repos_switch %}
|
|
Johan Cwiklinski |
b95406 |
|
|
Johan Cwiklinski |
b95406 |
{% block content %}
|
|
Johan Cwiklinski |
b95406 |
{% if username %}
|
|
Johan Cwiklinski |
63918a |
|
|
Johan Cwiklinski |
63918a |
{{ username | avatar(36) | safe }} {{ username }}
|
|
Johan Cwiklinski |
63918a |
{% if g.fas_user and g.fas_user.username == username %}
|
|
Pierre-Yves Chibon |
b3813a |
|
|
Pierre-Yves Chibon |
b3813a |
title="Update your settings">
|
|
Pierre-Yves Chibon |
b3813a |
Settings
|
|
Pierre-Yves Chibon |
b3813a |
|
|
Johan Cwiklinski |
63918a |
{% endif %}
|
|
Johan Cwiklinski |
63918a |
|
|
Johan Cwiklinski |
63918a |
{{ repos_switch() }}
|
|
Pierre-Yves Chibon |
b3813a |
{{ render_repos(
|
|
Pierre-Yves Chibon |
b3813a |
user_repos, total_page_repos, repopage,
|
|
Pierre-Yves Chibon |
b3813a |
'My Projects', user_repos_length, 'myrepos', username) }}
|
|
Pierre-Yves Chibon |
b3813a |
{{ render_repos(
|
|
Pierre-Yves Chibon |
b3813a |
user_forks, total_page_forks, forkpage,
|
|
Pierre-Yves Chibon |
b3813a |
'My Forks', user_forks_length, 'myforks', username) }}
|
|
Johan Cwiklinski |
ab027f |
{% endif %}
|
|
Pierre-Yves Chibon |
b3813a |
{{ render_repos(
|
|
Pierre-Yves Chibon |
b3813a |
repos, total_page, page,
|
|
Pierre-Yves Chibon |
b3813a |
'All Projects', repos_length, 'repos', username) }}
|
|
Johan Cwiklinski |
ab027f |
{% endblock %}
|
|
Johan Cwiklinski |
ab027f |
|
|
Johan Cwiklinski |
ab027f |
{% block jscripts %}
|
|
Johan Cwiklinski |
ab027f |
{{ super() }}
|
|
Johan Cwiklinski |
ab027f |
{% if username %}
|
|
Johan Cwiklinski |
ab027f |
<script type="text/javascript"></script>
|
|
Johan Cwiklinski |
ab027f |
$(function(){
|
|
Pierre-Yves Chibon |
dcf26d |
$('.show_parts input[type="checkbox"]').change(function(){
|
|
Johan Cwiklinski |
ab027f |
$('#' + $(this).attr('name')).toggle();
|
|
Johan Cwiklinski |
ab027f |
});
|
|
Johan Cwiklinski |
ab027f |
});
|
|
Johan Cwiklinski |
ab027f |
|
|
Johan Cwiklinski |
b95406 |
{% endif %}
|
|
Pierre-Yves Chibon |
2088eb |
{% endblock %}
|