summaryrefslogtreecommitdiff
path: root/templates/list_assemblies_simple.tpl
diff options
context:
space:
mode:
authorLester Caine <lester@lsces.co.uk>2026-05-27 20:00:26 +0100
committerLester Caine <lester@lsces.co.uk>2026-05-27 20:00:26 +0100
commita848cd4505432151802a4d956fc72e79fcd8e9f2 (patch)
tree2fdce1b48c5f01d54d55e016bb0491e493ca2c9c /templates/list_assemblies_simple.tpl
parent45cf442303d771b3c0ffa60e35317d9537fd0e49 (diff)
downloadstock-a848cd4505432151802a4d956fc72e79fcd8e9f2.tar.gz
stock-a848cd4505432151802a4d956fc72e79fcd8e9f2.tar.bz2
stock-a848cd4505432151802a4d956fc72e79fcd8e9f2.zip
Add simple table list for assemblies with thumbnails and description
Replaces panel/card layout with a sortable table view. Each row shows a thumbnail, title, description (truncated at 250 chars), and optional creator/date/hits columns driven by existing feature flags. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'templates/list_assemblies_simple.tpl')
-rw-r--r--templates/list_assemblies_simple.tpl58
1 files changed, 58 insertions, 0 deletions
diff --git a/templates/list_assemblies_simple.tpl b/templates/list_assemblies_simple.tpl
new file mode 100644
index 0000000..c80cfae
--- /dev/null
+++ b/templates/list_assemblies_simple.tpl
@@ -0,0 +1,58 @@
+{strip}
+<div class="listing stock">
+ <header>
+ <div class="floaticon">
+ {minifind prompt="Assemblies"}
+ </div>
+ <h1>{tr}Assemblies{/tr}{if $gQueryUserId} {tr}by{/tr} {displayname user_id=$gQueryUserId}{/if}</h1>
+ </header>
+
+ <section class="body">
+ <table class="table table-striped table-hover">
+ <thead>
+ <tr>
+ <th style="width:60px"></th>
+ <th>{smartlink ititle="Name" isort="title" idefault=1 icontrol=$listInfo}</th>
+ {if $gBitSystem->isFeatureActive('stock_list_user')}<th>{tr}Owner{/tr}</th>{/if}
+ {if $gBitSystem->isFeatureActive('stock_list_created')}<th>{smartlink ititle="Created" isort="created" icontrol=$listInfo}</th>{/if}
+ {if $gBitSystem->isFeatureActive('stock_list_lastmodif')}<th>{smartlink ititle="Modified" isort="last_modified" icontrol=$listInfo}</th>{/if}
+ {if $gBitSystem->isFeatureActive('stock_list_hits')}<th>{smartlink ititle="Hits" isort="hits" icontrol=$listInfo}</th>{/if}
+ </tr>
+ </thead>
+ <tbody>
+ {foreach from=$galleryList key=galleryId item=gal}
+ <tr>
+ <td>
+ {if $gal.thumbnail_url}
+ <a href="{$gal.display_url|escape}">
+ <img src="{$gal.thumbnail_url|escape}" alt="{$gal.title|escape}" style="max-height:48px;max-width:56px"/>
+ </a>
+ {/if}
+ </td>
+ <td>
+ <a href="{$gal.display_url|escape}">{$gal.title|escape}</a>
+ {if $gal.is_hidden|default:'n' == 'y' || $gal.is_private|default:'n' == 'y' || $gal.access_answer|default:false}
+ {booticon iname="icon-lock" ipackage="icons" iexplain="Restricted"}
+ {/if}
+ {if $gal.data}
+ <br/><small class="text-muted">{$gal.data|truncate:250|escape}</small>
+ {/if}
+ </td>
+ {if $gBitSystem->isFeatureActive('stock_list_user')}<td>{displayname hash=$gal nolink=true}</td>{/if}
+ {if $gBitSystem->isFeatureActive('stock_list_created')}<td>{$gal.created|bit_short_date}</td>{/if}
+ {if $gBitSystem->isFeatureActive('stock_list_lastmodif')}<td>{$gal.last_modified|bit_short_date}</td>{/if}
+ {if $gBitSystem->isFeatureActive('stock_list_hits')}<td>{$gal.hits}</td>{/if}
+ </tr>
+ {foreachelse}
+ <tr><td colspan="6" class="norecords">{tr}No assemblies found.{/tr}</td></tr>
+ {/foreach}
+ </tbody>
+ </table>
+
+ <nav>
+ {pagination}
+ </nav>
+
+ </section>
+</div>
+{/strip}