mirror of
https://github.com/wallabag/wallabag.git
synced 2024-12-25 00:50:29 +00:00
add previewPicture on baggy theme
This commit is contained in:
parent
e610143f51
commit
b026d3b115
3 changed files with 12 additions and 1 deletions
|
@ -37,7 +37,11 @@
|
||||||
<li><a title="{% trans %}delete{% endtrans %}" class="tool delete icon-trash icon" href="{{ path('delete_entry', { 'id': entry.id }) }}"><span>{% trans %}delete{% endtrans %}</span></a></li>
|
<li><a title="{% trans %}delete{% endtrans %}" class="tool delete icon-trash icon" href="{{ path('delete_entry', { 'id': entry.id }) }}"><span>{% trans %}delete{% endtrans %}</span></a></li>
|
||||||
<li><a href="{{ entry.url|e }}" target="_blank" title="{% trans %}original{% endtrans %} : {{ entry.title|e }}" class="tool link icon-link icon"><span>{{ entry.domainName }}</span></a></li>
|
<li><a href="{{ entry.url|e }}" target="_blank" title="{% trans %}original{% endtrans %} : {{ entry.title|e }}" class="tool link icon-link icon"><span>{{ entry.domainName }}</span></a></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
{% if entry.previewPicture is null %}
|
||||||
<p>{{ entry.content|striptags|slice(0, 300) }}…</p>
|
<p>{{ entry.content|striptags|slice(0, 300) }}…</p>
|
||||||
|
{% else %}
|
||||||
|
<img class="preview" src="{{ entry.previewPicture }}" alt="{{ entry.title|raw }}" />
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
@ -31,6 +31,9 @@
|
||||||
{% for tag in entry.tags %}<span class="mdi-action-label-outline">{{ tag.label }}</span>{% endfor %}
|
{% for tag in entry.tags %}<span class="mdi-action-label-outline">{{ tag.label }}</span>{% endfor %}
|
||||||
{{ render(controller( "WallabagCoreBundle:Tag:addTagForm", { 'id': entry.id } )) }}
|
{{ render(controller( "WallabagCoreBundle:Tag:addTagForm", { 'id': entry.id } )) }}
|
||||||
</aside>
|
</aside>
|
||||||
|
{% if entry.previewPicture is not null %}
|
||||||
|
<div><img class="preview" src="{{ entry.previewPicture }}" alt="{{ entry.title|raw }}" /></div>
|
||||||
|
{% endif %}
|
||||||
<article>
|
<article>
|
||||||
{{ entry.content | raw }}
|
{{ entry.content | raw }}
|
||||||
</article>
|
</article>
|
||||||
|
|
|
@ -448,6 +448,10 @@ footer a {
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
img.preview {
|
||||||
|
max-width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
.entry p {
|
.entry p {
|
||||||
color: #666;
|
color: #666;
|
||||||
font-size: 0.9em;
|
font-size: 0.9em;
|
||||||
|
|
Loading…
Reference in a new issue