From acfaf3460905054249509f9459a235d99a24f028 Mon Sep 17 00:00:00 2001 From: bnewbold Date: Mon, 19 Feb 2007 00:28:16 -0800 Subject: forgot to add several photo files --- bn_django/photos/templates/photos/base.html | 1 + .../photos/templates/photos/gallery_detail.html | 61 ++++++++++++++ .../photos/templates/photos/gallery_list.html | 56 +++++++++++++ bn_django/photos/templates/photos/import_form.html | 59 +++++++++++++ .../photos/templates/photos/photo_detail.html | 96 ++++++++++++++++++++++ 5 files changed, 273 insertions(+) create mode 100644 bn_django/photos/templates/photos/base.html create mode 100644 bn_django/photos/templates/photos/gallery_detail.html create mode 100644 bn_django/photos/templates/photos/gallery_list.html create mode 100644 bn_django/photos/templates/photos/import_form.html create mode 100644 bn_django/photos/templates/photos/photo_detail.html (limited to 'bn_django/photos/templates') diff --git a/bn_django/photos/templates/photos/base.html b/bn_django/photos/templates/photos/base.html new file mode 100644 index 0000000..94d9808 --- /dev/null +++ b/bn_django/photos/templates/photos/base.html @@ -0,0 +1 @@ +{% extends "base.html" %} diff --git a/bn_django/photos/templates/photos/gallery_detail.html b/bn_django/photos/templates/photos/gallery_detail.html new file mode 100644 index 0000000..f9d1bd6 --- /dev/null +++ b/bn_django/photos/templates/photos/gallery_detail.html @@ -0,0 +1,61 @@ +{% extends "photos/base.html" %} +{# {% load markup %} #} + +{% block path %} + photos » +{% if object %} + {{ object.title }} +{% endif %} +{% endblock %} + +{% block title %} +{% if object %} +Gallery: {{ object.title }} +{% endif %} +{% endblock %} + +{% block content %} +{% if object %} +
+{% if object.photo_set.count %} + +{% for item in object.photo_set.all %} + + + + {{ item.title }} + + + +{% endfor %} + +{% else %} +

There are no photos in this gallery. If you just uploaded a batch +of photos, try hitting your browser's reload button to see if they +show up.

+{% endif %} +   + + +{% else %} +

This is not the gallery you are looking for.

+{% endif %} + +{% endblock %} diff --git a/bn_django/photos/templates/photos/gallery_list.html b/bn_django/photos/templates/photos/gallery_list.html new file mode 100644 index 0000000..61225c4 --- /dev/null +++ b/bn_django/photos/templates/photos/gallery_list.html @@ -0,0 +1,56 @@ +{% extends "photos/base.html" %} +{# {% load markup %} #} + +{% block path %}photos{% endblock %} +{% block title %}Photo Galleries{% endblock %} + +{% block content %} +{% if object_list %} +
+ +
+{% else %} +

No galleries have been set up yet.

+{% endif %} + + +{% if is_paginated %} + +{% if has_previous %} +« previous | +{% endif %} +{% if has_next %} +next » +{% endif %} +{% endif %} + + + +{% endblock %} diff --git a/bn_django/photos/templates/photos/import_form.html b/bn_django/photos/templates/photos/import_form.html new file mode 100644 index 0000000..0d4f19e --- /dev/null +++ b/bn_django/photos/templates/photos/import_form.html @@ -0,0 +1,59 @@ +{% extends "photos/base.html" %} +{# {% load markup %} #} +{% block title %}Import photos into a gallery +{% if gallery%} ({{gallery.title}}){% endif %}{% endblock %} + +{% block content %} +{% if gallery %} + +
+
+ {%if form.zipfile.errors %} + + {{ form.zipfile.errors|join:", " }} +
+ {% endif %} + + + {{ form.zipfile }}

+ + {%if form.photographer.errors %} + + {{ form.photographer.errors|join:", " }} +
+ {% endif %} + + + {{ form.photographer }}

+ + {%if form.date.errors %} + + {{ form.date.errors|join:", " }} +
+ {% endif %} + + + {{ form.date }}

+ +
+
+

+ When you upload a batch of photos in a zipfile, it will give each of + them a title based on its filename, and assigns them all the same + photographer and date. That's probably not always what you want, so + you can change any of these settings on a per-photo basis + after you upload the images. +

+ +{% else %} +

Oops! No gallery here!

+{% endif %} + +{% endblock %} diff --git a/bn_django/photos/templates/photos/photo_detail.html b/bn_django/photos/templates/photos/photo_detail.html new file mode 100644 index 0000000..d9c2177 --- /dev/null +++ b/bn_django/photos/templates/photos/photo_detail.html @@ -0,0 +1,96 @@ +{% extends "photos/base.html" %} +{# {% load markup %} #} + +{% block path %} + photos » + {{ object.gallery.title }} +{% endblock %} + +{% block title %} +{% if object %} +{{ object.title }} +{% endif %} +{% endblock %} + +{% block content %} + +{% if object %} +{% if object.next %} +
+
+ +{% endif %} + +{% if object.prev %} +
+ +
+{% endif %} +
+
+ + {{ object.title }} + +
+

{{ object.desc }}

+ {% if object.photographer %} +

Photo by {{ object.photographer }}.

+ {% endif %} + {% if object.date %} +

Photo taken {{ object.date }}.

+ {% endif %} + {% if object.extra %} +

More information

+

{{ object.extra }}

+ {% endif %} +
+
+
+{% if object.prev %} + + « previous + +{% endif %} +{% if object.next %} + + next » + +{% endif %} +
+ + +{% else %} +

This is not the photo you are looking for.

+{% endif %} + + +{% endblock %} -- cgit v1.2.3