Skip to content
Snippets Groups Projects
Commit a197fc08 authored by Ben Adida's avatar Ben Adida
Browse files

fixed display of description

parent d77fcf33
No related branches found
No related tags found
No related merge requests found
...@@ -192,7 +192,7 @@ class Election(HeliosModel): ...@@ -192,7 +192,7 @@ class Election(HeliosModel):
@property @property
def description_bleached(self): def description_bleached(self):
return bleach.clean(self.description, tags = bleach.ALLOWED_TAGS + ['p']) return bleach.clean(self.description, tags = bleach.ALLOWED_TAGS + ['p', 'h4', 'h5', 'h3', 'h2', 'br'])
@classmethod @classmethod
def get_featured(cls): def get_featured(cls):
......
...@@ -45,7 +45,7 @@ this {{election.election_type}} is <u>not</u> featured on the front page. ...@@ -45,7 +45,7 @@ this {{election.election_type}} is <u>not</u> featured on the front page.
<br clear="left" /> <br clear="left" />
<div style="margin-bottom: 25px;margin-left: 15px; border-left: 1px solid #aaa; padding-left: 5px; font-size:1.3em; "> <div style="margin-bottom: 25px; ">
{{election.description_bleached|safe}} {{election.description_bleached|safe}}
</div> </div>
......
...@@ -63,3 +63,7 @@ height: 2.5em; ...@@ -63,3 +63,7 @@ height: 2.5em;
select { select {
width: auto; width: auto;
} }
ul {
margin-left: 20px;
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment