Skip to content

Commit 50f08b1

Browse files
authored
Ensure "coversations" tab is always last tab (#4465)
For visual consistency. Also, fix "Project" tab link on project detail page
1 parent 6acda74 commit 50f08b1

File tree

3 files changed

+22
-20
lines changed

3 files changed

+22
-20
lines changed

hypha/apply/funds/templates/funds/applicationsubmission_detail.html

+8-7
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,6 @@
2525
{% trans "Application" %}
2626
</a>
2727

28-
<a
29-
class="tab__item"
30-
href="{% url 'funds:submissions:comments' pk=object.id %}"
31-
>
32-
{% trans "Conversations" %} ({{ comments_count }})
33-
</a>
34-
3528
{% if PROJECTS_ENABLED and object.project %}
3629
<a
3730
class="tab__item"
@@ -40,6 +33,14 @@
4033
{% trans "Project" %}
4134
</a>
4235
{% endif %}
36+
37+
<a
38+
class="tab__item"
39+
href="{% url 'funds:submissions:comments' pk=object.id %}"
40+
>
41+
{% trans "Conversation" %} ({{ comments_count }})
42+
</a>
43+
4344
{# is_staff is only used for Django Admin. #}
4445
{% if request.user.is_staff %}
4546
<a class="tab__item tab__item--right js-tabs-off" href="{% url 'admin:activity_event_changelist' %}?submission__id={{ object.id }}">

hypha/apply/funds/templates/funds/comments.html

+7-7
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,6 @@
2121
{% trans "Application" %}
2222
</a>
2323

24-
<a class="tab__item tab__item--active"
25-
href="{% url 'funds:submissions:comments' pk=object.id %}"
26-
data-tab="tab-2"
27-
>
28-
{% trans "Conversations" %} ({{ comments_count }})
29-
</a>
30-
3124
{% if object.project and PROJECTS_ENABLED %}
3225
<a class="tab__item"
3326
href="{% url 'apply:projects:detail' pk=object.id %}"
@@ -36,6 +29,13 @@
3629
</a>
3730
{% endif %}
3831

32+
<a class="tab__item tab__item--active"
33+
href="{% url 'funds:submissions:comments' pk=object.id %}"
34+
data-tab="tab-2"
35+
>
36+
{% trans "Conversation" %} ({{ comments_count }})
37+
</a>
38+
3939
{# is_staff is only used for Django Admin. #}
4040
{% if request.user.is_staff %}
4141
<a

hypha/apply/projects/templates/application_projects/project_detail.html

+7-6
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,19 @@
2323
</a>
2424

2525
<a
26-
class="tab__item"
27-
href="{% url 'funds:submissions:comments' pk=object.submission.id %}"
26+
class="tab__item tab__item--active"
27+
href="{% url 'apply:projects:detail' pk=object.submission.id %}"
2828
>
29-
{% trans "Conversations" %} ({{ comments_count }})
29+
{% trans "Project" %}
3030
</a>
3131

3232
<a
33-
class="tab__item tab__item--active"
34-
href="{% url 'apply:projects:detail' pk=object.id %}"
33+
class="tab__item"
34+
href="{% url 'funds:submissions:comments' pk=object.submission.id %}"
3535
>
36-
{% trans "Project" %}
36+
{% trans "Conversation" %} ({{ comments_count }})
3737
</a>
38+
3839
</div>
3940
</div>
4041
</div>

0 commit comments

Comments
 (0)