Fix up review nav

This commit is contained in:
Patrick Altman 2016-03-17 13:45:40 -05:00
parent 6789b25e69
commit 430d3dad99
7 changed files with 34 additions and 22 deletions

View file

@ -1 +1 @@
<link href='/site_media/static/css/site-1ea4a7c4e1.css' rel='stylesheet' /> <link href='/site_media/static/css/site-eb9a4a34f0.css' rel='stylesheet' />

View file

@ -54,16 +54,15 @@
<div class="row"> <div class="row">
<div class="col-md-2"> <div class="col-md-2">
{% block sidebar %} {% block sidebar %}
<ul class="nav nav-list well"> {% for section in review_sections %}
{% for section in review_sections %} <div class="panel panel-default">
<li class="nav-header"> <div class="panel-heading">
{{ section }} <h3 class="panel-title">{{ section }}</h3>
</li> </div>
<li> <div class="list-group">
<a href="{% url "review_section" section.section.slug %}"> <a class="list-group-item review-list" href="{% url "review_section" section.section.slug %}">
{% trans "All Reviews" %} {% trans "All Reviews" %}
</a> </a>
</li>
{% comment %} {% comment %}
<li> <li>
<a href="{% url "review_section_assignments" section.section.slug %}"> <a href="{% url "review_section_assignments" section.section.slug %}">
@ -71,18 +70,14 @@
</a> </a>
</li> </li>
{% endcomment %} {% endcomment %}
<li> <a class="list-group-item voting-status" href="{% url "review_status" section.section.slug %}">
<a href="{% url "review_status" section.section.slug %}"> {% trans "Voting Status" %}
{% trans "Voting Status" %} </a>
</a>
</li>
{% if request.user.is_staff %} {% if request.user.is_staff %}
<li> <a class="list-group-item review-results" href="{% url "result_notification" section.section.slug 'accepted' %}">Result Notification</a>
<a href="{% url "result_notification" section.section.slug 'accepted' %}">Result Notification</a>
</li>
{% endif %} {% endif %}
{% endfor %} </div>
</ul> {% endfor %}
{% endblock %} {% endblock %}
</div> </div>
<div class="col-md-10"> <div class="col-md-10">

View file

@ -2,6 +2,9 @@
{% load i18n %} {% load i18n %}
{% block body_class %}{{ block.super }} review-results{% endblock %}
{% block extra_style %} {% block extra_style %}
<style type="text/css"> <style type="text/css">
.table-striped tbody tr.selected td { .table-striped tbody tr.selected td {

View file

@ -1,5 +1,8 @@
{% extends "symposion/reviews/base.html" %} {% extends "symposion/reviews/base.html" %}
{% block body_class %}{{ block.super }} review-list{% endblock %}
{% block body %} {% block body %}
<h3>{{ section }}</h3> <h3>{{ section }}</h3>
{% if reviewed == 'all_reviews' %} {% if reviewed == 'all_reviews' %}

View file

@ -1,5 +1,7 @@
{% extends "symposion/reviews/base.html" %} {% extends "symposion/reviews/base.html" %}
{% block body_class %}{{ block.super }} voting-status{% endblock %}
{% block body %} {% block body %}
<h1>Voting Status ({{ section_slug }})</h1> <h1>Voting Status ({{ section_slug }})</h1>

File diff suppressed because one or more lines are too long

View file

@ -27,3 +27,12 @@ p.login-signup {
margin: 2em 0; margin: 2em 0;
} }
} }
body.reviews.review-list .review-list,
body.reviews.voting-status .voting-status,
body.reviews.review-results .review-results {
z-index: 2; // Place active items above their siblings for proper border styling
color: @list-group-active-color;
background-color: @list-group-active-bg;
border-color: @list-group-active-border;
}