aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/adm/style/acp_attachments.html
diff options
context:
space:
mode:
authorrubencm <rubencm@gmail.com>2019-06-25 16:20:00 +0000
committerrubencm <rubencm@gmail.com>2019-06-25 16:20:00 +0000
commitef3b2a3f24016831aa86a39321a2b42c44e6c0e5 (patch)
tree3e45b3197456603b7a1e4fad7df439aa5f1ada15 /phpBB/adm/style/acp_attachments.html
parent6876fcb46a23159473b3ae2ac4cca4426a8b3728 (diff)
downloadforums-ef3b2a3f24016831aa86a39321a2b42c44e6c0e5.tar
forums-ef3b2a3f24016831aa86a39321a2b42c44e6c0e5.tar.gz
forums-ef3b2a3f24016831aa86a39321a2b42c44e6c0e5.tar.bz2
forums-ef3b2a3f24016831aa86a39321a2b42c44e6c0e5.tar.xz
forums-ef3b2a3f24016831aa86a39321a2b42c44e6c0e5.zip
[ticket/14459] Use twig
PHPBB3-14459
Diffstat (limited to 'phpBB/adm/style/acp_attachments.html')
-rw-r--r--phpBB/adm/style/acp_attachments.html31
1 files changed, 15 insertions, 16 deletions
diff --git a/phpBB/adm/style/acp_attachments.html b/phpBB/adm/style/acp_attachments.html
index 9da12234ab..bc6380ff9d 100644
--- a/phpBB/adm/style/acp_attachments.html
+++ b/phpBB/adm/style/acp_attachments.html
@@ -421,26 +421,25 @@
</tr>
</thead>
<tbody>
- <!-- BEGIN attachments -->
+ {% for attachments in attachments %}
<tr>
<td>
- <!-- IF ! attachments.S_IN_MESSAGE -->{# File info of attachments in private messages is hidden #}
- <a href="{attachments.U_FILE}"><strong>{attachments.REAL_FILENAME}</strong></a><br />
- {L_EXTENSION_GROUP}{L_COLON} <strong><!-- IF attachments.EXT_GROUP_NAME -->{attachments.EXT_GROUP_NAME}<!-- ELSE -->{L_NO_EXT_GROUP}<!-- ENDIF --></strong><br />
- <!-- ENDIF -->
- {attachments.L_DOWNLOAD_COUNT}<br />
- <!-- IF attachments.S_IN_MESSAGE -->
- {L_IN} {L_PRIVATE_MESSAGE}
- <!-- IF attachments.COMMENT -->{attachments.COMMENT}<br /><!-- ENDIF -->
- <!-- ELSE -->
- {L_TOPIC}{L_COLON} <a href="{attachments.U_VIEW_TOPIC}">{attachments.TOPIC_TITLE}</a>
- <!-- ENDIF -->
+ {{ lang('EXTENSION_GROUP') ~ lang('COLON') }} <strong>{% if attachments.EXT_GROUP_NAME %}{{ attachments.EXT_GROUP_NAME }}{% else %}{{ lang('NO_EXT_GROUP') }}{% endif %}</strong>
+ {% if attachments.S_IN_MESSAGE %}
+ <br>{{ attachments.L_DOWNLOAD_COUNT }}
+ <br>{{ lang('IN') }} {{ lang('PRIVATE_MESSAGE') }}
+ {% else %}
+ <br><a href="{{ attachments.U_FILE }}"><strong>{{ attachments.REAL_FILENAME }}</strong></a>
+ {% if attachments.COMMENT %}<br>{{ attachments.COMMENT }}{% endif %}
+ <br>{{ attachments.L_DOWNLOAD_COUNT }}
+ <br>{{ lang('TOPIC') ~ lang('COLON') }} <a href="{{ attachments.U_VIEW_TOPIC }}">{{ attachments.TOPIC_TITLE }}</a>
+ {% endif %}
</td>
- <td>{attachments.FILETIME}<br />{L_POST_BY_AUTHOR} {attachments.ATTACHMENT_POSTER}</td>
- <td class="centered-text">{attachments.FILESIZE}</td>
- <td class="centered-text"><input type="checkbox" class="radio" name="delete[{attachments.ATTACH_ID}]" /></td>
+ <td>{{ attachments.FILETIME }}<br>{{ lang('POST_BY_AUTHOR') }} {{ attachments.ATTACHMENT_POSTER }}</td>
+ <td class="centered-text">{{ attachments.FILESIZE }}</td>
+ <td class="centered-text"><input type="checkbox" class="radio" name="delete[{{ attachments.ATTACH_ID }}]" /></td>
</tr>
- <!-- END attachments -->
+ {% endfor %}
</tbody>
</table>
<!-- ELSE -->