diff options
author | bnewbold <bnewbold@robocracy.org> | 2016-06-20 16:37:07 -0400 |
---|---|---|
committer | bnewbold <bnewbold@robocracy.org> | 2016-06-20 16:37:07 -0400 |
commit | baf14633cbd8af6413290ccae5765aefd2a278a5 (patch) | |
tree | 6fcdf0e488d707ce373d46a50f543364ea7bf3b8 /bn_django/photos/templates | |
parent | 4b5b2769679515a54d3287077821421dce613432 (diff) | |
download | bnewnet-baf14633cbd8af6413290ccae5765aefd2a278a5.tar.gz bnewnet-baf14633cbd8af6413290ccae5765aefd2a278a5.zip |
remove old django folder
Diffstat (limited to 'bn_django/photos/templates')
-rw-r--r-- | bn_django/photos/templates/photos/base.html | 5 | ||||
-rw-r--r-- | bn_django/photos/templates/photos/gallery_detail.html | 45 | ||||
-rw-r--r-- | bn_django/photos/templates/photos/gallery_list.html | 57 | ||||
-rw-r--r-- | bn_django/photos/templates/photos/import_form.html | 62 | ||||
-rw-r--r-- | bn_django/photos/templates/photos/photo_detail.html | 111 |
5 files changed, 0 insertions, 280 deletions
diff --git a/bn_django/photos/templates/photos/base.html b/bn_django/photos/templates/photos/base.html deleted file mode 100644 index d229057..0000000 --- a/bn_django/photos/templates/photos/base.html +++ /dev/null @@ -1,5 +0,0 @@ -{% extends "base.html" %} - -{% block path %} - <a href="/photos/">photos</a> -{% endblock %} diff --git a/bn_django/photos/templates/photos/gallery_detail.html b/bn_django/photos/templates/photos/gallery_detail.html deleted file mode 100644 index 0b3a4af..0000000 --- a/bn_django/photos/templates/photos/gallery_detail.html +++ /dev/null @@ -1,45 +0,0 @@ -{% extends "photos/base.html" %} -{# {% load markup %} #} -{% block path %} -{{ block.super }} -{% if object %} - » - <a href="../{{ object.slug }}/">{{ object.title }}</a> -{% endif %} {% endblock %} -{% block title %} -{% if object %}Photo Set: {{ object.title }} {% endif %} -{% endblock %} -{% block content %} -{% if object %} -{% if object.photo_set.count %} -<table width="100%" class="thumbs"> -{% for item in object.photo_set.all %} {% cycle <tr/>, , , %} - <td class="photo_thumb"> - <a href="../detail/{{ item.id }}/"> - <img src="{{ item.thumburl }}" - alt="{{ item.title }}" /> - </td> {% endfor %} -</table> -{% 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 %} - -<!-- -{% 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 deleted file mode 100644 index 11c7289..0000000 --- a/bn_django/photos/templates/photos/gallery_list.html +++ /dev/null @@ -1,57 +0,0 @@ -{% extends "photos/base.html" %} -{# {% load markup %} #} - -{% block title %}Photo Sets{% endblock %} - -{% block content %} -{% if object_list %} - <table width="100%"> - {% for item in object_list %} - <tr> - <td class="photo_thumb"> - <a href="{{ item.slug }}/"> - {% if item.first %} - <img src="{{ item.first.thumburl }}" - alt="{{ item.first.title }}" /> - {% else %} - (No photo available) - {% endif %} - </a> - </td><td style="vertical-align: top; padding-left: 14px;" > - <h3 style="font-size: 150%;"> - <a href="{{ item.slug }}/">{{ item.title }}</a></h3> - {{ item.photo_set.count }} photo{{ item.photo_set.count|pluralize}} - {% if item.first.date %} - starting in {{ item.first.date|date:"M, Y" }}{% endif %} - </td></tr> - {% endfor %} - </table> -{% else %} - <p>No galleries have been set up yet.</p> -{% endif %} - - -{% if is_paginated %} - -{% if has_previous %} -<a href="./?page={{ previous }}">« previous</a> | -{% endif %} -{% if has_next %} -<a href="./?page={{ next }}">next »</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 deleted file mode 100644 index bd01a9a..0000000 --- a/bn_django/photos/templates/photos/import_form.html +++ /dev/null @@ -1,62 +0,0 @@ -{% 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> -<p> - <b>UPDATE:</b> The title and rotation will be guessed from EXIF data... -</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 deleted file mode 100644 index 78b95fe..0000000 --- a/bn_django/photos/templates/photos/photo_detail.html +++ /dev/null @@ -1,111 +0,0 @@ -{% extends "photos/base.html" %} -{# {% load markup %} #} - -{% load comments %} - -{% block path %} - {{ block.super }} - » - <a href="../../{{ object.gallery.slug }}/">{{ object.gallery.title }}</a> - » - <a href="../{{ object.id }}">{{ object.title }}</a> -{% endblock %} - -{% block title %} -{% if object %} -{{ object.title }} -{% endif %} -{% endblock %} - -{% block content %} - -{% if object %} -<div class="right_stuff"> -{% if object.date %} -<p class="photodate">Photo taken {{ object.date }}{% if object.photographer %} -by {{ object.photographer }}.</p> -{% else %}.</p> -{% endif %} -{% else %} -{% if object.photographer %} -<p class="photographer">Photo by {{ object.photographer }}.</p> -{% endif %} -{% endif %} -</div> -{% if object.next %} -<div class="right_stuff" style="clear: right;"> -<div class="small-image-box"> -<br /><br /><br /> <br /> <br /> <br /> <br /> <br /> <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> -</div></div> - -{% endif %} -{% if object.prev %} -<div class="right_stuff" style="clear: right;"> -<div class="small-image-box"> -<br /> <br /><br /> <br /> - <a href="../{{ object.prev.id }}/"> - Previous:<br /> - <img src="{{ object.prev.thumburl}}" alt="{{ object.prev.title }}"/> - </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|safe }} </p> - {% if object.extra %} - <h3 class="photoextra">More information</h3> - <p class="photoextra">{{ object.extra|safe }}</p> - {% endif %} - </div> -</div> -</center> -{% if object.prev %} - <a href="../{{ object.prev.id }}/" class="lefty"> - « previous - </a> -{% endif %} -{% if object.next %} - <a href="../{{ object.next.id }}/" class="righty"> - next » - </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 %} - -{% block commentary %} -<div class='content' id='commentary'> -<h3>Post a comment</h3> -{% render_comment_form for object %} -{% get_comment_list for object as comments %} -{% include "comment_list" %} -</div> -{% endblock %} |