Exemplo n.º 1
0
def tags():
    max_weight = 10
    min_weight = 1
    all_tags = Tag.list_with_reps().all()
    popular_tags = Tag.list_with_reps("tag_weight DESC", 3).all()
    return render_template('fe/tags.html', \
            tags=all_tags,\
            popular_tags=popular_tags,
            max_weight=max_weight,\
            min_weight=min_weight)
Exemplo n.º 2
0
def index(tag=None):
    post_list = Post.list(tag=tag).all()
    popular_tags = Tag.list_with_reps("tag_weight DESC", 3).all()
    return render_template('fe/index.html', \
            posts=post_list,\
            popular_tags=popular_tags)