<%namespace name="its" file="/base/issue_tracker_settings.mako"/>
${h.secure_form(h.route_path('edit_repo_issuetracker_update', repo_name=c.repo_name), id="inherit-form", method='POST', request=request)}
${h.checkbox('inherit_global_issuetracker', value='inherited', checked=c.settings_model.inherit_global_settings)} ${h.literal(_('Select to inherit global patterns for issue tracker.'))}

${_('Inherited Issue Tracker Patterns')}

%for uid, entry in c.global_patterns.items(): %endfor
${_('Description')} ${_('Pattern')} ${_('Url')} ${_('Prefix')}
${entry.desc} ${entry.pat} ${entry.url} ${entry.pref}

${_('Issue Tracker / Wiki Patterns')}

${its.issue_tracker_settings_table( patterns=c.repo_patterns.items(), form_url=h.route_path('edit_repo_issuetracker', repo_name=c.repo_info.repo_name), delete_url=h.route_path('edit_repo_issuetracker_delete', repo_name=c.repo_info.repo_name) )}
${h.end_form()}

${_('Test Patterns')}

${its.issue_tracker_new_row()} ${its.issue_tracker_settings_test(test_url=h.route_path('edit_repo_issuetracker_test', repo_name=c.repo_info.repo_name))}