Permalink
Browse files

Give some type listings a more compressed layout.

--HG--
rename : templates/type.html => templates/type_Document.html
rename : templates/type.html => templates/type_Implementation.html
rename : templates/type.html => templates/type_Individual.html
rename : templates/type.html => templates/type_Programming Language.html
rename : templates/type.html => templates/type_compressed.html
  • Loading branch information...
1 parent a82951b commit 6d4cf1af301dd632718364934650419cdb03aafe @cpressey cpressey committed Mar 22, 2013
View
24 templates/type.html
@@ -13,24 +13,24 @@
<p>
This is a list of {{ plural(key)|lower }} with entries in {{ link('Chrysoberyl') }}.
</p>
- {% if description %}
- {{ description_html }}
- {% endif %}
+ {%- if description -%}
+ {{- description_html -}}
+ {%- endif -%}
</section>
{% endblock description %}
{% block content %}
<ul>
-{% for thing in related('type')|sort -%}
- <li>
- {% if not data[key].suppress_page_generation %}
- {{ link(thing) }}
- {% else %}
- {{ thing }}
- {% endif %}
- </li>
-{% endfor %}
+ {%- for thing in related('type')|sort -%}
+ <li>
+ {%- if not data[key].suppress_page_generation -%}
+ {{- link(thing) -}}
+ {%- else -%}
+ {{- thing -}}
+ {%- endif -%}
+ </li>
+ {%- endfor -%}
</ul>
{% endblock content %}
View
1 templates/type_Document.html
@@ -0,0 +1 @@
+{% extends "type_compressed.html" %}
View
1 templates/type_Implementation.html
@@ -0,0 +1 @@
+{% extends "type_compressed.html" %}
View
1 templates/type_Individual.html
@@ -0,0 +1 @@
+{% extends "type_compressed.html" %}
View
1 templates/type_Programming Language.html
@@ -0,0 +1 @@
+{% extends "type_compressed.html" %}
View
14 templates/type_compressed.html
@@ -0,0 +1,14 @@
+{% extends "type.html" %}
+
+{% block content %}
+
+{%- for thing in related('type')|sort %}
+ ★
+ {% if not data[key].suppress_page_generation -%}
+ {{- link(thing) -}}
+ {%- else -%}
+ {{- thing -}}
+ {%- endif %}
+{%- endfor -%}
+
+{% endblock content %}

0 comments on commit 6d4cf1a

Please sign in to comment.