aboutsummaryrefslogtreecommitdiffstats
path: root/bn_django/photos/templates
diff options
context:
space:
mode:
authorbnewbold <bnewbold@manus.(none)>2007-02-19 00:28:16 -0800
committerbnewbold <bnewbold@manus.(none)>2007-02-19 00:28:16 -0800
commitacfaf3460905054249509f9459a235d99a24f028 (patch)
tree13f506085e6952420e19c68f1c8cdfcf04fa5bc9 /bn_django/photos/templates
parentde7fbaadb211650a73c68509f8b87cb93effdd2a (diff)
downloadbnewnet-acfaf3460905054249509f9459a235d99a24f028.tar.gz
bnewnet-acfaf3460905054249509f9459a235d99a24f028.zip
forgot to add several photo files
Diffstat (limited to 'bn_django/photos/templates')
-rw-r--r--bn_django/photos/templates/photos/base.html1
-rw-r--r--bn_django/photos/templates/photos/gallery_detail.html61
-rw-r--r--bn_django/photos/templates/photos/gallery_list.html56
-rw-r--r--bn_django/photos/templates/photos/import_form.html59
-rw-r--r--bn_django/photos/templates/photos/photo_detail.html96
5 files changed, 273 insertions, 0 deletions
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 %}
+ <a href="../">photos</a> &raquo;
+{% if object %}
+ <a href="../{{ object.id }}">{{ object.title }}</a>
+{% endif %}
+{% endblock %}
+
+{% block title %}
+{% if object %}
+Gallery: {{ object.title }}
+{% endif %}
+{% endblock %}
+
+{% block content %}
+{% if object %}
+<br />
+{% if object.photo_set.count %}
+
+{% for item in object.photo_set.all %}
+
+<span class="photo_thumb">
+ <a href="../detail/{{ item.id }}">
+ <img src="{{ item.thumburl }}"
+ alt="{{ item.title }}" />
+ <!--<a href="../detail/{{ item.id }}" class="caption">{{ item.title }}</a>
+</a> -->
+
+</span>
+{% endfor %}
+
+{% else %}
+<p>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.</p>
+{% endif %}
+ &nbsp;
+<!--
+{% if not user.is_anonymous %}
+<p>
+ <a href="{{ object.get_admin_url }}">Edit this gallery.</a><br/>
+ <a href="{{ admin_url }}/photos/photo/add/">Add a photo to
+ this gallery.</a><br/>
+ <a href="{{photos_url}}/import/{{ object.id }}/">Add a bunch
+ of photos to this gallery.</a>
+</p>
+{% else %}
+<p>
+ <a href="/accounts/login/?next={{ request.path }}">
+ Login</a> to add or edit photos
+</p>
+{% endif %}
+-->
+
+{% else %}
+<p>This is not the gallery you are looking for.</p>
+{% 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 %}
+<div id="thumbnail-box">
+ <div id="thumbnails">
+ {% for item in object_list %}
+ <div class="lefty">
+ &nbsp; &nbsp;&nbsp;
+ <a href="{{ item.id }}/">
+ {% if item.first %}
+ <img src="{{ item.first.thumburl }}"
+ alt="{{ item.first.title }}" />
+ {% else %}
+ No photo available
+ {% endif %}
+ </a>
+ </div>
+ <br /> <br /><a href="{{ item.id }}/"><h3> &nbsp;&nbsp;{{ item.title }}</h3></a>
+ <br /> <br /> <br /> <br />
+ {% endfor %}
+ </div>
+</div>
+{% else %}
+<p>No galleries have been set up yet.</p>
+{% endif %}
+
+
+{% if is_paginated %}
+
+{% if has_previous %}
+<a href="./?page={{ previous }}">&laquo; previous</a> |
+{% endif %}
+{% if has_next %}
+<a href="./?page={{ next }}">next &raquo;</a>
+{% endif %}
+{% endif %}
+
+<!--
+{% if not user.is_anonymous %}
+<p>
+ <a href="{{admin_url}}/photos/gallery/add/">Create a new gallery.</a>
+</p>
+{% else %}
+<p>
+ <a href="/accounts/login/?next={{ request.path }}">
+ Login</a> to create a new gallery.
+</p>
+{% 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 %}
+
+<form action="../../import/{{ gallery.id }}/" method="post"
+ enctype="multipart/form-data">
+ <div>
+ {%if form.zipfile.errors %}
+ <span style="color: red;">
+ {{ form.zipfile.errors|join:", " }}
+ </span><br/>
+ {% endif %}
+
+ <label class="fortextinput" for="id_zipfile">
+ ZIP archive to upload:
+ </label>
+ {{ form.zipfile }}<br/><br/>
+
+ {%if form.photographer.errors %}
+ <span style="color: red;">
+ {{ form.photographer.errors|join:", " }}
+ </span><br/>
+ {% endif %}
+
+ <label class="fortextinput" for="id_photographer">
+ Name of photographer:
+ </label>
+ {{ form.photographer }}<br/><br/>
+
+ {%if form.date.errors %}
+ <span style="color: red;">
+ {{ form.date.errors|join:", " }}
+ </span><br/>
+ {% endif %}
+
+ <label class="fortextinput" for="id_date">
+ Date photos were taken:
+ </label>
+ {{ form.date }}<br/><br/>
+ <input type="submit" value="Upload"/>
+ </div>
+</form>
+<p>
+ 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
+ <em>after</em> you upload the images.
+</p>
+
+{% else %}
+<p>Oops! No gallery here!</p>
+{% 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 %}
+ <a href="../..">photos</a> &raquo;
+ <a href="../../{{ object.gallery.id }}">{{ object.gallery.title }}</a>
+{% endblock %}
+
+{% block title %}
+{% if object %}
+{{ object.title }}
+{% endif %}
+{% endblock %}
+
+{% block content %}
+
+{% if object %}
+{% if object.next %}
+<div class="right_stuff">
+<div class="small-image-box">
+<br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br />
+ <a href="../{{ object.next.id }}/">
+ Next:<br/>
+ <img src="{{ object.next.thumburl}}" alt="{{ object.next.title }}"/>
+ </a> <!--
+ <a href="../{{ object.next.id }}/">
+ <span>{{ object.next.title }} &raquo;</span></a> -->
+</div></div>
+
+{% endif %}
+
+{% if object.prev %}
+<div class="right_stuff">
+<div class="small-image-box">
+ <a href="../{{ object.prev.id }}/">
+ Previous:<br />
+ <img src="{{ object.prev.thumburl}}" alt="{{ object.prev.title }}"/>
+ </a> <!--
+ <a href="../{{ object.prev.id }}/">
+ <span>&laquo; {{ object.prev.title }} </span></a> -->
+</div>
+</div>
+{% endif %}
+<center>
+<div id="centerize">
+ <a href="{{ object.fullurl }}">
+ <img src="{{ object.dispurl }}"
+ alt="{{ object.title }}" />
+ </a>
+ <div>
+ <p class="photodesc"> {{ object.desc }} </p>
+ {% if object.photographer %}
+ <p class="photographer">Photo by {{ object.photographer }}.</p>
+ {% endif %}
+ {% if object.date %}
+ <p class="photodate">Photo taken {{ object.date }}.</p>
+ {% endif %}
+ {% if object.extra %}
+ <h3 class="photoextra">More information</h3>
+ <p class="photoextra">{{ object.extra }}</p>
+ {% endif %}
+ </div>
+</div>
+</center>
+{% if object.prev %}
+ <a href="../{{ object.prev.id }}/" class="lefty">
+ &laquo; previous
+ </a>
+{% endif %}
+{% if object.next %}
+ <a href="../{{ object.next.id }}/" class="righty">
+ next &raquo;
+ </a>
+{% endif %}
+<br />
+
+<!--
+{% if not user.is_anonymous %}
+<p>
+ <a href="{{ admin_url }}/photos/photo/{{ object.id }}/">
+ Edit this image.
+ </a>
+</p>
+{%else %}
+<p>
+ <a href="/accounts/login/?next={{ request.path }}">
+ Login</a> to edit this image.
+</p>
+{% endif %}
+-->
+{% else %}
+<p>This is not the photo you are looking for.</p>
+{% endif %}
+
+
+{% endblock %}