Skip to content
Browse files

Fix whitespace in search template.

  • Loading branch information...
1 parent 4a4f26a commit 6ec9134475a6c02fc163eb2a2c8b7496101f306c @erikrose erikrose committed Mar 8, 2013
Showing with 7 additions and 9 deletions.
  1. +7 −9 dxr/templates/search.html
View
16 dxr/templates/search.html
@@ -98,19 +98,17 @@
{% block content %}
{% for icon, path, lines in results %}
<div class="result">
- <div class="path"
- style="background-image: url({{ wwwroot }}/static/icons/{{ icon }}.png);"
- >
- {%- set folders = path.split('/') -%}
- {%- for folder in folders -%}
- <a href="{{ wwwroot }}/{{ tree }}/{{"/".join(folders[0:loop.index])}}"
+ <div class="path" style="background-image: url({{ wwwroot }}/static/icons/{{ icon }}.png);">
+ {%- set folders = path.split('/') -%}
+ {%- for folder in folders -%}
+ <a href="{{ wwwroot }}/{{ tree }}/{{ "/".join(folders[0:loop.index]) }}"
{% if not loop.last %}
- data-path="{{"/".join(folders[0:loop.index])}}/"
+ data-path="{{ "/".join(folders[0:loop.index]) }}/"
{% endif %}
>{{ folder }}
- {%- if not loop.last -%} / {%- endif -%}
+ {%- if not loop.last -%} / {%- endif -%}
</a>
- {%- endfor -%}
+ {%- endfor -%}
</div>
{% for number, line in lines %}
<a class="snippet" href="{{ wwwroot }}/{{ tree }}/{{ path }}#l{{ number }}">

0 comments on commit 6ec9134

Please sign in to comment.
Something went wrong with that request. Please try again.