pyramid: use explicit c var for globals passed in templates instead of the global 'request'
This commit is contained in:
parent
8ff5e04569
commit
e6113a3d7b
4 changed files with 4 additions and 4 deletions
|
|
@ -14,7 +14,7 @@
|
|||
<input type='submit' value="${_('filter')}" class="btn" />
|
||||
${_('Audit logs')} - ${_ungettext('%s entry', '%s entries', c.audit_logs.item_count) % (c.audit_logs.item_count)}
|
||||
${h.end_form()}
|
||||
<p class="tooltip filterexample" title="${h.tooltip(h.journal_filter_help(request))}">${_('Example Queries')}</p>
|
||||
<p class="tooltip filterexample" title="${h.tooltip(h.journal_filter_help(c.pyramid_request))}">${_('Example Queries')}</p>
|
||||
</%def>
|
||||
|
||||
<%def name="menu_bar_nav()">
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@
|
|||
<input class="q_filter_box ${'' if c.filter_term else 'initial'}" id="j_filter" size="15" type="text" name="filter" value="${c.filter_term or ''}" placeholder="${_('audit filter...')}"/>
|
||||
<input type='submit' value="${_('filter')}" class="btn" />
|
||||
${h.end_form()}
|
||||
<p class="tooltip filterexample" style="position: inherit" title="${h.tooltip(h.journal_filter_help(request))}">${_('Example Queries')}</p>
|
||||
<p class="tooltip filterexample" style="position: inherit" title="${h.tooltip(h.journal_filter_help(c.pyramid_request))}">${_('Example Queries')}</p>
|
||||
|
||||
<%include file="/admin/admin_log_base.mako" />
|
||||
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@
|
|||
${_('Journal')} - ${ungettext('%s entry', '%s entries', c.journal_pager.item_count) % (c.journal_pager.item_count)}
|
||||
${h.end_form()}
|
||||
</h1>
|
||||
<p class="tooltip filterexample" title="${h.tooltip(h.journal_filter_help(request))}">${_('Example Queries')}</p>
|
||||
<p class="tooltip filterexample" title="${h.tooltip(h.journal_filter_help(c.pyramid_request))}">${_('Example Queries')}</p>
|
||||
</%def>
|
||||
<%def name="menu_bar_nav()">
|
||||
${self.menu_items(active='journal')}
|
||||
|
|
|
|||
|
|
@ -74,7 +74,7 @@
|
|||
% endfor
|
||||
<div class="field">
|
||||
<p class="filterexample" style="position: inherit" onclick="$('#search-help').toggle()">${_('Example Queries')}</p>
|
||||
<pre id="search-help" style="display: none">${h.tooltip(h.search_filter_help(c.searcher, request))}</pre>
|
||||
<pre id="search-help" style="display: none">${h.tooltip(h.search_filter_help(c.searcher, c.pyramid_request))}</pre>
|
||||
</div>
|
||||
|
||||
<div class="field">${c.runtime}</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue