Skip to content
This repository was archived by the owner on Jan 25, 2024. It is now read-only.

Commit

Permalink
Code refactored
Browse files Browse the repository at this point in the history
  • Loading branch information
sab-LC committed Oct 18, 2023
1 parent 4e4db8e commit cdda7b4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
11 changes: 5 additions & 6 deletions templates/partials/infocards/_institution-card.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
</div>
{% endif %}
{% endif %}

{% if '/dashboard/' in request.path %}
<a
{% if institution_projects %}
Expand All @@ -53,13 +54,11 @@
href="{% url 'institution-notices' institution.id %}"
>View account</a>
{% endif %}

{% else %}
<a
class="primary-btn action-btn"
href="{% url 'institution-notices' institution.id %}"
>View account</a>
>View account</a>
<a
class="primary-btn action-btn"
href="{% url 'institution-notices' institution.id %}"
>View account</a>
{% endif %}
{% endif %}
</div>
Expand Down
9 changes: 5 additions & 4 deletions templates/partials/infocards/_researcher-card.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,18 @@
</div>
{% endif %}
{% endif %}

{% if '/dashboard/' in request.path %}
{% if researcher.get_projects %}
<a
class="primary-btn action-btn"
href="{% url 'researcher-projects' researcher.id %}"
>View account</a>
{% else %}
<a
class="primary-btn action-btn"
href="{% url 'researcher-notices' researcher.id %}"
>View account</a>
<a
class="primary-btn action-btn"
href="{% url 'researcher-notices' researcher.id %}"
>View account</a>
{% endif %}
{% endif %}
</div>
Expand Down

0 comments on commit cdda7b4

Please sign in to comment.