diff options
Diffstat (limited to 'bn_django/templates')
-rw-r--r-- | bn_django/templates/about.html | 2 | ||||
-rw-r--r-- | bn_django/templates/credits.html | 2 | ||||
-rw-r--r-- | bn_django/templates/frontpage.html | 10 | ||||
-rw-r--r-- | bn_django/templates/newcomments_table | 26 |
4 files changed, 37 insertions, 3 deletions
diff --git a/bn_django/templates/about.html b/bn_django/templates/about.html index c9f9ce4..1ca9d60 100644 --- a/bn_django/templates/about.html +++ b/bn_django/templates/about.html @@ -10,7 +10,7 @@ {% block content %} <p /> <div class="righty_content"> - <img src="http://static.bryannewbold.com/img/orange_small.jpg" + <img src="/static/img/orange_small.jpg" alt="the author" /> <br /> <div class="content_caption">the perp</div> diff --git a/bn_django/templates/credits.html b/bn_django/templates/credits.html index b96d2a9..d1322b9 100644 --- a/bn_django/templates/credits.html +++ b/bn_django/templates/credits.html @@ -15,5 +15,5 @@ This site uses a variety of delicious software! <h3>text editor</h3> <p /><a href="http://vim.org">vim</a>! fuck emacs! <h3>versioning system</h3> -<p />I use git as a revisioning system for the <a href="knowledge">knowledge wiki</a> and my <a href="code">software</a> (including this site!). +<p />I use git as a revisioning system for the <a href="/knowledge/">knowledge wiki</a> and my <a href="/code/">software</a> (including this site!). {% endblock %} diff --git a/bn_django/templates/frontpage.html b/bn_django/templates/frontpage.html index 1a7acc2..46906ef 100644 --- a/bn_django/templates/frontpage.html +++ b/bn_django/templates/frontpage.html @@ -35,7 +35,14 @@ For more recent content see the <a href="/timeline/">timeline</a> <br /> <div class="col_right"> -<div class="col_title">Latest knowledge</div> +<div class="col_title">Latest knowledge items</div> +{% if newitems %} +{% include "git_wiki/newitems_table" %} +{% else %} +None yet! +{% endif %} +<br /> +<div class="col_title">Latest knowledge commits</div> {% if latest_knowledge %} {% include "newknowldge_table" %} {% else %} @@ -46,6 +53,7 @@ None yet! <div class="col_center"> <div class="col_title">Latest comments</div> {% if latest_comments %} +{% include "newcomments_table" %} {% else %} None yet! {% endif %} diff --git a/bn_django/templates/newcomments_table b/bn_django/templates/newcomments_table new file mode 100644 index 0000000..6c38d10 --- /dev/null +++ b/bn_django/templates/newcomments_table @@ -0,0 +1,26 @@ +<table class="listing"> +{% for c in latest_comments %} +<tr> + <td class="date"> + {{ c.submit_date|date:"F jS" }}</td> + <td class="description"> + {% if c.user.username %}{{ c.user.username }} + {% else %}anonymous{% endif%} </td> + <td class="description"> + <a href="{{c.get_content_object.get_absolute_url}}"> + {{ c.content_type.name }}</a></td> + </tr> +{% endfor %} +{% for c in latest_freecomments %} +<tr> + <td class="date"> + {{ c.submit_date|date:"F jS" }}</td> + <td class="description"> + {% if c.person_name %}{{c.person_name}}{% else %}anonymous{% endif %} + </td> + <td class="description"> + <a href="{{c.get_content_object.get_absolute_url}}"> + {{ c.content_type.name }}</a></td> + </tr> +{% endfor %} +</table> |