#{extends 'CRUD/layout.html' /}

## &{'crud.list.title', type.name}

#{crud.search /}
#{crud.table fields:superadmin ? ['title', 'company', 'postedAt', 'online'] : ['title', 'postedAt', 'online'], sort: ['title', 'company', 'postedAt']} #{crud.custom 'postedAt'} ${object.postedAt.since()} #{/crud.custom} #{crud.custom 'company'} ${object.company} #{/crud.custom} #{crud.custom 'online'} #{if object.online} Online #{/if} #{else} Offline #{/else} #{/crud.custom} #{/crud.table}
#{crud.pagination /}

&{'crud.add', type.modelName}