Skip to content

Commit

Permalink
Fix project current status for applicant dashboard, mobile screen (#3824
Browse files Browse the repository at this point in the history
)

Fixes #3660
  • Loading branch information
sandeepsajan0 authored Mar 21, 2024
1 parent 239d2d2 commit 8009905
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% load dashboard_statusbar_tags %}
<div class="status-bar {{ class }}">
<div class="status-bar my-6 {{ class }}">
{% for status, text in statuses %}
{% if forloop.counter0 == current_status_index %}
{% include "funds/includes/status_bar_item.html" with is_current=True is_complete=False label=text %}
Expand All @@ -11,8 +11,8 @@
{% endfor %}
</div>

<div class="status-bar--mobile">
<h6 class="status-bar__subheading">
{{ object.get_status_display }}
</h6>
<div class="status-bar--mobile mt-5">
<div class="status-bar__subheading status-bar__text">
{{ current_status }}
</div>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

{% for project in page.object_list %}
<div class="wrapper wrapper--status-bar-outer">
<div class="wrapper wrapper--status-bar-inner">
<div class="mt-5 ms-4 lg:max-w-[30%]">
<div class="wrapper wrapper--status-bar-inner ms-4">
<div class="mt-5 lg:max-w-[30%]">
<h4 class="heading mb-0 font-bold line-clamp-3 hover:line-clamp-none"><a class="link" href="{% url 'apply:projects:detail' project.id %}">{{ project.title }}</a></h4>
<p class="m-0 text-fg-muted text-sm">{% trans "Project start date: " %} {{ project.created_at.date }}</p>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

{% for submission in page.object_list %}
<div class="wrapper wrapper--status-bar-outer">
<div class="wrapper wrapper--status-bar-inner">
<div class="mt-5 ms-4 lg:max-w-[30%]">
<div class="wrapper wrapper--status-bar-inner ms-4">
<div class="mt-5 lg:max-w-[30%]">
<h4 class="heading mb-0 font-bold line-clamp-3 hover:line-clamp-none"><a class="link {% if not submission.is_active %} text-gray-400 {% endif %}" href="{% url 'funds:submissions:detail' submission.id %}">{{ submission.title }}</a></h4>
<p class="m-0 text-fg-muted mb-4 text-sm">
{% if submission.is_draft %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@ def project_status_bar(current_status, user, author=False, css_class=""):
"current_status_index": [status for status, _ in PROJECT_STATUS_CHOICES].index(
current_status
),
"current_status": current_status,
"class": css_class,
}
2 changes: 1 addition & 1 deletion hypha/apply/funds/templates/funds/includes/status_bar.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
{% endifchanged %}
{% endfor %}
</div>
<div class="status-bar--mobile my-2">
<div class="status-bar--mobile mt-5">
<div class="status-bar__subheading status-bar__text">
{% if public %}
{{ current_phase.public_name }}
Expand Down

0 comments on commit 8009905

Please sign in to comment.