Skip to content

Commit

Permalink
moved project "Results" tab to end and made it stand out with a dark …
Browse files Browse the repository at this point in the history
…background

UAT #62
  • Loading branch information
jesteria committed Jan 28, 2021
1 parent 60a13ab commit f90c256
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 12 deletions.
14 changes: 14 additions & 0 deletions src/marketplace/static/css/dssgsolve.css
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,20 @@ body {
margin: -125px 0 0; /* negative fixed header height */
}

.nav-tabs .nav-link.nav-dark {
color: #fff;
background-color: #80a415;
border-top-left-radius: 0.25rem;
border-top-right-radius: 0.25rem;
}
.nav-tabs .nav-link.nav-dark:hover {
background-color: #5d770f;
}
.nav-tabs .nav-link.nav-dark.active {
color: #fff;
background-color: #5d770f;
}

.footer {
background-color: #ABCF38;
color: white;
Expand Down
22 changes: 10 additions & 12 deletions src/marketplace/templates/marketplace/components/project_tabs.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@

{% load rules %}
<ul class="nav nav-tabs">

<ul class="nav nav-tabs">
<li class="nav-item">
{% if page_tab == 'info' %}
<span class="nav-link active">Information</span>
Expand All @@ -26,16 +25,6 @@
{% endif %}
</li>

{% if project.is_completed %}
<li class="nav-item">
{% if page_tab == 'deliverables' %}
<span class="nav-link active">Results</span>
{% else %}
<a class="nav-link" href="{% url 'marketplace:proj_deliverables' project.id %}">Results</a>
{% endif %}
</li>
{% endif %}

{% has_perm 'project.tasks_view' user project as perm_tasks_view %}
{% if perm_tasks_view %}
<li class="nav-item">
Expand Down Expand Up @@ -91,4 +80,13 @@
</li>
{% endif %}

{% if project.is_completed %}
<li class="nav-item">
{% if page_tab == 'deliverables' %}
<span class="nav-link nav-dark active">Results</span>
{% else %}
<a class="nav-link nav-dark" href="{% url 'marketplace:proj_deliverables' project.id %}">Results</a>
{% endif %}
</li>
{% endif %}
</ul>

0 comments on commit f90c256

Please sign in to comment.