Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
chris
flyers
Commits
2c18e169
Commit
2c18e169
authored
Jul 29, 2014
by
chris
Browse files
Remove linebreaks. Striptags when overviewing.
parent
33533592
Changes
1
Hide whitespace changes
Inline
Side-by-side
flyers/content/templates/content/page_detail.html
View file @
2c18e169
...
...
@@ -17,7 +17,7 @@
</div>
<div
class=
"pagetitle"
>
{{ object.title }}
</div>
{% if object.text %}
<div
class=
"pagetext"
>
{{ object.text|safe|urlize
|linebreaks
}}
</div>
<div
class=
"pagetext"
>
{{ object.text|safe|urlize }}
</div>
{% endif %}
</div>
...
...
@@ -30,7 +30,7 @@
{% endthumbnail %}
</a>
<div
class=
"pagetitle"
style=
";"
><a
href=
"/{{ page.slug }}/"
>
{{ page|title }}
</a></div>
{{ page.text|s
afe
|urlize|truncatewords:32 }}
{{ page.text|s
triptags
|urlize|truncatewords:32 }}
<div
style=
"clear:both;"
></div>
{% endfor %}
...
...
@@ -41,7 +41,7 @@
<div
class=
"page"
>
<div
id=
"agenda"
class=
"pagetitle"
>
Agenda {{ object.title }}
</div>
{% for a in object.agenda_set.all %}
{{ a.text|safe|urlize
|linebreaks
}}
{{ a.text|safe|urlize }}
{% endfor %}
</div>
</div>
...
...
@@ -80,7 +80,7 @@
<div
class=
"page"
>
<div
id=
"press"
class=
"pagetitle"
>
{{ object.title }} Press Reviews
</div>
{% for image in object.press_set.all %}
{{ image.text|safe|urlize
|linebreaks
}}
{{ image.text|safe|urlize }}
{% thumbnail image.image "120x120" crop="center" as im %}
<a
href=
"/static/{{ image.image }}"
rel=
"lightbox[{{ image.page }}]"
>
<img
class=
"thumb"
src=
"{{ im.url }}"
width=
"{{ im.width }}"
height=
"{{ im.height }} rel="
lightbox
"
title=
"{{ image.title }}"
>
...
...
@@ -96,7 +96,7 @@
<div
class=
"page"
>
<div
id=
"references"
class=
"pagetitle"
>
{{ object.title }} References
</div>
{% for o in object.reference_set.all %}
{{ o.text|safe|urlize
|linebreaks
}}
{{ o.text|safe|urlize }}
{% endfor %}
</div>
</div>
...
...
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