%! title = 'User interface' %> <%namespace name="lib" file="//lib.html" import="*"/> <%inherit file="//layout/admin.html" /> <% import splunk from splunk.appserver.mrsparkle.lib import util, i18n import splunk.entity as en %> <%def name="addNewLink(pathList)"> <% entities = en.getEntities('/'.join(pathList), namespace=namespace) try: hasCreateLink = filter((lambda x: x[0] == 'create'), entities.links) except: hasCreateLink = False newPath = '' if hasCreateLink: newPath = make_url(['manager', namespace] + pathList + ['_new'], _qs=dict(action='edit')) %> % if hasCreateLink: ${_('Add new')} % endif %def>
${_('')} | ${_('Actions')} | |
---|---|---|
${_('Time ranges')} | ${_('Add new')} | |
${_('Views')} | ${_('Add new')} | |
${_('View PDF scheduling')} | ||
${_('Navigation menus')} | ||
${_('Bulletin Messages')} | <%call expr="addNewLink(['messages'])"/> |