diff --git a/rhodecode/templates/admin/repos/repo_edit.html b/rhodecode/templates/admin/repos/repo_edit.html --- a/rhodecode/templates/admin/repos/repo_edit.html +++ b/rhodecode/templates/admin/repos/repo_edit.html @@ -108,6 +108,15 @@
+
+ +
+
+ ${h.checkbox('enable_locking',value="True")} + ${_('Enable lock-by-pulling on repository.')} +
+
+
@@ -196,26 +205,31 @@
${h.end_form()} -

${_('Delete')}

- ${h.form(url('repo', repo_name=c.repo_info.repo_name),method='delete')} +

${_('Locking')}

+ ${h.form(url('repo_locking', repo_name=c.repo_info.repo_name),method='put')}
- ${h.submit('remove_%s' % c.repo_info.repo_name,_('Remove this repository'),class_="ui-btn red",onclick="return confirm('"+_('Confirm to delete this repository')+"');")} + %if c.repo_info.locked[0]: + ${h.submit('set_unlock' ,_('Unlock locked repo'),class_="ui-btn",onclick="return confirm('"+_('Confirm to unlock repository')+"');")} + ${'Locked by %s on %s' % (h.person_by_id(c.repo_info.locked[0]),h.fmt_date(h.time_to_datetime(c.repo_info.locked[1])))} + %else: + ${h.submit('set_lock',_('lock repo'),class_="ui-btn",onclick="return confirm('"+_('Confirm to lock repository')+"');")} + ${_('Repository is not locked')} + %endif
-
+
${h.end_form()} @@ -231,10 +245,24 @@
  • ${_('''Manually set this repository as a fork of another from the list''')}
  • - + ${h.end_form()} - + +

    ${_('Delete')}

    + ${h.form(url('repo', repo_name=c.repo_info.repo_name),method='delete')} +
    +
    + ${h.submit('remove_%s' % c.repo_info.repo_name,_('Remove this repository'),class_="ui-btn red",onclick="return confirm('"+_('Confirm to delete this repository')+"');")} +
    +
    + +
    +
    + ${h.end_form()} -