{% extends "repo_master.html" %} {% block title %}{{ select.capitalize() }} - {{ repo.namespace + '/' if repo.namespace }}{{ repo.name }}{% endblock %} {% set tag = "home" %} {% if g.repo_watch_levels == ['issues', 'commits'] %} {% set watch_button_title = 'You are watching issues, PRs, and commits on this project' %} {% set watch_button_text = 'Unwatch' %} {% elif g.repo_watch_levels == ['issues'] %} {% set watch_button_title = 'You are watching issues on this project' %} {% set watch_button_text = 'Unwatch' %} {% elif g.repo_watch_levels == ['commits'] %} {% set watch_button_title = 'You are watching commits on this project' %} {% set watch_button_text = 'Unwatch' %} {% else %} {% set watch_button_title = 'You are not watching this project' %} {% set watch_button_text = 'Watch' %} {% endif %} {% block header %} {% endblock %} {% block repo %}
{% block overviewtabs %}{{ super() }}{% endblock %}
{% if repo.is_fork -%} {% elif repo.avatar_email %} {% endif %}

{% if repo.is_fork -%} {{ repo.user.user }} /  {%- endif -%} {%- if repo.namespace -%} {{ repo.namespace }} /  {%- endif -%}{{ repo.name }} {% if repo.private %} {% endif %}

{% if repo.is_fork and repo.parent %} Forked from {{ repo.parent.fullname }} {{repo.date_created|humanize_tooltip | safe}} {% elif repo.is_fork and not repo.parent %} Forked from a deleted repository {{repo.date_created|humanize_tooltip | safe}} {% endif %} {% if not repo.is_fork %}
Created {{repo.date_created|humanize_tooltip | safe}}
{% endif %}
{% if repo.description %}{{ repo.description | noJS | safe }}{% else %}-{% endif -%} {%- if repo.url %}  |  {{ repo.url }}{% endif %}
{% if g.authenticated and not g.repo_starred %}
{{ g.forkbuttonform.csrf_token }}
Star
{{ repo.stargazers|length }} {% elif g.authenticated and g.repo_starred %}
{{ g.forkbuttonform.csrf_token }}
Unstar
{{repo.stargazers|length}} {% else %} Star {{repo.stargazers|length}} {% endif %}
Members {# the +1 here is for the main admin that is not listed in repo.contributors #} {% set memberstotal = repo.contributors['admin']|length + repo.contributors['commit']|length + repo.contributors['ticket']|length + repo.contributor_groups['admin']|length + repo.contributor_groups['commit']|length + repo.contributor_groups['ticket']|length + 1 %} {{ memberstotal }}
{% if last_commits %} {% set commit = last_commits[0] %}
{{ commit.author | author2avatar(20) | safe }} {{commit.author.name}} committed {{ commit.commit_time|humanize_tooltip | safe }}
{% endif %}
{% if g.repo_obj and (g.repo_obj.is_empty or g.repo_obj.head_is_unborn) and repo.mirrored_from %} {% elif g.repo_obj and (g.repo_obj.is_empty or g.repo_obj.head_is_unborn) %} {% else %} {% if readme %}
{{ readme | noJS | safe }}
{% else %}
The {{repo.name}} project's README file is empty or unavailable.
{% endif %} {% endif %}
{% endblock %} {% block jscripts %} {{ super() }} {% endblock %}