Mercurial > public > sg101
changeset 1150:0e0cd152b86d
WIP convert downloads to V3 design.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Tue, 13 Dec 2016 20:20:24 -0600 |
parents | 23dd077358ec |
children | f56798c96ec2 |
files | downloads/views.py sg101/templates/downloads/index.html sg101/templates/downloads/navigation.html |
diffstat | 3 files changed, 19 insertions(+), 14 deletions(-) [+] |
line wrap: on
line diff
--- a/downloads/views.py Thu Dec 01 21:05:12 2016 -0600 +++ b/downloads/views.py Tue Dec 13 20:20:24 2016 -0600 @@ -39,6 +39,8 @@ return render(request, 'downloads/index.html', { 'categories': categories, 'total_dls': total_dls, + 'top_menu': 'categories', + 'V3_DESIGN': True, }) #######################################################################
--- a/sg101/templates/downloads/index.html Thu Dec 01 21:05:12 2016 -0600 +++ b/sg101/templates/downloads/index.html Tue Dec 13 20:20:24 2016 -0600 @@ -1,10 +1,7 @@ -{% extends 'base.html' %} +{% extends 'v3/base.html' %} {% load static from staticfiles %} {% load downloads_tags %} {% block title %}Downloads{% endblock %} -{% block custom_css %} -<link rel="stylesheet" type="text/css" href="{% static "css/downloads.css" %}" /> -{% endblock %} {% block content %} <h2>Downloads</h2> {% include 'downloads/navigation.html' %}
--- a/sg101/templates/downloads/navigation.html Thu Dec 01 21:05:12 2016 -0600 +++ b/sg101/templates/downloads/navigation.html Tue Dec 13 20:20:24 2016 -0600 @@ -1,12 +1,18 @@ {% load static from staticfiles %} -<div class="app-logo"> - <img src="{% static "icons/downloads-logo.jpg" %}" alt="Downloads Logo" title="Downloads" /> +<div class="callout"> + <div class="text-center"> + <img src="{% static "icons/downloads-logo.jpg" %}" alt="Downloads Logo" + title="Downloads" /> + </div> + <div class="menu-centered more-top-margin"> + <ul class="vertical medium-horizontal menu size-24"> + <li{% if top_menu == 'categories' %} class="active"{%endif %}> + <a href="{% url 'downloads-index' %}">Categories</a> + </li> + <li><a href="{% url 'downloads-new' %}">New</a></li> + <li><a href="{% url 'downloads-popular' %}">Popular</a></li> + <li><a href="{% url 'downloads-rating' %}">Highest Rated</a></li> + <li><a href="{% url 'downloads-add' %}">Add</a></li> + </ul> + </div> </div> -<ul class="app-menu"> - <li><a href="{% url 'downloads-index' %}">Categories</a></li> - <li><a href="{% url 'downloads-new' %}">New</a></li> - <li><a href="{% url 'downloads-popular' %}">Popular</a></li> - <li><a href="{% url 'downloads-rating' %}">Highest Rated</a></li> - <li><a href="{% url 'downloads-add' %}">Add</a></li> -</ul> -<br />