## snippet for displaying issue tracker settings ## usage: ## <%namespace name="its" file="/base/issue_tracker_settings.mako"/> ## ${its.issue_tracker_settings_table(patterns, form_url, delete_url)} ## ${its.issue_tracker_settings_test(test_url)} <%def name="issue_tracker_settings_table(patterns, form_url, delete_url)"> %for uid, entry in patterns: %endfor
${_('Description')} ${_('Pattern')} ${_('Url')} ${_('Prefix')}
Example ${'(?:#)(?P\d+)'} ${'https://myissueserver.com/${repo}/issue/${issue_id}'} # ${_('Read more')}
${entry.desc} ${h.text('new_pattern_description_'+uid, class_='medium-inline', value=entry.desc or '')} ${entry.pat} ${h.text('new_pattern_pattern_'+uid, class_='medium-inline', value=entry.pat or '')} ${entry.url} ${h.text('new_pattern_url_'+uid, class_='medium-inline', value=entry.url or '')} ${entry.pref} ${h.text('new_pattern_prefix_'+uid, class_='medium-inline', value=entry.pref or '')}

${_('Add new')}

<%def name="issue_tracker_new_row()"> <%def name="issue_tracker_settings_test(test_url)">
${_('Preview')}

${_('Test Pattern Preview')}