# HG changeset patch # User Brian Neal # Date 1480647751 21600 # Node ID 176d1550bf25a164325fda20259a3ef56d7c3bfc # Parent 4879df353104fa9df4d8a6cd515a7a5ea3a6ed71 Convert weblinks to V3 design. diff -r 4879df353104 -r 176d1550bf25 sg101/templates/weblinks/add_link.html --- a/sg101/templates/weblinks/add_link.html Thu Dec 01 21:01:27 2016 -0600 +++ b/sg101/templates/weblinks/add_link.html Thu Dec 01 21:02:31 2016 -0600 @@ -4,16 +4,57 @@

Add Link

{% if add_form %}
{% csrf_token %} - - {{ add_form.as_table }} - -
  -  Cancel -
+ {{ add_form.non_field_errors }} + {{ add_form.category.errors }} +
+
+ +
+
+ {{ add_form.title.errors }} +
+
+ +
+
+ {{ add_form.url.errors }} +
+
+ +
+
+ {{ add_form.description.errors }} +
+
+ +
+
+
+
+ + Cancel +
+
-
{% else %} -

Thank you for submitting a link!

-

Your link has been submitted for review to the site staff.

+
+

Thank you for submitting a link!

+

+ Your link has been submitted for review to the site staff. + Would you like to add another? +

+
{% endif %} {% endblock %} diff -r 4879df353104 -r 176d1550bf25 sg101/templates/weblinks/base.html --- a/sg101/templates/weblinks/base.html Thu Dec 01 21:01:27 2016 -0600 +++ b/sg101/templates/weblinks/base.html Thu Dec 01 21:02:31 2016 -0600 @@ -1,11 +1,6 @@ -{% extends 'base.html' %} +{% extends 'v3/base.html' %} {% load static from staticfiles %} {% load weblinks_tags %} -{% block custom_css %} - -{% block weblinks_css %}{% endblock %} -{% block weblinks_js %}{% endblock %} -{% endblock %} {% block content %}

Web Links

{% include 'weblinks/navigation.html' %} diff -r 4879df353104 -r 176d1550bf25 sg101/templates/weblinks/link.html --- a/sg101/templates/weblinks/link.html Thu Dec 01 21:01:27 2016 -0600 +++ b/sg101/templates/weblinks/link.html Thu Dec 01 21:02:31 2016 -0600 @@ -1,25 +1,20 @@ {% load static from staticfiles %} {% load bio_tags %} -
+

{{ link.title }}

-
-

{{ link.description }}

{% csrf_token %} - - - - - - - - - - - - +
    +
  • Added by: {% profile_link link.user.username %}
  • +
  • Category: {{ link.category.title }}
  • +
  • Date Added: {{ link.date_added|date:"M d, Y" }}
  • +
  • Hits: {{ link.hits }}
  • +
+ + + Report Broken Link +
-
-
+ +
diff -r 4879df353104 -r 176d1550bf25 sg101/templates/weblinks/link_detail.html --- a/sg101/templates/weblinks/link_detail.html Thu Dec 01 21:01:27 2016 -0600 +++ b/sg101/templates/weblinks/link_detail.html Thu Dec 01 21:02:31 2016 -0600 @@ -1,12 +1,12 @@ {% extends 'weblinks/base.html' %} {% load static from staticfiles %} {% block title %}Web Links: {{ link.title }}{% endblock %} -{% block weblinks_js %} - -{% endblock %} {% block weblinks_content %}

Link Details: {{ link.title }}

{% include 'weblinks/link.html' %}
{% endblock %} +{% block custom_js %} + +{% endblock %} diff -r 4879df353104 -r 176d1550bf25 sg101/templates/weblinks/link_summary.html --- a/sg101/templates/weblinks/link_summary.html Thu Dec 01 21:01:27 2016 -0600 +++ b/sg101/templates/weblinks/link_summary.html Thu Dec 01 21:02:31 2016 -0600 @@ -1,22 +1,16 @@ {% extends 'weblinks/base.html' %} {% load static from staticfiles %} {% block title %}Web Links: {{ title }}{% endblock %} -{% block weblinks_css %} - - -{% endblock %} -{% block weblinks_js %} - -{% endblock %} {% block weblinks_content %}

{{ title }}

{% if page.object_list %} - {% include 'core/pagination.html' %} -
+ {% include 'core/v3/pagination.html' %} {% for link in page.object_list %} {% include 'weblinks/link.html' %} {% endfor %} -
- {% include 'core/pagination.html' %} + {% include 'core/v3/pagination.html' %} {% endif %} {% endblock %} +{% block custom_js %} + +{% endblock %} diff -r 4879df353104 -r 176d1550bf25 sg101/templates/weblinks/navigation.html --- a/sg101/templates/weblinks/navigation.html Thu Dec 01 21:01:27 2016 -0600 +++ b/sg101/templates/weblinks/navigation.html Thu Dec 01 21:02:31 2016 -0600 @@ -1,17 +1,28 @@ {% load static from staticfiles %} -