blob: b6a59d8f1ea348a1f9ae5209558c6b3eb2989191 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
{strip}
{if $gContent->getLayout() == 'simple_list'}
<table class="table data">
<caption>{tr}Components{/tr} <span class="total">[ {$gContent->mItems|count|default:0} ]</span></caption>
<tr>
<th>{smartlink ititle=Name isort=title icontrol=$listInfo}</th>
{if $gBitSystem->isFeatureActive( 'stock_item_list_date' ) || $gBitSystem->isFeatureActive( 'stock_item_list_creator' )}
<th>{smartlink ititle=Created isort=created iorder=desc idefault=1 icontrol=$listInfo}</th>
{/if}
{if $gBitSystem->isFeatureActive( 'stock_item_list_hits' )}
<th>{smartlink ititle=Views isort="lch.hits" icontrol=$listInfo}</th>
{/if}
<th>{tr}Actions{/tr}</th>
</tr>
{foreach from=$gContent->mItems item=galItem}
<tr class="{cycle values="odd,even"}">
<td>
<h3><a href="{$galItem->getDisplayUrl()}">{$galItem->getTitle()|escape}</a></h3>
{if $gBitSystem->isFeatureActive( 'stock_item_list_desc' ) && $galItem->mInfo.data}
{$galItem->mInfo.parsed_data}
{/if}
{if $gBitSystem->isFeatureActive( 'stock_item_list_attid' )}
<small>{$galItem->mInfo.wiki_plugin_link}</small>
{/if}
</td>
{if $gBitSystem->isFeatureActive( 'stock_item_list_date' ) || $gBitSystem->isFeatureActive( 'stock_item_list_creator' )}
<td>
{if $gBitSystem->isFeatureActive( 'stock_item_list_date' )}
{$galItem->mInfo.created|bit_short_date}<br />
{/if}
{if $gBitSystem->isFeatureActive( 'stock_item_list_creator' )}
{tr}by{/tr}: {displayname hash=$galItem->mInfo}
{/if}
</td>
{/if}
{if $gBitSystem->isFeatureActive( 'stock_item_list_hits' )}
<td class="text-right">{$galItem->mInfo.hits|default:"{tr}none{/tr}"}</td>
{/if}
<td class="actionicon">
{if $gContent->isOwner( $galItem->mInfo ) || $gBitUser->isAdmin()}
<a href="{$smarty.const.STOCK_PKG_URL}edit_component.php?content_id={$galItem->mInfo.content_id}">{booticon iname="fa-pen-to-square" iexplain="Edit"}</a>
<a href="{$smarty.const.STOCK_PKG_URL}edit_component.php?content_id={$galItem->mInfo.content_id}&delete=1">{booticon iname="fa-trash" iexplain="Remove"}</a>
{/if}
</td>
</tr>
{foreachelse}
<tr><td class="norecords" colspan="4">{tr}This assembly has no components.{/tr}</td></tr>
{/foreach}
</table>
{else}
<div class="component-list">
{foreach from=$gContent->mItems item=galItem key=itemContentId}
{box class="box {$galItem->mInfo.content_type_guid}"}
{include file="bitpackage:liberty/services_inc.tpl" serviceLocation='body' serviceHash=$galItem->mInfo type=mini}
<h2><a href="{$galItem->getDisplayUrl()|escape}">{$galItem->getTitle()|escape}</a></h2>
{if $galItem->mInfo.data}
<p>{$galItem->mInfo.data|escape|truncate:120}</p>
{/if}
{/box}
{foreachelse}
<div class="norecords">{tr}This assembly has no components.{/tr}</div>
{/foreach}
</div>
<div class="clear"></div>
{/if}
{/strip}
|