admin

This model exposes some meta-information for the use in mod_admin templates.

There are two properties available:

  1. Pivot queue count

 Retrieve the count of the pivot queue, the queue which decides which resources need re-indexing.
 To view the number of items in the pivot queue, do the following:
 ```erlang
 {% print m.admin.pivot_queue_count %}
 ```
  1. Default published setting for the new-resource dialog

 {% if m.admin.rsc_dialog_is_published %} ... {% endif %}

Available Model API Paths

MethodPath patternDescription
get/pivot_queue_count/...Return pivot queue counts as a map with backlog and total (requires use permission on mod_admin).
get/rsc_dialog_is_published/...Return whether the admin new-resource dialog defaults is_published to true.
get/rsc_dialog_is_dependent/...Return whether the admin new-resource dialog defaults is_dependent to true.
get/rsc_dialog_hide_dependent/...Return whether the is_dependent option is hidden in the admin new-resource dialog.
get/edge_list_max_length/...Return the configured maximum number of edges shown in admin edge lists (undefined when unset).
get/connect_created_me/...Return whether newly created resources are auto-connected to the current user in admin flows.
get/is_notrack_refers/...Return whether admin “refers” views should avoid tracking referer updates (mod_admin.is_notrack_refers).

/+name marks a variable path segment. A trailing /... means extra path segments are accepted for further lookups.

Edit on GitHub