diff options
Diffstat (limited to 'bn_django/git_wiki/templates')
-rw-r--r-- | bn_django/git_wiki/templates/git_wiki/newitems_table | 9 | ||||
-rw-r--r-- | bn_django/git_wiki/templates/git_wiki/shortlog_table | 4 | ||||
-rw-r--r-- | bn_django/git_wiki/templates/git_wiki/tree_table | 8 |
3 files changed, 11 insertions, 10 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> <a href='/k/{{ i.slug }}/latex/'>latex</a> <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> <a href='/k/{{ o.slug }}/latex/'>latex</a> <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> |