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 @@ -1,4 +1,7 @@ ## -*- coding: utf-8 -*- +## +## See also repo_settings.html +## <%inherit file="/base/base.html"/> <%def name="title()"> @@ -152,13 +155,13 @@
<%include file="repo_edit_perms.html"/>
+ -
- ${h.submit('save',_('Save'),class_="ui-btn large")} - ${h.reset('reset',_('Reset'),class_="ui-btn large")} -
+
+ ${h.submit('save',_('Save'),class_="ui-btn large")} + ${h.reset('reset',_('Reset'),class_="ui-btn large")}
- + ${h.end_form()} @@ -168,143 +171,148 @@
${_('Advanced settings')}
-

${_('Statistics')}

- ${h.form(url('repo_stats', repo_name=c.repo_info.repo_name),method='delete')} -
-
- ${h.submit('reset_stats_%s' % c.repo_info.repo_name,_('Reset current statistics'),class_="ui-btn",onclick="return confirm('"+_('Confirm to remove current statistics')+"');")} -
-
    -
  • ${_('Fetched to rev')}: ${c.stats_revision}/${c.repo_last_rev}
  • -
  • ${_('Stats gathered')}: ${c.stats_percentage}%
  • -
-
-
-
- ${h.end_form()} - - %if c.repo_info.clone_uri: -

${_('Remote')}

- ${h.form(url('repo_pull', repo_name=c.repo_info.repo_name),method='put')} -
-
- ${h.submit('remote_pull_%s' % c.repo_info.repo_name,_('Pull changes from remote location'),class_="ui-btn",onclick="return confirm('"+_('Confirm to pull changes from remote side')+"');")} - -
-
- ${h.end_form()} - %endif - -

${_('Cache')}

- ${h.form(url('repo_cache', repo_name=c.repo_info.repo_name),method='delete')} -
-
- ${h.submit('reset_cache_%s' % c.repo_info.repo_name,_('Invalidate repository cache'),class_="ui-btn",onclick="return confirm('"+_('Confirm to invalidate repository cache')+"');")} -
-
    -
  • ${_('Manually invalidate cache for this repository. On first access repository will be cached again')} -
  • -
-
-
- ${_('List of cached values')} - - - - - - - %for cache in c.repo_info.cache_keys: - - - - - - %endfor -
${_('Prefix')}${_('Key')}${_('Active')}
${cache.prefix or '-'}${cache.cache_key}${h.bool2icon(cache.cache_active)}
-
-
-
- ${h.end_form()} - -

${_('Public journal')}

- ${h.form(url('repo_public_journal', repo_name=c.repo_info.repo_name),method='put')} -
- ${h.hidden('auth_token',str(h.get_token()))} -
- %if c.in_public_journal: - ${h.submit('set_public_%s' % c.repo_info.repo_name,_('Remove from public journal'),class_="ui-btn")} - %else: - ${h.submit('set_public_%s' % c.repo_info.repo_name,_('Add to public journal'),class_="ui-btn")} - %endif -
-
- -
-
- ${h.end_form()} - -

${_('Locking')}

- ${h.form(url('repo_locking', repo_name=c.repo_info.repo_name),method='put')} -
-
- %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 -
+

${_('Statistics')}

+ ${h.form(url('repo_stats', repo_name=c.repo_info.repo_name),method='delete')} +
+
+ ${h.submit('reset_stats_%s' % c.repo_info.repo_name,_('Reset current statistics'),class_="ui-btn",onclick="return confirm('"+_('Confirm to remove current statistics')+"');")}
    -
  • ${_('Force locking on repository. Works only when anonymous access is disabled')} -
  • +
  • ${_('Fetched to rev')}: ${c.stats_revision}/${c.repo_last_rev}
  • +
  • ${_('Stats gathered')}: ${c.stats_percentage}%
  • +
+
+
+
+ ${h.end_form()} + + %if c.repo_info.clone_uri: +

${_('Remote')}

+ ${h.form(url('repo_pull', repo_name=c.repo_info.repo_name),method='put')} +
+
+ ${h.submit('remote_pull_%s' % c.repo_info.repo_name,_('Pull changes from remote location'),class_="ui-btn",onclick="return confirm('"+_('Confirm to pull changes from remote side')+"');")} + -
- ${h.end_form()} +
+
+ ${h.end_form()} + %endif + +

${_('Cache')}

+ ${h.form(url('repo_cache', repo_name=c.repo_info.repo_name),method='delete')} +
+
+ ${h.submit('reset_cache_%s' % c.repo_info.repo_name,_('Invalidate repository cache'),class_="ui-btn",onclick="return confirm('"+_('Confirm to invalidate repository cache')+"');")} +
+
    +
  • ${_('Manually invalidate cache for this repository. On first access repository will be cached again')} +
  • +
