<%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", request=request)}
${_('Inherit from global settings')}:
${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')}

${_('Description')} | ${_('Pattern')} | ${_('Url')} | ${_('Prefix')} |
--- | --- | --- | --- | ---

% for uid, entry in c.global_patterns.items():
${entry.desc} | ${entry.pat} | ${entry.url} | ${entry.pref} |
% endfor

### ${_('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.rhodecode_db_repo.repo_name), delete_url=h.route_path('edit_repo_issuetracker_delete', repo_name=c.rhodecode_db_repo.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.rhodecode_db_repo.repo_name))}