# HG changeset patch # User Bradley M. Kuhn # Date 2014-07-03 01:05:26 # Node ID 102ae2d847cbb2add79f8ba0d682a6d1e717e107 # Parent 7436b88cbd898bfe9da8d541846a37dc54080dfd Rename rhodecode_version to kallithea_version diff --git a/kallithea/controllers/admin/settings.py b/kallithea/controllers/admin/settings.py --- a/kallithea/controllers/admin/settings.py +++ b/kallithea/controllers/admin/settings.py @@ -351,7 +351,7 @@ class SettingsController(BaseController) test_email = request.POST.get('test_email') test_email_subj = 'RhodeCode test email' test_email_body = ('RhodeCode Email test, ' - 'RhodeCode version: %s' % c.rhodecode_version) + 'RhodeCode version: %s' % c.kallithea_version) if not test_email: h.flash(_('Please enter email address'), category='error') return redirect(url('admin_settings_email')) diff --git a/kallithea/controllers/api/api.py b/kallithea/controllers/api/api.py --- a/kallithea/controllers/api/api.py +++ b/kallithea/controllers/api/api.py @@ -524,7 +524,7 @@ class ApiController(JSONRPCController): 'modules': [,...] 'py_version': , 'platform': , - 'rhodecode_version': + 'kallithea_version': } error : null """ diff --git a/kallithea/lib/base.py b/kallithea/lib/base.py --- a/kallithea/lib/base.py +++ b/kallithea/lib/base.py @@ -282,7 +282,7 @@ class BaseController(WSGIController): """ __before__ is called before controller methods and after __call__ """ - c.rhodecode_version = __version__ + c.kallithea_version = __version__ rc_config = RhodeCodeSetting.get_app_settings() # Visual options diff --git a/kallithea/lib/dbmigrate/schema/db_1_8_0.py b/kallithea/lib/dbmigrate/schema/db_1_8_0.py --- a/kallithea/lib/dbmigrate/schema/db_1_8_0.py +++ b/kallithea/lib/dbmigrate/schema/db_1_8_0.py @@ -262,7 +262,7 @@ class RhodeCodeSetting(Base, BaseModel): 'modules': sorted(mods, key=lambda k: k[0].lower()), 'py_version': platform.python_version(), 'platform': platform.platform(), - 'rhodecode_version': kallithea.__version__ + 'kallithea_version': kallithea.__version__ } return info diff --git a/kallithea/lib/dbmigrate/schema/db_2_0_0.py b/kallithea/lib/dbmigrate/schema/db_2_0_0.py --- a/kallithea/lib/dbmigrate/schema/db_2_0_0.py +++ b/kallithea/lib/dbmigrate/schema/db_2_0_0.py @@ -307,7 +307,7 @@ class RhodeCodeSetting(Base, BaseModel): 'modules': sorted(mods, key=lambda k: k[0].lower()), 'py_version': platform.python_version(), 'platform': platform.platform(), - 'rhodecode_version': kallithea.__version__, + 'kallithea_version': kallithea.__version__, 'git_version': str(check_git_version()), 'git_path': kallithea.CONFIG.get('git_path') } diff --git a/kallithea/lib/dbmigrate/schema/db_2_0_1.py b/kallithea/lib/dbmigrate/schema/db_2_0_1.py --- a/kallithea/lib/dbmigrate/schema/db_2_0_1.py +++ b/kallithea/lib/dbmigrate/schema/db_2_0_1.py @@ -310,7 +310,7 @@ class RhodeCodeSetting(Base, BaseModel): 'modules': sorted(mods, key=lambda k: k[0].lower()), 'py_version': platform.python_version(), 'platform': safe_unicode(platform.platform()), - 'rhodecode_version': kallithea.__version__, + 'kallithea_version': kallithea.__version__, 'git_version': safe_unicode(check_git_version()), 'git_path': kallithea.CONFIG.get('git_path') } diff --git a/kallithea/lib/dbmigrate/schema/db_2_0_2.py b/kallithea/lib/dbmigrate/schema/db_2_0_2.py --- a/kallithea/lib/dbmigrate/schema/db_2_0_2.py +++ b/kallithea/lib/dbmigrate/schema/db_2_0_2.py @@ -310,7 +310,7 @@ class RhodeCodeSetting(Base, BaseModel): 'modules': sorted(mods, key=lambda k: k[0].lower()), 'py_version': platform.python_version(), 'platform': safe_unicode(platform.platform()), - 'rhodecode_version': kallithea.__version__, + 'kallithea_version': kallithea.__version__, 'git_version': safe_unicode(check_git_version()), 'git_path': kallithea.CONFIG.get('git_path') } diff --git a/kallithea/lib/dbmigrate/schema/db_2_1_0.py b/kallithea/lib/dbmigrate/schema/db_2_1_0.py --- a/kallithea/lib/dbmigrate/schema/db_2_1_0.py +++ b/kallithea/lib/dbmigrate/schema/db_2_1_0.py @@ -313,7 +313,7 @@ class RhodeCodeSetting(Base, BaseModel): 'modules': sorted(mods, key=lambda k: k[0].lower()), 'py_version': platform.python_version(), 'platform': safe_unicode(platform.platform()), - 'rhodecode_version': kallithea.__version__, + 'kallithea_version': kallithea.__version__, 'git_version': safe_unicode(check_git_version()), 'git_path': kallithea.CONFIG.get('git_path') } diff --git a/kallithea/lib/dbmigrate/schema/db_2_2_0.py b/kallithea/lib/dbmigrate/schema/db_2_2_0.py --- a/kallithea/lib/dbmigrate/schema/db_2_2_0.py +++ b/kallithea/lib/dbmigrate/schema/db_2_2_0.py @@ -314,7 +314,7 @@ class RhodeCodeSetting(Base, BaseModel): 'modules': sorted(mods, key=lambda k: k[0].lower()), 'py_version': platform.python_version(), 'platform': safe_unicode(platform.platform()), - 'rhodecode_version': kallithea.__version__, + 'kallithea_version': kallithea.__version__, 'git_version': safe_unicode(check_git_version()), 'git_path': kallithea.CONFIG.get('git_path') } diff --git a/kallithea/lib/dbmigrate/schema/db_2_2_3.py b/kallithea/lib/dbmigrate/schema/db_2_2_3.py --- a/kallithea/lib/dbmigrate/schema/db_2_2_3.py +++ b/kallithea/lib/dbmigrate/schema/db_2_2_3.py @@ -314,7 +314,7 @@ class RhodeCodeSetting(Base, BaseModel): 'modules': sorted(mods, key=lambda k: k[0].lower()), 'py_version': platform.python_version(), 'platform': safe_unicode(platform.platform()), - 'rhodecode_version': kallithea.__version__, + 'kallithea_version': kallithea.__version__, 'git_version': safe_unicode(check_git_version()), 'git_path': kallithea.CONFIG.get('git_path') } diff --git a/kallithea/model/db.py b/kallithea/model/db.py --- a/kallithea/model/db.py +++ b/kallithea/model/db.py @@ -314,7 +314,7 @@ class RhodeCodeSetting(Base, BaseModel): 'modules': sorted(mods, key=lambda k: k[0].lower()), 'py_version': platform.python_version(), 'platform': safe_unicode(platform.platform()), - 'rhodecode_version': kallithea.__version__, + 'kallithea_version': kallithea.__version__, 'git_version': safe_unicode(check_git_version()), 'git_path': kallithea.CONFIG.get('git_path') } diff --git a/kallithea/templates/admin/settings/settings_system.html b/kallithea/templates/admin/settings/settings_system.html --- a/kallithea/templates/admin/settings/settings_system.html +++ b/kallithea/templates/admin/settings/settings_system.html @@ -1,7 +1,7 @@
<% elems = [ - (_('RhodeCode version'), h.literal('%s %s' % (c.rhodecode_version, _('check for updates'))), ''), + (_('RhodeCode version'), h.literal('%s %s' % (c.kallithea_version, _('check for updates'))), ''), (_('Python version'), c.py_version, ''), (_('Platform'), c.platform, ''), (_('GIT version'), c.git_version, ''), diff --git a/kallithea/templates/base/root.html b/kallithea/templates/base/root.html --- a/kallithea/templates/base/root.html +++ b/kallithea/templates/base/root.html @@ -10,10 +10,10 @@ ## CSS ### <%def name="css()"> - - - - + + + + ## EXTRA FOR CSS ${self.css_extra()} @@ -81,18 +81,18 @@ var REPO_NAME = "${c.repo_name}"; %endif - - - - - + + + + + - - - - + + + + ## EXTRA FOR JS ${self.js_extra()}