Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Tidy up title, image and content in item partial

  • Loading branch information...
commit 35b4958e18fec05cf4bef8b85cc64765b96df29b 1 parent 08c6848
@DHS authored
Showing with 13 additions and 12 deletions.
  1. +13 −12 themes/default/partials/item.html
View
25 themes/default/partials/item.html
@@ -8,30 +8,31 @@
{{ app.link_to(item.user.username, 'users', 'show', item.user.id) }}
{% endif %}
-{# Title & content #}
+{# Title #}
{% if app.config.items.titles.enabled and item.title %}
<h4>{{ app.link_to(item.title, 'items', 'show', item.id) }} <small>by {{ app.link_to(item.user.username, 'users', 'show', item.user.id) }}</small></h4>
-
- <p class="clear">{{ item.content|raw }}</p>
-{% elseif item.content %}
- <p>
- <strong>
- {{ app.link_to(item.user.username, 'users', 'show', item.user.id) }}
- </strong>
- {{ item.content|raw }}
- </p>
+ <p>
+{% else %}
+ <p><strong>
+ {{ app.link_to(item.user.username, 'users', 'show', item.user.id) }}
+ </strong>
{% endif %}
{# Image #}
{% if app.config.items.uploads.enabled and item.image and item.image != '0' %}
- {% if item.title %}<div class="clear">{% endif %}
+ <br class="clear" />
<a href="{{ app.echo_url_for('items', 'show', item.id) }}">
<img src="{{ app.config.base_dir ~ app.config.items.uploads.directory ~ '/stream/' ~ item.image }}"
style="margin: 0px 0px 10px 0px;" />
</a>
- {% if item.title %}</div>{% endif %}
+ <br class="clear" />
{% endif %}
+{# Content #}
+ {{ item.content|raw }}
+</p>
+
+
{# Share buttons #}
<!-- Share buttons -->
{% if not app.config.private %}
Please sign in to comment.
Something went wrong with that request. Please try again.