Skip to content

Commit

Permalink
Merge pull request #376 from localcontexts/sandbox-tweaks
Browse files Browse the repository at this point in the history
sandbox updates
  • Loading branch information
birbjam authored Oct 17, 2024
2 parents 66442a8 + 538c209 commit 9afe8ca
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 15 deletions.
2 changes: 1 addition & 1 deletion researchers/views.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from datetime import timezone
from django.utils import timezone
from django.shortcuts import render, redirect
from django.contrib.auth.decorators import login_required
from django.contrib import messages
Expand Down
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 9afe8ca

Please sign in to comment.