mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
add util.get_vote -> get_vote
Jinja2 filter
This filter gets a vote of a request's user toward a voteinfo. Example: {% set vote = (voteinfo | get_vote(request)) %} Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
d606ebc0f1
commit
a6bba601a9
2 changed files with 8 additions and 0 deletions
|
@ -29,6 +29,7 @@ env.filters["dt"] = util.timestamp_to_datetime
|
|||
env.filters["as_timezone"] = util.as_timezone
|
||||
env.filters["dedupe_qs"] = util.dedupe_qs
|
||||
env.filters["urlencode"] = quote_plus
|
||||
env.filters["get_vote"] = util.get_vote
|
||||
|
||||
# Add captcha filters.
|
||||
env.filters["captcha_salt"] = captcha.captcha_salt_filter
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue