Skip to content
This repository was archived by the owner on May 29, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions docs/source/start.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1879,8 +1879,6 @@ The complexity can be configured per overview table using the
``table.json`` configuration which is available for all tables in the
system.

.. _admin_sessiontimer:

Session Timer
=============
You can configure to show a session timer widget in the header of the
Expand Down Expand Up @@ -1950,6 +1948,18 @@ Default is true, so the menu is shown.
disable the menu the users will loose access to some default actions like
changing the ownership.

The context menu will show on default a entry to show/edit the ownership
of the currently selected item. You can configure to hide this entry
in case this option is not used in the application.

.. note::

The action will always be shown if the user has the `admin` role.


* layout.hide_ownership = false

Default is false, so the ownership menu entry is is shown.

Sessions
========
Expand Down
8 changes: 5 additions & 3 deletions ringo/templates/base.mako
Original file line number Diff line number Diff line change
Expand Up @@ -202,10 +202,12 @@
<button type="button" class="btn btn-default dropdown-toggle hidden-print"
data-toggle="dropdown"> ${_('Advanced')} <span class="caret"></span></button>
<ul id="context-menu-options" class="dropdown-menu pull-right" role="menu">
<li role="presentation" class="dropdown-header">${_('Administration')}</li>
<li><a href="${h.get_action_url(request, item, 'ownership')}">${_('Change ownership')}</a></li>
% if len(context_actions) > 0:
% if request.registry.settings.get("layout.hide_ownership") != "true" or request.user.has_role("admin"):
<li role="presentation" class="dropdown-header">${_('Administration')}</li>
<li><a href="${h.get_action_url(request, item, 'ownership')}">${_('Change ownership')}</a></li>
<li class="divider"></li>
% endif
% if len(context_actions) > 0:
<li role="presentation" class="dropdown-header">${_('Advanced actions')}</li>
% for action, icon in context_actions:
<li>
Expand Down