Show icons on project homepage list

This commit is contained in:
2016-11-24 19:42:12 +01:00
parent 5866cc54aa
commit 01e79f8565
3 changed files with 37 additions and 24 deletions

View File

@@ -79,7 +79,7 @@ script.
a.image(href="{{ url_for_node(node=n) }}")
| {% if n.picture %}
img(src="{{ n.picture.thumbnail('l', api=api) }}")
| {% else %}
| {% endif %}
| {% if n.node_type == 'post' %}
i.pi-newspaper
@@ -94,14 +94,14 @@ script.
| {% else %}
i.pi-folder
| {% endif %}
| {% endif %}
.info
a.title(href="{{ url_for_node(node=n) }}") {{ n.name }}
p.description(href="{{ url_for_node(node=n) }}")
| {% if n.node_type == 'post' %}
| {{ n.properties.content | striptags | truncate(125, end="... <small>read more</small>") | safe | hide_none }}
| {{ n.properties.content | striptags | truncate(140, end="... <small>read more</small>") | safe | hide_none }}
| {% else %}
| {{ n.description | striptags | truncate(125, end="... <small>read more</small>") | hide_none }}
| {{ n.description | striptags | truncate(140, end="... <small>read more</small>") | safe | hide_none }}
| {% endif %}
span.details
span.what {% if n.properties.content_type %}{{ n.properties.content_type | undertitle }}{% else %}{{ n.node_type | undertitle }}{% endif %} ·