[ticket/14459] Use twig

PHPBB3-14459
This commit is contained in:
rubencm 2019-06-25 16:20:00 +00:00
parent 6876fcb46a
commit ef3b2a3f24

View file

@ -421,26 +421,25 @@
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<!-- BEGIN attachments --> {% for attachments in attachments %}
<tr> <tr>
<td> <td>
<!-- IF ! attachments.S_IN_MESSAGE -->{# File info of attachments in private messages is hidden #} {{ lang('EXTENSION_GROUP') ~ lang('COLON') }} <strong>{% if attachments.EXT_GROUP_NAME %}{{ attachments.EXT_GROUP_NAME }}{% else %}{{ lang('NO_EXT_GROUP') }}{% endif %}</strong>
<a href="{attachments.U_FILE}"><strong>{attachments.REAL_FILENAME}</strong></a><br /> {% if attachments.S_IN_MESSAGE %}
{L_EXTENSION_GROUP}{L_COLON} <strong><!-- IF attachments.EXT_GROUP_NAME -->{attachments.EXT_GROUP_NAME}<!-- ELSE -->{L_NO_EXT_GROUP}<!-- ENDIF --></strong><br /> <br>{{ attachments.L_DOWNLOAD_COUNT }}
<!-- ENDIF --> <br>{{ lang('IN') }} {{ lang('PRIVATE_MESSAGE') }}
{attachments.L_DOWNLOAD_COUNT}<br /> {% else %}
<!-- IF attachments.S_IN_MESSAGE --> <br><a href="{{ attachments.U_FILE }}"><strong>{{ attachments.REAL_FILENAME }}</strong></a>
{L_IN} {L_PRIVATE_MESSAGE} {% if attachments.COMMENT %}<br>{{ attachments.COMMENT }}{% endif %}
<!-- IF attachments.COMMENT -->{attachments.COMMENT}<br /><!-- ENDIF --> <br>{{ attachments.L_DOWNLOAD_COUNT }}
<!-- ELSE --> <br>{{ lang('TOPIC') ~ lang('COLON') }} <a href="{{ attachments.U_VIEW_TOPIC }}">{{ attachments.TOPIC_TITLE }}</a>
{L_TOPIC}{L_COLON} <a href="{attachments.U_VIEW_TOPIC}">{attachments.TOPIC_TITLE}</a> {% endif %}
<!-- ENDIF -->
</td> </td>
<td>{attachments.FILETIME}<br />{L_POST_BY_AUTHOR} {attachments.ATTACHMENT_POSTER}</td> <td>{{ attachments.FILETIME }}<br>{{ lang('POST_BY_AUTHOR') }} {{ attachments.ATTACHMENT_POSTER }}</td>
<td class="centered-text">{attachments.FILESIZE}</td> <td class="centered-text">{{ attachments.FILESIZE }}</td>
<td class="centered-text"><input type="checkbox" class="radio" name="delete[{attachments.ATTACH_ID}]" /></td> <td class="centered-text"><input type="checkbox" class="radio" name="delete[{{ attachments.ATTACH_ID }}]" /></td>
</tr> </tr>
<!-- END attachments --> {% endfor %}
</tbody> </tbody>
</table> </table>
<!-- ELSE --> <!-- ELSE -->