Unreported: display "no attachments" when no attachments are present.
This commit is contained in:
@@ -110,6 +110,7 @@ $lang = array_merge($lang, array(
|
||||
|
||||
// attachments
|
||||
'DOWNLOADS' => 'Downloads',
|
||||
'NO_ATTACHMENTS' => 'Keine Dateianhänge',
|
||||
|
||||
// links
|
||||
'LINKS' => 'Links',
|
||||
|
||||
@@ -117,7 +117,8 @@ $lang = array_merge($lang, array(
|
||||
'TOP_POSTER' => 'Top poster',
|
||||
|
||||
// attachments
|
||||
'DOWNLOADS' => 'Downloads',
|
||||
'DOWNLOADS' => 'Downloads',
|
||||
'NO_ATTACHMENTS' => 'No attachments',
|
||||
|
||||
// links
|
||||
'LINKS' => 'Links',
|
||||
|
||||
@@ -1,18 +1,20 @@
|
||||
<div class="panel">
|
||||
<div class="inner">
|
||||
<span class="corners-top"><span></span></span>
|
||||
<h3>{L_ATTACHMENTS}</h3>
|
||||
|
||||
<span style="float:left;"><strong>{L_FILENAME}</strong></span><br />
|
||||
<!-- BEGIN attach -->
|
||||
<span style="float:left;" class="gensmall"><img src="portal/images/icon_topic_attach.gif" alt="" /> <a href="viewtopic.php?p={attach.POST_MSG_ID}#p{attach.POST_MSG_ID}" ><strong>{attach.REAL_FILENAME}</strong></a></span><br style="clear:both" />
|
||||
<!-- <span style="float:right;padding-right:10px;" class="gensmall">{attach.FILESIZE}</span><br style="clear:both" /> -->
|
||||
<span style="float:left;padding-right:10px;">{L_FILESIZE}:</span><span style="float:right;padding-right:10px;" class="gensmall"><strong>{attach.FILESIZE}</strong></span><br style="clear:both" />
|
||||
<span style="float:left;padding-right:10px;">{L_DOWNLOADS}:</span><span style="float:right;padding-right:10px;" class="gensmall"><strong>{attach.DOWNLOAD_COUNT}</strong></span><br style="clear:both" />
|
||||
<hr />
|
||||
<!-- END attach -->
|
||||
|
||||
<span class="corners-bottom"><span></span></span>
|
||||
</div>
|
||||
</div>
|
||||
<br style="clear:both" />
|
||||
<div class="panel">
|
||||
<div class="inner">
|
||||
<span class="corners-top"><span></span></span>
|
||||
<h3>{L_ATTACHMENTS}</h3>
|
||||
<!-- IF .attach -->
|
||||
<span style="float:left;"><strong>{L_FILENAME}</strong></span><br />
|
||||
<!-- BEGIN attach -->
|
||||
<span style="float:left;" class="gensmall"><img src="portal/images/icon_topic_attach.gif" alt="" /> <a href="viewtopic.php?p={attach.POST_MSG_ID}#p{attach.POST_MSG_ID}" ><strong>{attach.REAL_FILENAME}</strong></a></span><br style="clear:both" />
|
||||
<!-- <span style="float:right;padding-right:10px;" class="gensmall">{attach.FILESIZE}</span><br style="clear:both" /> -->
|
||||
<span style="float:left;padding-right:10px;">{L_FILESIZE}:</span><span style="float:right;padding-right:10px;" class="gensmall"><strong>{attach.FILESIZE}</strong></span><br style="clear:both" />
|
||||
<span style="float:left;padding-right:10px;">{L_DOWNLOADS}:</span><span style="float:right;padding-right:10px;" class="gensmall"><strong>{attach.DOWNLOAD_COUNT}</strong></span><br style="clear:both" />
|
||||
<hr />
|
||||
<!-- END .attach -->
|
||||
<!-- ELSE -->
|
||||
<span style="float:left;" class="gensmall"><strong>{L_NO_ATTACHMENTS}</strong></span><br />
|
||||
<!-- ENDIF -->
|
||||
<span class="corners-bottom"><span></span></span>
|
||||
</div>
|
||||
</div>
|
||||
<br style="clear:both" />
|
||||
@@ -1,18 +1,22 @@
|
||||
<table class="tablebg" cellspacing="1" width="100%">
|
||||
<tr>
|
||||
<th>{L_ATTACHMENTS}</th>
|
||||
</tr>
|
||||
<tr class="row1">
|
||||
<td>
|
||||
<span style="float:left;"><strong>{L_FILENAME}</strong></span>
|
||||
<span style="float:right;padding-right:10px;"><strong>{L_FILESIZE}</strong></span><br />
|
||||
<!-- BEGIN attach -->
|
||||
<span style="float:left;" class="gensmall"><img src="portal/images/icon_topic_attach.gif" alt="" /> <a href="viewtopic.php?p={attach.POST_MSG_ID}#p{attach.POST_MSG_ID}" ><strong>{attach.REAL_FILENAME}</strong></a></span><br style="clear:both" />
|
||||
<span style="float:left;">{L_FILESIZE}:</span><span style="float:right;" class="gensmall"><strong>{attach.FILESIZE}</strong></span><br style="clear:both" />
|
||||
<span style="float:left;">{L_DOWNLOADS}:</span><span style="float:right;" class="gensmall"><strong>{attach.DOWNLOAD_COUNT}</strong></span><br style="clear:both" />
|
||||
<hr />
|
||||
<!-- END attach -->
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br />
|
||||
<table class="tablebg" cellspacing="1" width="100%">
|
||||
<tr>
|
||||
<th>{L_ATTACHMENTS}</th>
|
||||
</tr>
|
||||
<tr class="row1">
|
||||
<td>
|
||||
<!-- IF .attach -->
|
||||
<span style="float:left;"><strong>{L_FILENAME}</strong></span>
|
||||
<span style="float:right;padding-right:10px;"><strong>{L_FILESIZE}</strong></span><br />
|
||||
<!-- BEGIN attach -->
|
||||
<span style="float:left;" class="gensmall"><img src="portal/images/icon_topic_attach.gif" alt="" /> <a href="viewtopic.php?p={attach.POST_MSG_ID}#p{attach.POST_MSG_ID}" ><strong>{attach.REAL_FILENAME}</strong></a></span><br style="clear:both" />
|
||||
<span style="float:left;">{L_FILESIZE}:</span><span style="float:right;" class="gensmall"><strong>{attach.FILESIZE}</strong></span><br style="clear:both" />
|
||||
<span style="float:left;">{L_DOWNLOADS}:</span><span style="float:right;" class="gensmall"><strong>{attach.DOWNLOAD_COUNT}</strong></span><br style="clear:both" />
|
||||
<hr />
|
||||
<!-- END attach -->
|
||||
<!-- ELSE -->
|
||||
<span style="float:left;" class="gensmall"><strong>{L_NO_ATTACHMENTS}</strong></span>
|
||||
<!-- ENDIF -->
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br />
|
||||
Reference in New Issue
Block a user