|
1
|
<nav aria-label="Project sections" class="flex space-x-1 border-b border-gray-700 mb-6 overflow-x-auto scrollbar-hide"> |
|
2
|
<a href="{% url 'projects:detail' slug=project.slug %}" |
|
3
|
class="px-3 py-2.5 sm:px-4 sm:py-2 text-sm font-medium rounded-t-md whitespace-nowrap {% if active_tab == 'overview' %}bg-gray-800 text-gray-100 border-b-2 border-brand{% else %}text-gray-400 hover:text-gray-200 hover:bg-gray-800/50 transition-colors{% endif %}"> |
|
4
|
Overview |
|
5
|
</a> |
|
6
|
<a href="{% url 'fossil:code' slug=project.slug %}" |
|
7
|
class="px-3 py-2.5 sm:px-4 sm:py-2 text-sm font-medium rounded-t-md whitespace-nowrap {% if active_tab == 'code' %}bg-gray-800 text-gray-100 border-b-2 border-brand{% else %}text-gray-400 hover:text-gray-200 hover:bg-gray-800/50 transition-colors{% endif %}"> |
|
8
|
Code |
|
9
|
</a> |
|
10
|
<a href="{% url 'fossil:branches' slug=project.slug %}" |
|
11
|
class="px-3 py-2.5 sm:px-4 sm:py-2 text-sm font-medium rounded-t-md whitespace-nowrap {% if active_tab == 'branches' %}bg-gray-800 text-gray-100 border-b-2 border-brand{% else %}text-gray-400 hover:text-gray-200 hover:bg-gray-800/50 transition-colors{% endif %}"> |
|
12
|
Branches |
|
13
|
</a> |
|
14
|
<a href="{% url 'fossil:timeline' slug=project.slug %}" |
|
15
|
class="px-3 py-2.5 sm:px-4 sm:py-2 text-sm font-medium rounded-t-md whitespace-nowrap {% if active_tab == 'timeline' %}bg-gray-800 text-gray-100 border-b-2 border-brand{% else %}text-gray-400 hover:text-gray-200 hover:bg-gray-800/50 transition-colors{% endif %}"> |
|
16
|
Timeline |
|
17
|
</a> |
|
18
|
<a href="{% url 'fossil:tickets' slug=project.slug %}" |
|
19
|
class="px-3 py-2.5 sm:px-4 sm:py-2 text-sm font-medium rounded-t-md whitespace-nowrap {% if active_tab == 'tickets' %}bg-gray-800 text-gray-100 border-b-2 border-brand{% else %}text-gray-400 hover:text-gray-200 hover:bg-gray-800/50 transition-colors{% endif %}"> |
|
20
|
Tickets |
|
21
|
</a> |
|
22
|
<a href="{% url 'fossil:wiki' slug=project.slug %}" |
|
23
|
class="px-3 py-2.5 sm:px-4 sm:py-2 text-sm font-medium rounded-t-md whitespace-nowrap {% if active_tab == 'wiki' %}bg-gray-800 text-gray-100 border-b-2 border-brand{% else %}text-gray-400 hover:text-gray-200 hover:bg-gray-800/50 transition-colors{% endif %}"> |
|
24
|
Wiki |
|
25
|
</a> |
|
26
|
<a href="{% url 'fossil:forum' slug=project.slug %}" |
|
27
|
class="px-3 py-2.5 sm:px-4 sm:py-2 text-sm font-medium rounded-t-md whitespace-nowrap {% if active_tab == 'forum' %}bg-gray-800 text-gray-100 border-b-2 border-brand{% else %}text-gray-400 hover:text-gray-200 hover:bg-gray-800/50 transition-colors{% endif %}"> |
|
28
|
Forum |
|
29
|
</a> |
|
30
|
{% if feature_chat %} |
|
31
|
<a href="{% url 'fossil:chat' slug=project.slug %}" |
|
32
|
class="px-3 py-2.5 sm:px-4 sm:py-2 text-sm font-medium rounded-t-md whitespace-nowrap {% if active_tab == 'chat' %}bg-gray-800 text-gray-100 border-b-2 border-brand{% else %}text-gray-400 hover:text-gray-200 hover:bg-gray-800/50 transition-colors{% endif %}"> |
|
33
|
Chat |
|
34
|
</a> |
|
35
|
{% endif %} |
|
36
|
{% if feature_releases %} |
|
37
|
<a href="{% url 'fossil:releases' slug=project.slug %}" |
|
38
|
class="px-3 py-2.5 sm:px-4 sm:py-2 text-sm font-medium rounded-t-md whitespace-nowrap {% if active_tab == 'releases' %}bg-gray-800 text-gray-100 border-b-2 border-brand{% else %}text-gray-400 hover:text-gray-200 hover:bg-gray-800/50 transition-colors{% endif %}"> |
|
39
|
Releases |
|
40
|
</a> |
|
41
|
{% endif %} |
|
42
|
{% if feature_files %} |
|
43
|
<a href="{% url 'fossil:unversioned' slug=project.slug %}" |
|
44
|
class="px-3 py-2.5 sm:px-4 sm:py-2 text-sm font-medium rounded-t-md whitespace-nowrap {% if active_tab == 'files' %}bg-gray-800 text-gray-100 border-b-2 border-brand{% else %}text-gray-400 hover:text-gray-200 hover:bg-gray-800/50 transition-colors{% endif %}"> |
|
45
|
Files |
|
46
|
</a> |
|
47
|
{% endif %} |
|
48
|
{% if perms.projects.change_project %} |
|
49
|
{% if feature_sync %} |
|
50
|
<a href="{% url 'fossil:sync' slug=project.slug %}" |
|
51
|
class="px-3 py-2.5 sm:px-4 sm:py-2 text-sm font-medium rounded-t-md whitespace-nowrap {% if active_tab == 'sync' %}bg-gray-800 text-gray-100 border-b-2 border-brand{% else %}text-gray-400 hover:text-gray-200 hover:bg-gray-800/50 transition-colors{% endif %}"> |
|
52
|
{% if fossil_repo.remote_url %}Sync{% else %}Setup Sync{% endif %} |
|
53
|
</a> |
|
54
|
{% endif %} |
|
55
|
<a href="{% url 'fossil:repo_settings' slug=project.slug %}" |
|
56
|
class="px-3 py-2.5 sm:px-4 sm:py-2 text-sm font-medium rounded-t-md whitespace-nowrap {% if active_tab == 'settings' %}bg-gray-800 text-gray-100 border-b-2 border-brand{% else %}text-gray-400 hover:text-gray-200 hover:bg-gray-800/50 transition-colors{% endif %}"> |
|
57
|
Settings |
|
58
|
</a> |
|
59
|
<a href="{% url 'fossil:explorer' slug=project.slug %}" |
|
60
|
class="px-3 py-2.5 sm:px-4 sm:py-2 text-sm font-medium rounded-t-md whitespace-nowrap {% if active_tab == 'explorer' %}bg-gray-800 text-gray-100 border-b-2 border-brand{% else %}text-gray-400 hover:text-gray-200 hover:bg-gray-800/50 transition-colors{% endif %}"> |
|
61
|
Explorer |
|
62
|
</a> |
|
63
|
{% endif %} |
|
64
|
</nav> |
|
65
|
|