Skip to content

Commit

Permalink
sandbox updates
Browse files Browse the repository at this point in the history
  • Loading branch information
birbjam committed Oct 17, 2024
1 parent 6724500 commit 044c192
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 14 deletions.
18 changes: 10 additions & 8 deletions templates/account-settings-base.html
Original file line number Diff line number Diff line change
Expand Up @@ -73,15 +73,17 @@ <h2 class="mt-0">Account Settings</h2>
</a>
{% endif %}

{% if institution or researcher and envi != "SANDBOX" %}
<a class="side-nav-a" href="{% if institution %}{% url 'subscription' institution.id 'institution' %}{% else %}{% url 'subscription' researcher.id 'researcher' %}{% endif %}">
<div class="flex-this side-nav-item {% if 'subscription' in request.path %} selected {% else %} grey-text {% endif %}">
<div class="w-20 margin-right-8"><i class="fa fa-calendar-check-o fa-3x" aria-hidden="true"></i></div>
<div class="w-80">
<p class="mt-0"><strong>Subscription</strong><br>Subscription details and activity</p>
{% if institution or researcher %}
{% if envi != "SANDBOX" %}
<a class="side-nav-a" href="{% if institution %}{% url 'subscription' institution.id 'institution' %}{% else %}{% url 'subscription' researcher.id 'researcher' %}{% endif %}">
<div class="flex-this side-nav-item {% if 'subscription' in request.path %} selected {% else %} grey-text {% endif %}">
<div class="w-20 margin-right-8"><i class="fa fa-calendar-check-o fa-3x" aria-hidden="true"></i></div>
<div class="w-80">
<p class="mt-0"><strong>Subscription</strong><br>Subscription details and activity</p>
</div>
</div>
</div>
</a>
</a>
{% endif %}
{% endif %}

<!-- Manage API Keys -->
Expand Down
14 changes: 8 additions & 6 deletions templates/partials/headers/header-content.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,14 @@
<div class='menu-button'></div>
</label>
<ul class="menu ul-no-bullets">
<li>
<a
class="{% if '/subscription-inquiry/' in request.path %} active-link bold {% endif %} white-text upper"
href="{% url 'subscription-inquiry' %}"> Subscription
</a>
</li>
{% if not 'sandbox' in request.get_host %}
<li>
<a
class="{% if '/subscription-inquiry/' in request.path %} active-link bold {% endif %} white-text upper"
href="{% url 'subscription-inquiry' %}"> Subscription
</a>
</li>
{% endif %}
<li>
<a
class="{% if '/registry/' in request.path %} active-link bold {% endif %} white-text upper"
Expand Down

0 comments on commit 044c192

Please sign in to comment.