# HG changeset patch # User Brian Neal # Date 1481687781 21600 # Node ID f56798c96ec26ae59b0bfd18cb909805b1c11041 # Parent 0e0cd152b86d0edb400b93985e2fc671b12622e5 WIP convert downloads to V3 design. diff -r 0e0cd152b86d -r f56798c96ec2 downloads/static/js/downloads-get.js --- a/downloads/static/js/downloads-get.js Tue Dec 13 20:20:24 2016 -0600 +++ b/downloads/static/js/downloads-get.js Tue Dec 13 21:56:21 2016 -0600 @@ -18,6 +18,7 @@ var link_id = result.id; var div = $('#link-' + link_id); div.hide(); + div.addClass('success callout'); div.html( 'Thank you! Your download is now ready. Click here to download.'); diff -r 0e0cd152b86d -r f56798c96ec2 downloads/views.py --- a/downloads/views.py Tue Dec 13 20:20:24 2016 -0600 +++ b/downloads/views.py Tue Dec 13 21:56:21 2016 -0600 @@ -75,6 +75,8 @@ 's' : sort, 'category' : cat, 'page' : the_page, + 'top_menu': 'categories', + 'V3_DESIGN': True, }) ####################################################################### diff -r 0e0cd152b86d -r f56798c96ec2 sg101/templates/downloads/download.html --- a/sg101/templates/downloads/download.html Tue Dec 13 20:20:24 2016 -0600 +++ b/sg101/templates/downloads/download.html Tue Dec 13 21:56:21 2016 -0600 @@ -1,29 +1,30 @@ {% load comment_tags %} {% load bio_tags %} -{% load static from staticfiles %} {% get_comment_count for download as comment_count %} -
+
{{ download.title }}
{{ download.html|safe }} - - - - - - - - - - - - - - - -
Added By:{% profile_link download.user.username %}Date:{{ download.date_added|date:"M d, Y" }}Size:{{ download.size }}
Category:{{ download.category.title }}Downloads:{{ download.hits }}
Rating:
{{ download.average_score|floatformat }}
Comments - Comments:{{ comment_count }}
- -
+ +
diff -r 0e0cd152b86d -r f56798c96ec2 sg101/templates/downloads/download_list.html --- a/sg101/templates/downloads/download_list.html Tue Dec 13 20:20:24 2016 -0600 +++ b/sg101/templates/downloads/download_list.html Tue Dec 13 21:56:21 2016 -0600 @@ -1,34 +1,29 @@ -{% extends 'base.html' %} +{% extends 'v3/base.html' %} {% load static from staticfiles %} {% load downloads_tags %} {% block title %}Downloads: {{ category.title }}{% endblock %} -{% block custom_css %} - - - -{% endblock %} -{% block custom_js %} - - -{% endblock %} {% block content %}

Downloads

{% include 'downloads/navigation.html' %}

Category: {{ category.title }}

{% if page.object_list %} -