<%namespace name="its" file="/base/issue_tracker_settings.html"/>
${h.secure_form(url('repo_issuetracker_save', repo_name=c.repo_name), method='post', id="inherit-form")}
${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=url('repo_settings_issuetracker', repo_name=c.repo_info.repo_name), delete_url=url('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=url('repo_issuetracker_test', repo_name=c.repo_info.repo_name))}