Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix tags

  • Loading branch information...
commit 52b5918ee7e4075c354e3723c48ad43936189882 1 parent 3ec22ae
@saippuakauppias saippuakauppias authored
Showing with 5 additions and 13 deletions.
  1. +3 −11 theme/templates/index.html
  2. +2 −2 theme/templates/tag.html
View
14 theme/templates/index.html
@@ -18,20 +18,12 @@
</tbody>
</table>
</div>
-<!--
- TODO:
<h2>Облако тегов</h2>
<div class="after-h2-wrapper center-element tag-cloud">
- <a href="#?" class="tag5">Django</a>,
- <a href="#?">Python</a>,
- <a href="#?" class="tag3">Model</a>,
- <a href="#?">QuerySet</a>,
- <a href="#?" class="tag2">ModelForm</a>,
- <a href="#?" class="tag4">Custom fields</a>,
- <a href="#?">widget</a>,
- <a href="#?" class="tag1">trilan packages</a>
+ {% for tag in tags %}
+ <a href="/{{ tag.get_relpath() }}" class="tag{{ tag.weight }}">{{ tag.name }}</a>{% if not loop.last%}, {% endif %}
+ {% endfor %}
</div>
--->
{% endblock %}
View
4 theme/templates/tag.html
@@ -1,11 +1,11 @@
{% extends "base.html" %}
-{% block title %}{{ tag }} &mdash; {{ super() }}{% endblock %}
+{% block title %}{{ tag.name }} &mdash; {{ super() }}{% endblock %}
{% block content %}
- <h2>Сниппеты с тегом &laquo;{{ tag }}&raquo;</h2>
+ <h2>Сниппеты с тегом &laquo;{{ tag.name }}&raquo;</h2>
<div class="after-h2-wrapper">
{% for snippet in snippets %}
<div class="snippet">
Please sign in to comment.
Something went wrong with that request. Please try again.