aboutsummaryrefslogtreecommitdiffstats
path: root/bn_django
diff options
context:
space:
mode:
Diffstat (limited to 'bn_django')
-rw-r--r--bn_django/git_wiki/templates/git_wiki/newitems_table9
-rw-r--r--bn_django/git_wiki/templates/git_wiki/shortlog_table4
-rw-r--r--bn_django/git_wiki/templates/git_wiki/tree_table8
-rw-r--r--bn_django/photos/templates/photos/gallery_list.html4
-rw-r--r--bn_django/templates/base.html4
-rw-r--r--bn_django/templates/comment_list4
6 files changed, 17 insertions, 16 deletions
diff --git a/bn_django/git_wiki/templates/git_wiki/newitems_table b/bn_django/git_wiki/templates/git_wiki/newitems_table
index e072a10..d8682be 100644
--- a/bn_django/git_wiki/templates/git_wiki/newitems_table
+++ b/bn_django/git_wiki/templates/git_wiki/newitems_table
@@ -6,26 +6,27 @@
{% if i.isfig %}
<a href='/k/{{ i.slug }}' class="item">
{{i.path}}</a>
- </td><td type="links">
+ </td><td class="links">
<a href='/k/{{ i.slug }}'>download</a>
{% else %}
<a href='/k/{{ i.slug }}' class="item">
{{i.path}}</a>
- </td><td type="links">
+ </td><td class="links">
<a href='/k/{{ i.slug }}/pdf/'>pdf</a>&nbsp;
<a href='/k/{{ i.slug }}/latex/'>latex</a>&nbsp;
<a href='/k/{{ i.slug }}/raw/'>raw</a>
{% endif %}
+ </td>
{% else %} {% ifequal i.type 'tree' %}
<a href='/k/{{ i.slug }}/' class="tree">
{{i.path}}/</a>
- </td><td type="links">
+ </td><td class="links">
<a href='/k/{{ i.slug }}/'>browse</a>
</td>
{% else %}
<a href='/k/{{ i.slug }}/' class="item">
{{i.name}}</a>
- </td><td type="links">
+ </td><td class="links">
</td>
{% endifequal %}{% endifequal %}
</tr>
diff --git a/bn_django/git_wiki/templates/git_wiki/shortlog_table b/bn_django/git_wiki/templates/git_wiki/shortlog_table
index 85f916d..95aac57 100644
--- a/bn_django/git_wiki/templates/git_wiki/shortlog_table
+++ b/bn_django/git_wiki/templates/git_wiki/shortlog_table
@@ -5,10 +5,10 @@
<td class="date">
{{ l.date }}</td>
<td class="author">
- {{ l.author }}</td>
+ {{ l.author|striptags }}</td>
<td class="description">
<a href="/k/commit/{{ l.hash }}/" class="description">
- {{ l.description|truncatewords:10 }}</a></td>
+ {{ l.description|escape|truncatewords:10 }}</a></td>
<td class="shorthash">
{% if heads %}{% for h in heads.iteritems %}
{% ifequal h.1 l.hash %}
diff --git a/bn_django/git_wiki/templates/git_wiki/tree_table b/bn_django/git_wiki/templates/git_wiki/tree_table
index 2f638ef..36bc3a6 100644
--- a/bn_django/git_wiki/templates/git_wiki/tree_table
+++ b/bn_django/git_wiki/templates/git_wiki/tree_table
@@ -8,12 +8,12 @@
{% if o.isfig %}
<a href='/k/{{ o.slug }}' class="item">
{{o.path}}</a>
- </td><td type="links">
+ </td><td class="links">
<a href='/k/{{ o.slug }}/download/'>download</a>
{% else %}
<a href='/k/{{ o.slug }}/' class="item">
{{o.path}}</a>
- </td><td type="links">
+ </td><td class="links">
<a href='/k/{{ o.slug }}/pdf/'>pdf</a>&nbsp;
<a href='/k/{{ o.slug }}/latex/'>latex</a>&nbsp;
<a href='/k/{{ o.slug }}/raw/'>raw</a>
@@ -22,13 +22,13 @@
{% else %} {% ifequal o.type 'tree' %}
<a href='/k/{{ o.slug }}/' class="tree">
{{o.path}}/</a>
- </td><td type="links">
+ </td><td class="links">
<a href='/k/{{ o.slug }}/'>browse</a>
</td>
{% else %}
<a href='/k/{{ o.slug }}' class="item">
{{o.name}}</a>
- </td><td type="links">
+ </td><td class="links">
</td>
{% endifequal %}{% endifequal %}
</tr>
diff --git a/bn_django/photos/templates/photos/gallery_list.html b/bn_django/photos/templates/photos/gallery_list.html
index fffad30..bb4e797 100644
--- a/bn_django/photos/templates/photos/gallery_list.html
+++ b/bn_django/photos/templates/photos/gallery_list.html
@@ -5,7 +5,7 @@
{% block content %}
{% if object_list %}
- <table with="100%">
+ <table width="100%">
{% for item in object_list %}
<tr>
<td class="photo_thumb">
@@ -18,7 +18,7 @@
{% endif %}
</a>
</td><td class="gallery_title">
- <a href="{{ item.id }}/"><h3>{{ item.title }}</h3></a>
+ <h3><a href="{{ item.id }}/">{{ item.title }}</a></h3>
<br />
{{ item.photo_set.count }} photo{{ item.photo_set.count|pluralize}}
{% if item.first.date %}
diff --git a/bn_django/templates/base.html b/bn_django/templates/base.html
index b71af07..3ffc84e 100644
--- a/bn_django/templates/base.html
+++ b/bn_django/templates/base.html
@@ -38,7 +38,7 @@
</div>
<div class="content" id="main_title">
<div class="right_stuff">
-<form name="search">
+<form name="search" action="#">
<br/>
<input class="search_box" type="text" size="21" value="&nbsp;search!"
name="search_text" id="search_text"
@@ -73,7 +73,7 @@ Here lies content!
{% endblock %}
</div>
{% block commentary %} {% endblock %}
-<div class="content_footer" id="footer" name="footer">
+<div class="content_footer" id="footer">
<b>
&nbsp;
<a href="/">home</a> &nbsp;&nbsp;
diff --git a/bn_django/templates/comment_list b/bn_django/templates/comment_list
index 077f981..84e5d56 100644
--- a/bn_django/templates/comment_list
+++ b/bn_django/templates/comment_list
@@ -13,7 +13,7 @@
<br />
{% endif %}
<span class="comment_content">{{ c.comment|escape|wordwrap:80 }}</span>
-</td</tr>
+</td></tr>
{% endfor %}
{% for c in free_comments %}
<tr><td class="comment_info">
@@ -28,7 +28,7 @@
<br />
{% endif %}
<span class="comment_content">{{ c.comment|escape|wordwrap:80 }}</span>
-</td</tr>
+</td></tr>
{% endfor %}
</table>
{% else %}