[COMPONENT][Attachment] Vinculate note information with attachment controllers
Various minor bug fixes
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
<figure>
|
||||
<img class="u-photo"
|
||||
alt="{{ attachment.getBestTitle(note) }}"
|
||||
src="{{ attachment.getThumbnailUrl() }}"
|
||||
alt="{{ title }}"
|
||||
src="{{ attachment.getThumbnailUrl(note) }}"
|
||||
width="{{ thumbnail.getWidth() }}"
|
||||
height="{{ thumbnail.getHeight() }}">
|
||||
<figcaption>
|
||||
{% if attachment.getFilename() is not null %}
|
||||
<a href="{{ path('attachment_show', {'id': attachment.getId()}) }}">{{ attachment.getBestTitle(note) }}</a>
|
||||
<a href="{{ attachment.getShowUrl(note) }}">{{ title }}</a>
|
||||
{% else %}
|
||||
{{ attachment.getBestTitle(note) }}
|
||||
{{ title }}
|
||||
{% endif %}
|
||||
</figcaption>
|
||||
</figure>
|
||||
|
Reference in New Issue
Block a user