+
+
+ ${_('List of cached values')} + + + + + + + %for cache in c.repo_info.cache_keys: + + + + + + %endfor +
${_('Prefix')}${_('Key')}${_('Active')}
${cache.prefix or '-'}${cache.cache_key}${h.bool2icon(cache.cache_active)}
+
+
+
+ ${h.end_form()} -

${_('Set as fork of')}

- ${h.form(url('repo_as_fork', repo_name=c.repo_info.repo_name),method='put')} -
-
- ${h.select('id_fork_of','',c.repos_list,class_="medium")} - ${h.submit('set_as_fork_%s' % c.repo_info.repo_name,_('set'),class_="ui-btn",)} -
-
- -
-
- ${h.end_form()} +

${_('Public journal')}

+ ${h.form(url('repo_public_journal', repo_name=c.repo_info.repo_name),method='put')} +
+ ${h.hidden('auth_token',str(h.get_token()))} +
+ %if c.in_public_journal: + ${h.submit('set_public_%s' % c.repo_info.repo_name,_('Remove from public journal'),class_="ui-btn")} + %else: + ${h.submit('set_public_%s' % c.repo_info.repo_name,_('Add to public journal'),class_="ui-btn")} + %endif +
+
+ +
+
+ ${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')+"');")} - %if c.repo_info.forks.count(): - - ${ungettext('this repository has %s fork', 'this repository has %s forks', c.repo_info.forks.count()) % c.repo_info.forks.count()} - - - %endif -
+

${_('Locking')}

+ ${h.form(url('repo_locking', repo_name=c.repo_info.repo_name),method='put')} +
+
+ %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 +
+
+
    +
  • ${_('Force locking on repository. Works only when anonymous access is disabled')} +
  • +
+
+
+ ${h.end_form()} + +

${_('Set as fork of')}

+ ${h.form(url('repo_as_fork', repo_name=c.repo_info.repo_name),method='put')} +
+
+ ${h.select('id_fork_of','',c.repos_list,class_="medium")} + ${h.submit('set_as_fork_%s' % c.repo_info.repo_name,_('set'),class_="ui-btn",)} +
    -
  • ${_('This repository will be renamed in a special way in order to be unaccesible for RhodeCode and VCS systems. If you need to fully delete it from file system please do it manually')}
  • +
  • ${_('''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')+"');")} + %if c.repo_info.forks.count(): + - ${ungettext('this repository has %s fork', 'this repository has %s forks', c.repo_info.forks.count()) % c.repo_info.forks.count()} + + + %endif +
    +
  • ${_('This repository will be renamed in a special way in order to be unaccesible for RhodeCode and VCS systems. If you need to fully delete it from file system please do it manually')}
  • +
+
+
- ${h.end_form()} +
+ ${h.end_form()}
##TODO: this should be controlled by the VISUAL setting diff --git a/rhodecode/templates/settings/repo_settings.html b/rhodecode/templates/settings/repo_settings.html --- a/rhodecode/templates/settings/repo_settings.html +++ b/rhodecode/templates/settings/repo_settings.html @@ -1,4 +1,7 @@ ## -*- coding: utf-8 -*- +## +## See also repo_edit.html +## <%inherit file="/base/base.html"/> <%def name="title()"> @@ -30,10 +33,10 @@
-
- ${h.text('repo_name',class_="small")} +
+ ${h.text('repo_name',class_="medium")}
-
+
@@ -81,25 +84,24 @@
%if c.visual.repository_fields: - ## EXTRA FIELDS - %for field in c.repo_fields: -
-
- -
-
- ${h.text(field.field_key_prefixed, field.field_value, class_='medium')} - %if field.field_desc: - ${field.field_desc} - %endif -
-
- %endfor + ## EXTRA FIELDS + %for field in c.repo_fields: +
+
+ +
+
+ ${h.text(field.field_key_prefixed, field.field_value, class_='medium')} + %if field.field_desc: + ${field.field_desc} + %endif +
+
+ %endfor %endif - -
+
- +
<%include file="../admin/repos/repo_edit_perms.html"/> @@ -111,36 +113,28 @@ ${h.reset('reset',_('Reset'),class_="ui-btn large")}
+
+
+ ${h.end_form()} + +

${_('Delete')}

+ ${h.form(url('repo_settings_delete', 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')+"');")} +
    +
  • ${_('This repository will be renamed in a special way in order to be unaccesible for RhodeCode and VCS systems. If you need to fully delete it from file system please do it manually')}
  • +
+
+
+
${h.end_form()} - - -

${_('Delete repository')}

-
- -
- -
-
- -
-
- ${h.form(url('repo_settings_delete', 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')+"');")} -
-
-
    -
  • ${_('This repository will be renamed in a special way in order to be unaccesible for RhodeCode and VCS systems. If you need fully delete it from file system please do it manually')}
  • -
-
-
- ${h.end_form()} -
-
-
-