Skip to content

Commit

Permalink
Merge pull request #4360 from gitcoinco/kevin/top_nav
Browse files Browse the repository at this point in the history
Add User Directory to Top Nav
  • Loading branch information
thelostone-mc authored May 6, 2019
2 parents 9b6cdc5 + e5525f1 commit 49fc65f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
1 change: 1 addition & 0 deletions app/assets/v2/css/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ a {
font-size: 0.9rem;
padding-left: 1rem;
text-align: left;
margin-top: 5px;
}

.navbar-nav .dropdown-menu {
Expand Down
16 changes: 14 additions & 2 deletions app/retail/templates/shared/nav.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,19 @@
{% if request.path == '/bounties/funder' %}
<span class="navbar__cta mr-2">{% trans "Want to get help on your repo? Easily get started!" %}</span>
{% endif %}

<div class="nav-item dropdown interior">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdownHow" role="button"
data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
{% trans "Explore" %}
</a>
<div class="dropdown-menu dropdown-menu-right" id="explore-tab" aria-labelledby="navbarDropdownHow">
<a class="dropdown-item{% if active == 'dashboard' %} selected{% endif %} interior" href="{% url "explorer" %}">{% trans "Bounties" %}</a>
<a class="dropdown-item{% if active == 'users_directory' %} selected{% endif %} interior" href="{% url "users_directory" %}">{% trans "Users" %}</a>
<a class="dropdown-item{% if active == 'leaderboard' %} selected{% endif %} interior" href="{% url "_leaderboard" %}">{% trans "Leaderboard" %}</a>
</div>
</div>

<div class="nav-item dropdown interior">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdownHow" role="button"
data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Expand All @@ -61,8 +74,7 @@
</a>
</div>
</div>
<a class="nav-link{% if active == 'dashboard' %} selected{% endif %} interior" href="{% url "explorer" %}">{% trans "Issue Explorer" %}</a>
<a class="nav-link{% if active == 'leaderboard' %} selected{% endif %} interior" href="{% url "_leaderboard" %}">{% trans "Leaderboard" %}</a>

{% if not user.is_authenticated %}
<a class="nav-link slack{% if active == 'slack' %} selected{% endif %}" href="{% url "slack" %}">
<i class="fab fa-slack-hash" aria-hidden="true"></i><span class="nav-link__text">Slack ({{num_slack}})</span>
Expand Down

0 comments on commit 49fc65f

Please sign in to comment.