{% set model = createModel('OauthTokens','oauth').where('id','>',0) %} {{ createSearch('access_token','oauth','ilike:%{value}%','and') }} {% set model = applySearch(model,'oauth') %} {% set model = applyOrderBy(model,'oauth') %} {% set items = paginate(model,'oauth') %} {% if items.getItems()|length == 0 %} ... {% endif %} {% for item in items.getItems() %}
{% if item.expired == 1 %}
{{ labels.expired }}
{% else %} {{ component('semantic~status.dropdown',{ status: item.status, uuid: item.uuid, skip: [2,3,4,5] }) }} {% endif %} {{ item.date_created|dateFormat }} {{ item.date_expired|dateFormat }} {{ item.access_token|sliceText(10) }}... {{ (item.user.user_name is empty) ? item.user.email : item.user.user_name }} {{ item.resource_owner_id }} {{ item.driver }}
{{ labels.oauth }}{{ item.type }}
{% endfor %}