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
radiopanik
panikweb
Commits
26882d73
Commit
26882d73
authored
Sep 11, 2013
by
fred
Browse files
performance: use stored fields for search results
parent
445986d6
Changes
4
Hide whitespace changes
Inline
Side-by-side
panikweb_templates/templates/emissions/search_result.html
View file @
26882d73
<a
href=
"{% url 'emission-view' slug=result.
object.
slug %}"
>
<a
href=
"{% url 'emission-view' slug=result.slug %}"
>
<span
class=
"icon-microphone"
></span>
<strong>
{{ result.
object.
title }}
</strong>
<strong>
{{ result.title }}
</strong>
<br
/>
<span>
{% if result.
object.
subtitle %}{{ result.
object.
subtitle }}{% else %} {% endif %}
</span>
<span>
{% if result.subtitle %}{{ result.subtitle }}{% else %} {% endif %}
</span>
</a>
panikweb_templates/templates/episodes/search_result.html
View file @
26882d73
<a
href=
"{% url 'episode-view' emission_slug=result.
object.
emission
.
slug slug=result.
object.
slug %}"
>
<a
href=
"{% url 'episode-view' emission_slug=result.emission
_
slug slug=result.slug %}"
>
<span
class=
"icon-volume-off "
></span>
<strong>
{{ result.
object.
title }}
</strong>
<strong>
{{ result.title }}
</strong>
<br
/>
<span
class=
"smooth"
>
{{ result.
object.
emission
.
title }}
</span>
<span
class=
"smooth"
>
{{ result.emission
_
title }}
</span>
</a>
panikweb_templates/templates/includes/related.html
View file @
26882d73
...
...
@@ -6,7 +6,7 @@
<ul
id=
"search-results"
class=
"list columns padded cf"
>
{% for result in more_like_this %}
{% if result.
object.
title %}
{% if result.title %}
<li
class=
"ellipsis"
>
{% search_result_template result %}
</li>
...
...
panikweb_templates/templates/news/search_result.html
View file @
26882d73
<a
href=
"{% url 'news-view' slug=result.
object.
slug %}"
>
<a
href=
"{% url 'news-view' slug=result.slug %}"
>
<span
class=
"icon-bullhorn"
></span>
<strong>
{{ result.
object.
title }}
</strong>
{% if result.
object.
date %}
<div
class=
"smooth"
>
{{ result.
object.
date|date:"D m/M"|lower }}
</div>
<strong>
{{ result.title }}
</strong>
{% if result.date %}
<div
class=
"smooth"
>
{{ result.date|date:"D m/M"|lower }}
</div>
{% endif %}
</a>
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