Support other plugins with @query in query lists
This commit is contained in:
parent
9f8a0de16d
commit
a1c3b083ac
@ -20,6 +20,8 @@
|
||||
= textilizable query, :description
|
||||
|
||||
- if count.positive?
|
||||
/ required by some helpers of other plugins
|
||||
- @query = query
|
||||
= render partial: query_block[:list_partial],
|
||||
locals: { query_block[:entities_var] => query.send(query_block[:entries_method],
|
||||
limit: settings[:max_entries] || DashboardContent::DEFAULT_MAX_ENTRIES),
|
||||
|
Loading…
x
Reference in New Issue
Block a user