* redo page render following the logic of:
Response ─┬─> TextResponse ─> TextResponseImpl
└─> TemplateResponse ─> TemplateResponseImpl
* split up giant files, one per response path
* caching becomes a trait, implemented where necessary
* TextResponses (Ajax) can now be cached
* make use of previously defined php classes for js objects
* Tabs, Listview, Tooltip, Announcement, Markup, Book, ...
* \Aowow\Template\PageTemplate is the new class to be cached
* do not discard error messages generated after vars have been sent to template
and store in session for display at a later time
* implement tracking consent management
* move logic out of template into their respective endpoints
14 lines
285 B
Smarty
14 lines
285 B
Smarty
var _ = {
|
|
id: 'restock',
|
|
name: LANG.restock,
|
|
width: '10%',
|
|
value: 'restock',
|
|
after: 'stack',
|
|
compute: function(data, td) {
|
|
if (data.restock) {
|
|
let t = g_formatTimeElapsed(data.restock);
|
|
|
|
$WH.ae(td, $WH.ct(t));
|
|
}
|
|
}
|
|
};
|