# HG changeset patch # User Brian Neal # Date 1379547232 18000 # Node ID 846cf9a06a046818c4fb2f6ec5276a22a68a8e4d # Parent f68694669023548f5cc3ace9bafc5b49018d7533 Create css for user_photos gallery template. diff -r f68694669023 -r 846cf9a06a04 sg101/templates/user_photos/gallery.html --- a/sg101/templates/user_photos/gallery.html Tue Sep 17 21:13:31 2013 -0500 +++ b/sg101/templates/user_photos/gallery.html Wed Sep 18 18:33:52 2013 -0500 @@ -1,6 +1,9 @@ {% extends 'base.html' %} {% load bio_tags %} {% block title %}Photo Gallery for {{ gallery_owner.username }}{% endblock %} +{% block custom_css %} + +{% endblock %} {% block content %}

Photo Gallery for {{ gallery_owner.username }}

@@ -26,10 +29,10 @@ {% if user == gallery_owner %}
{% csrf_token %} {% for photo in photos %} -
+
thumbnail + title="{{ photo.upload_date|date }}" />
@@ -41,7 +44,7 @@ {% else %} {% for photo in photos %} -
+
thumbnail @@ -50,7 +53,7 @@ {% endif %} {% if page_obj %} -
+ {% include 'core/django_pagination.html' %} {% endif %} {% endif %} diff -r f68694669023 -r 846cf9a06a04 user_photos/static/css/user_photos.css --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/user_photos/static/css/user_photos.css Wed Sep 18 18:33:52 2013 -0500 @@ -0,0 +1,14 @@ +.user_photo { + margin: 1em; + display: inline-block; +} +.owner_photo { + border: 1px solid gray; +} +.owner_photo img { + margin: auto; + width: 100%; +} +hr.footer_divider { + margin-top: 1.5em; +}