mirror of https://git.sr.ht/~sircmpwn/hub.sr.ht
61 lines
1.7 KiB
HTML
61 lines
1.7 KiB
HTML
<h2>
|
|
<a
|
|
href="{{url_for("users.user_summary_GET", username=owner.username)}}"
|
|
>{{owner.canonical_name}}</a>/{{project.name}}
|
|
</h2>
|
|
{% macro link(path, title, alternates, cls="") %}
|
|
<a
|
|
class="nav-link {% if view == title or view in alternates %}active{% endif %} {{cls}}"
|
|
href="{{ path }}">{{ title }}</a>
|
|
{% endmacro %}
|
|
<ul class="nav nav-tabs">
|
|
<li class="nav-item">
|
|
{{link(url_for("projects.summary_GET",
|
|
owner=owner.canonical_name,
|
|
project_name=project.name), "summary")}}
|
|
</li>
|
|
{% if project.website %}
|
|
<li class="nav-item">
|
|
<a
|
|
class="nav-link"
|
|
href="{{project.website}}"
|
|
rel="noopener nofollow"
|
|
>website {{icon('external-link-alt')}}</a>
|
|
</li>
|
|
{% endif %}
|
|
{% if any(project.source_repos) %}
|
|
<li class="nav-item">
|
|
{{link(url_for("sources.sources_GET",
|
|
owner=owner.canonical_name,
|
|
project_name=project.name), "sources")}}
|
|
</li>
|
|
{% endif %}
|
|
{% if any(project.mailing_lists) %}
|
|
<li class="nav-item">
|
|
{{link(url_for("mailing_lists.lists_GET",
|
|
owner=owner.canonical_name,
|
|
project_name=project.name), "mailing lists")}}
|
|
</li>
|
|
{% endif %}
|
|
{% if any(project.trackers) %}
|
|
<li class="nav-item">
|
|
{{link(url_for("trackers.trackers_GET",
|
|
owner=owner.canonical_name,
|
|
project_name=project.name), "tickets")}}
|
|
</li>
|
|
{% endif %}
|
|
{# TODO
|
|
<li class="nav-item">
|
|
{{link("#", "documentation")}}
|
|
</li>
|
|
#}
|
|
{% if current_user and current_user.id == owner.id %}
|
|
<li class="flex-grow-1"></li>
|
|
<li class="nav-item">
|
|
{{link(url_for("projects.config_GET",
|
|
owner=owner.canonical_name, project_name=project.name), "more +",
|
|
alternates=["add more"])}}
|
|
</li>
|
|
{% endif %}
|
|
</ul>
|