-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
/
project_bar_base.html
79 lines (65 loc) · 2.9 KB
/
project_bar_base.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
{% load i18n %}
{% load core_tags %}
{% load privacy_tags %}
{% load gravatar %}
<!-- BEGIN project bar -->
<div id="project_bar" class="project-bar">
<div class="wrapper">
{% if project.has_good_build %}
<div class="project-view-docs">
<a href="{{ project.get_docs_url }}">{% trans "View Docs" %}</a>
</div>
{% endif %}
<div class="project-title">
<h1>
<span class="project-breadcrumb quiet">
{% block project-breadcrumb %}
<a href="{% url "projects_dashboard" %}">{% trans "Projects" %}</a> >
{% endblock %}
</span>
<a href="{{ project.get_absolute_url }}">{{ project }}</a>
</h1>
</div>
<div class="options">
{% if not project.has_valid_webhook and request.user|is_admin:project %}
<p class="build-failure">
{% url "projects_integrations" project.slug as integrations_url %}
{% blocktrans %}
This repository doesn't have a valid webhook set up,
commits won't trigger new builds for this project.
{% endblocktrans %}
<br>
{% blocktrans %}
See <a href='{{ integrations_url }}'>your project integrations</a> for more information.
{% endblocktrans %}
</p>
{% endif %}
{% if project.skip %}
<p class="build-failure">
{% blocktrans %}
Your project is currently disabled for abuse of the system.
Please make sure it isn't using unreasonable amounts of resources or triggering lots of builds in a short amount of time.
Please <a href="https://github.com/rtfd/readthedocs.org/issues">file a ticket</a> to get your project re-enabled.
{% endblocktrans %}
</p>
<br>
{% endif %}
<ul>
<li class="{{ overview_active }}"><a href="{{ project.get_absolute_url }}">{% trans "Overview" %}</a></li>
<li class="{{ downloads_active }}"><a href="{% url "project_downloads" project.slug %}" rel="nofollow,noindex">{% trans "Downloads" %}</a></li>
<li class="{{ search_active }}"><a href="{% url "elastic_project_search" project.slug %}" rel="nofollow,noindex">{% trans "Search" %}</a></li>
<li class="{{ builds_active }}"><a href="{{ project.get_builds_url }}">{% trans "Builds" %}</a></li>
<li class="{{ versions_active }}"><a href="{% url "project_version_list" project.slug %}">{% trans "Versions" %}</a></li>
{% comment %}
{% if request.user.is_authenticated %}
<li class="{{ tools_active }}"><a href="{% url 'project_embed' project.slug %}">{% trans "Tools" %}</a></li>
{% endif %}
{% endcomment %}
{% if request.user|is_admin:project %}
<li class="{{ edit_active }} project-admin"><a href="{% url "projects_edit" project.slug %}"><i class="gear"></i>{% trans "Admin" %}</a></li>
{% endif %}
</ul>
</div>
</div>
</div>
<!-- END project bar -->