{% macro render_row(items) -%} {% for repo in items %} {% set url = url_for('view_repo', username=repo.user.username if repo.is_fork else None, repo=repo.name, namespace=repo.namespace) %}
{% if repo.avatar_email %} {% else %}
{% endif %}
{{ repo.namespace + '/' if repo.namespace }}{{ repo.name }}
{% if repo.description %}{{ repo.description }}{% else %} no description{% endif %}
{% else %}

No projects found

{% endfor %} {%- endmacro %} {% macro pagination_link(pagetitle, page, total) -%} {% set prev_page = request.url | combine_url( page=page-1, pagetitle=pagetitle, **kwargs) %} {% set next_page = request.url | combine_url( page=page+1, pagetitle=pagetitle, **kwargs) %} {%- endmacro %} {% macro render_repos( list, total, pagetitle, page, title, count, id, username=None, hide=True, sorting=None) %}

{{ title }} {{ count }} {%- if username -%} {%- endif -%}

{% if total and total > 1 %} {{ pagination_link(pagetitle, page, total, sorting=sorting) }} {% endif %}
{{ render_row(list) }}
{% if total and total > 1 %} {{ pagination_link(pagetitle, page, total, sorting=sorting) }} {% endif %}
{% endmacro %} {% macro render_user_repos( list, total, pagetitle, page, title, count, id, username=None, hide=True) %}
{{ title }} {{ count }}
{% if total and total > 1 %} {{ pagination_link(pagetitle, page, total) }} {% endif %}
{% for repo in list %}
{{ repo.namespace + '/' if repo.namespace }}{{ repo.name }}
{% else %}

No projects found

{% endfor %}
{% if total and total > 1 %} {{ pagination_link(pagetitle, page, total) }} {% endif %}
{% endmacro %} {% macro repos_switch(all=True, hide=True) %} {% endmacro %} {% macro render_repos_as_card(list, total, name, pagetitle, page, total_page) %} {% if total_page and total_page > 1 %} {{ pagination_link(pagetitle, page, total_page) }} {% endif %}
{{name}} {{total}}
{% if list %}
{% for repo in list %}
{% set url = url_for('view_repo', repo=repo.name, username=repo.user.username if repo.is_fork else None, namespace=repo.namespace) %} {% if repo.avatar_email %} {% else %}
{% endif %}
{{ repo.namespace + '/' if repo.namespace }}{{ repo.name }}
{% if repo.description %}{{ repo.description }}{% else %}no description{% endif %}
{% endfor %}
{% else %}

No projects found

{% endif %}
{% if total_page and total_page > 1 %} {{ pagination_link(pagetitle, page, total_page) }} {% endif %} {% endmacro %} {% macro render_contributions_graph(username) %} {% if config.get('DATAGREPPER_URL') %}
Contributions View List
User activity graph
{% endif %} {% endmacro%}