Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
memopol
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
32
Issues
32
List
Boards
Labels
Service Desk
Milestones
Merge Requests
6
Merge Requests
6
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Political Memory
memopol
Commits
aa51e307
Commit
aa51e307
authored
Jun 11, 2016
by
Nicolas Joyard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove template tags
parent
44c94b7a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
29 deletions
+0
-29
representatives_votes/templatetags/__init__.py
representatives_votes/templatetags/__init__.py
+0
-0
representatives_votes/templatetags/representatives_votes_tags.py
...ntatives_votes/templatetags/representatives_votes_tags.py
+0
-29
No files found.
representatives_votes/templatetags/__init__.py
deleted
100644 → 0
View file @
44c94b7a
representatives_votes/templatetags/representatives_votes_tags.py
deleted
100644 → 0
View file @
44c94b7a
from
django
import
template
from
django.utils.safestring
import
mark_safe
register
=
template
.
Library
()
@
register
.
filter
def
position_icon
(
position
):
if
position
==
'for'
:
return
mark_safe
(
'<i
\
aria-label="for"
\
class="fa fa-thumbs-up vote_positive"
\
title="for"
\
></i>'
)
elif
position
==
'against'
:
return
mark_safe
(
'<i
\
aria-label="against"
\
class="fa fa-thumbs-down vote_negative"
\
title="against"
\
></i>'
)
else
:
return
mark_safe
(
'<i
\
aria-label="abstain"
\
class="fa fa-circle-o vote_abstain"
\
title="abstain"
\
></i>'
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment