diff options
Diffstat (limited to 'bn_django/journal/templates')
12 files changed, 332 insertions, 1 deletions
diff --git a/bn_django/journal/templates/journal/artifacts.html b/bn_django/journal/templates/journal/artifacts.html new file mode 100644 index 0000000..4b82573 --- /dev/null +++ b/bn_django/journal/templates/journal/artifacts.html @@ -0,0 +1,16 @@ +{% extends "base.html" %} + +{% block title %}Artifacts!{% endblock %} + +{% block content %}<br /> +Oh golly oh golly! We've got +<b> +<ul> + <li /><a href="links/">links</a> + <li /><a href="images/">images</a> + <li /><a href="code/">code snippets</a> + <li /><a href="videos/">videos</a> +</ul> +</b> +Also check out journal <a href="/journal/entries/">entries</a> and <a href="/journal/microentries/">microentries</a>. +{% endblock %} diff --git a/bn_django/journal/templates/journal/codeartifact_detail.html b/bn_django/journal/templates/journal/codeartifact_detail.html new file mode 100644 index 0000000..fefdea8 --- /dev/null +++ b/bn_django/journal/templates/journal/codeartifact_detail.html @@ -0,0 +1,36 @@ +{% extends "journal/base.html" %} +{# {% load markup %} #} +{% load comments %} +{% block path %}<a href="/artifacts/">artifacts</a> + »<a href="/artifacts/code/"> code</a> + »<a href="../{{ object.id }}"> {{ object.title }}</a> +{% endblock %} + +{% block title %} +{% if object.title %}{{ object.title }}{% else %}[Untitled Code Snippet]{% endif %} +{% endblock %} + +{% block content %}<br /> +{% if object %}<div class="right_stuff"> +<p class="date">Code added {{ object.date }}, +{% if object.author %}<br />by {{ object.author }},{% endif %} +{% if object.last_edited %}<br />last edited {{ object.last_edited }}.{% endif %} +</div> +{% if object.language %}This is in {{object.language}}.<br /><br />{%endif%} +<pre class="large"> +{{object.code}} +</pre> +{% if object.html_caption|safe %}<br /><br />{{object.html_caption}}{% endif %} +{% else %} +<p>This is not the artifact you are looking for.</p> +{% endif %} +{% endblock %} + +{% block commentary %} +<div class='content' id='commentary'> +{% get_comment_list for object as comments %} +{% include "comment_list" %} +<h3>Post a comment</h3> +{% render_comment_form for object %} +</div> +{% endblock %} diff --git a/bn_django/journal/templates/journal/codeartifact_list.html b/bn_django/journal/templates/journal/codeartifact_list.html new file mode 100644 index 0000000..ee52afd --- /dev/null +++ b/bn_django/journal/templates/journal/codeartifact_list.html @@ -0,0 +1,27 @@ +{% extends "journal/base.html" %} + +{% block path %}<a href="/artifacts/">artifacts</a> + »<a href="/artifacts/code/"> code</a> +{% endblock %} + +{% block title %}Code Snippets{% endblock %} + +{% block content %} +<br /> +{% if object_list %} +<ul> + {% for item in object_list %} + <li /><a href="{{ item.id }}/">{{item.title}}</a> + {% if item.language %} ({{item.language}}){% endif %} + {% endfor %} +</ul> +{% else %} +<p>No code snippets have been uploaded 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 %} +{% endblock %} diff --git a/bn_django/journal/templates/journal/entry_list.html b/bn_django/journal/templates/journal/entry_list.html index f103c4e..caa07af 100644 --- a/bn_django/journal/templates/journal/entry_list.html +++ b/bn_django/journal/templates/journal/entry_list.html @@ -8,7 +8,7 @@ {% if object_list %} <ul> {% for item in object_list %} - <li /><a href="{{ item.slug }}/">{{item.title}} + <li /><a href="/journal/entries/{{ item.slug }}/">{{item.title}} {% endfor %} </ul> {% else %} diff --git a/bn_django/journal/templates/journal/imageartifact_detail.html b/bn_django/journal/templates/journal/imageartifact_detail.html new file mode 100644 index 0000000..45ea1aa --- /dev/null +++ b/bn_django/journal/templates/journal/imageartifact_detail.html @@ -0,0 +1,40 @@ +{% extends "journal/base.html" %} +{# {% load markup %} #} +{% load comments %} +{% block path %}<a href="/artifacts/">artifacts</a> + »<a href="/artifacts/images/"> images</a> + »<a href="../{{ object.id }}"> {{ object.title }}</a> +{% endblock %} + +{% block title %} +{% if object.title %}{{ object.title }}{% else %}[Untitled Image]{% endif %} +{% endblock %} + +{% block content %}<br /> +{% if object %}<div class="right_stuff"> +<p class="date">Image uploaded {{ object.date }}, +{% if object.author %}<br />by {{ object.author }},{% endif %} +{% if object.last_edited %}<br />last edited {{ object.last_edited }}.{% endif %} +</div> +<center> +<div id="centerize"> + <a href="{{ object.fullurl }}"> + <img src="{{ object.dispurl }}" + alt="{{ object.title }}" /> + </a> +</div> +</center> +{% if object.html_caption %}<br /><br />{{object.html_caption}}{% endif %} +{% else %} +<p>This is not the artifact you are looking for.</p> +{% endif %} +{% endblock %} + +{% block commentary %} +<div class='content' id='commentary'> +{% get_comment_list for object as comments %} +{% include "comment_list" %} +<h3>Post a comment</h3> +{% render_comment_form for object %} +</div> +{% endblock %} diff --git a/bn_django/journal/templates/journal/imageartifact_list.html b/bn_django/journal/templates/journal/imageartifact_list.html new file mode 100644 index 0000000..6530773 --- /dev/null +++ b/bn_django/journal/templates/journal/imageartifact_list.html @@ -0,0 +1,29 @@ +{% extends "journal/base.html" %} + +{% block path %}<a href="/artifacts/">artifacts</a> + »<a href="/artifacts/images"> images</a>{% endblock %} + +{% block title %}Uploaded Images{% endblock %} + +{% block content %} +<br /> +{% if object_list %} +<table width="100%" class="thumbs"> +{% for item in object_list %} {% cycle <tr/>, , , %} + <td class="photo_thumb"> + <a href="{{ item.id }}/"> + <img src="{{ item.thumburl }}" + alt="{{ item.title }}" /> + </td> {% endfor %} +</table> +{% else %} +<p>There are no images! If you just uploaded a batch +of photos, try hitting your browser's reload button to see if they +show up.</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 %} +{% endblock %} diff --git a/bn_django/journal/templates/journal/linkartifact_detail.html b/bn_django/journal/templates/journal/linkartifact_detail.html new file mode 100644 index 0000000..70f9656 --- /dev/null +++ b/bn_django/journal/templates/journal/linkartifact_detail.html @@ -0,0 +1,34 @@ +{% extends "journal/base.html" %} + +{% load comments %} + +{% block path %}<a href="/artifacts/">artifacts</a> + »<a href="/artifacts/links/"> links</a> + »<a href="../{{ object.id }}"> {{ object.title }}</a> +{% endblock %} + +{% block title %} +{% if object.title %}{{ object.title }}{% else %}[Untitled Link]{% endif %} +{% endblock %} + +{% block content %}<br /> +{% if object %}<div class="right_stuff"> +<p class="date">Link created {{ object.date }}, +{% if object.author %}<br />by {{ object.author }},{% endif %} +{% if object.last_edited %}<br />last edited {{ object.last_edited }}.{% endif %} +</div> +<b><a href="{{object.url}}">{{object.url}}</a></b> +{% if object.html_caption %}<br /><br /> {{object.html_caption|safe}}{% endif %} +{% else %} +<p>This is not the artifact you are looking for.</p> +{% endif %} +{% endblock %} + +{% block commentary %} +<div class='content' id='commentary'> +{% get_comment_list for object as comments %} +{% include "comment_list" %} +<h3>Post a comment</h3> +{% render_comment_form for object %} +</div> +{% endblock %} diff --git a/bn_django/journal/templates/journal/linkartifact_list.html b/bn_django/journal/templates/journal/linkartifact_list.html new file mode 100644 index 0000000..829e627 --- /dev/null +++ b/bn_django/journal/templates/journal/linkartifact_list.html @@ -0,0 +1,27 @@ +{% extends "journal/base.html" %} + +{% block path %}<a href="/artifacts/">artifacts</a> + »<a href="/artifacts/links/"> links</a> +{% endblock %} + +{% block title %}Interesting Links{% endblock %} + +{% block content %} +<br /> +{% if object_list %} +<ul> + {% for item in object_list %} + <li /><a href="{{ item.id }}/">{{item.title}}</a>: + <i><a href="{{ item.url }}">{{item.url}}</a></i> + {% endfor %} +</ul> +{% else %} +<p>No links have been entered 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 %} +{% endblock %} diff --git a/bn_django/journal/templates/journal/microentry_detail.html b/bn_django/journal/templates/journal/microentry_detail.html new file mode 100644 index 0000000..bb94853 --- /dev/null +++ b/bn_django/journal/templates/journal/microentry_detail.html @@ -0,0 +1,32 @@ +{% extends "journal/base.html" %} + +{% load comments %} +{% block path %}{{ block.super }} + »<a href="/journal/microentries/"> microentries</a> + »<a href="/journal/microentries/{{ object.id }}"> {{ object.title }}</a> +{% endblock %} + +{% block title %} +{% if object.title %}{{ object.title }}{% else %}[Untitled Microentry]{% endif %} +{% endblock %} + +{% block content %}<br /> +{% if object %}<div class="right_stuff"> +<p class="date">dated {{ object.date }}, +{% if object.author %}<br />written by {{ object.author }},{% endif %} +{% if object.last_edited %}<br />last edited {{ object.last_edited }}.{% endif %} +</div> +<p class="journal_entry">{{ object.html_content|safe }}</p> +{% else %} +<p>This is not the entry you are looking for.</p> +{% endif %} +{% endblock %} + +{% block commentary %} +<div class='content' id='commentary'> +{% get_comment_list for object as comments %} +{% include "comment_list" %} +<h3>Post a comment</h3> +{% render_comment_form for object %} +</div> +{% endblock %} diff --git a/bn_django/journal/templates/journal/microentry_list.html b/bn_django/journal/templates/journal/microentry_list.html new file mode 100644 index 0000000..aac07e7 --- /dev/null +++ b/bn_django/journal/templates/journal/microentry_list.html @@ -0,0 +1,28 @@ +{% extends "journal/base.html" %} + +{% block path %}{{block.parent}} + »<a href="/journal/microentries/"> microentries</a> + »<a href="/journal/microentries/{{ object.id }}"> {{ object.title }}</a>{%endif%} + +{% block title %}Journal Micro-entries{% endblock %} + +{% block content %} +<br /> +{% if object_list %} +<ul> + {% for item in object_list %} + <li /><a href="/journal/microentries/{{ item.id }}/"> + {% if item.title %}{{item.title}}{%else%}[Untitled]{%endif%}</a> + ({{item.date}}) + {% endfor %} +</ul> +{% else %} +<p>No entries have been entered 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 %} +{% endblock %} diff --git a/bn_django/journal/templates/journal/videoartifact_detail.html b/bn_django/journal/templates/journal/videoartifact_detail.html new file mode 100644 index 0000000..09b0ac2 --- /dev/null +++ b/bn_django/journal/templates/journal/videoartifact_detail.html @@ -0,0 +1,35 @@ +{% extends "journal/base.html" %} + +{% load comments %} +{% block path %}<a href="/artifacts/">artifacts</a> + »<a href="/artifacts/videos/"> videos</a> + »<a href="../{{ object.id }}"> {{ object.title }}</a> +{% endblock %} + +{% block title %} +{% if object.title %}{{ object.title }}{% else %}[Untitled Video]{% endif %} +{% endblock %} + +{% block content %}<br /> +{% if object %}<div class="right_stuff"> +<p class="date">Video uploaded {{ object.date }}, +{% if object.author %}<br />by {{ object.author }},{% endif %} +{% if object.last_edited %}<br />last edited {{ object.last_edited }}.{% endif %} +</div> +{% if object.external_url %}View this video <a href="{{object.external_url}}">here</a><br /><br />{%endif%} +<a href="{{object.filepath}}">Download the video.</a> +<br /><br />The video codec is {{ object.codec }}.<br /> +{% if object.html_caption %}<br /><br />{{object.html_caption|safe}}{% endif %} +{% else %} +<p>This is not the artifact you are looking for.</p> +{% endif %} +{% endblock %} + +{% block commentary %} +<div class='content' id='commentary'> +{% get_comment_list for object as comments %} +{% include "comment_list" %} +<h3>Post a comment</h3> +{% render_comment_form for object %} +</div> +{% endblock %} diff --git a/bn_django/journal/templates/journal/videoartifact_list.html b/bn_django/journal/templates/journal/videoartifact_list.html new file mode 100644 index 0000000..b5af050 --- /dev/null +++ b/bn_django/journal/templates/journal/videoartifact_list.html @@ -0,0 +1,27 @@ +{% extends "journal/base.html" %} + +{% block path %}<a href="/artifacts/">artifacts</a> + »<a href="/artifacts/videos/"> videos</a> +{% endblock %} + +{% block title %}Videos{% endblock %} + +{% block content %} +<br /> +{% if object_list %} +<ul> + {% for item in object_list %} + <li /><a href="{{ item.id }}/">{{item.title}}</a> + {%if item.codec%} (codec: {{item.codec}}){% endif %} + {% endfor %} +</ul> +{% else %} +<p>No videos have been entered 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 %} +{% endblock %} |