##// END OF EJS Templates
fixes for #89 ga code
marcink -
r891:cca72864 beta
parent child Browse files
Show More
@@ -137,7 +137,7 b' class SettingsController(BaseController)'
137 hgsettings2.app_settings_value = form_result['rhodecode_realm']
137 hgsettings2.app_settings_value = form_result['rhodecode_realm']
138
138
139 hgsettings3 = settings_model.get('ga_code')
139 hgsettings3 = settings_model.get('ga_code')
140 hgsettings3.app_settings_value = form_result['ga_code']
140 hgsettings3.app_settings_value = form_result['rhodecode_ga_code']
141
141
142
142
143
143
@@ -17,7 +17,7 b' class BaseController(WSGIController):'
17 def __before__(self):
17 def __before__(self):
18 c.rhodecode_version = __version__
18 c.rhodecode_version = __version__
19 c.rhodecode_name = config.get('rhodecode_title')
19 c.rhodecode_name = config.get('rhodecode_title')
20 c.ga_code = config.get('rhodeocode_ga_code')
20 c.ga_code = config.get('rhodecode_ga_code')
21 c.repo_name = get_repo_slug(request)
21 c.repo_name = get_repo_slug(request)
22 c.cached_repo_list = ScmModel().get_repos()
22 c.cached_repo_list = ScmModel().get_repos()
23 c.backends = BACKENDS.keys()
23 c.backends = BACKENDS.keys()
@@ -438,7 +438,7 b' def ApplicationSettingsForm():'
438 filter_extra_fields = False
438 filter_extra_fields = False
439 rhodecode_title = UnicodeString(strip=True, min=1, not_empty=True)
439 rhodecode_title = UnicodeString(strip=True, min=1, not_empty=True)
440 rhodecode_realm = UnicodeString(strip=True, min=1, not_empty=True)
440 rhodecode_realm = UnicodeString(strip=True, min=1, not_empty=True)
441 ga_code = UnicodeString(strip=True, min=1, not_empty=False)
441 rhodecode_ga_code = UnicodeString(strip=True, min=1, not_empty=False)
442
442
443 return _ApplicationSettingsForm
443 return _ApplicationSettingsForm
444
444
@@ -103,7 +103,7 b''
103 <label for="ga_code">${_('Google analytics code')}:</label>
103 <label for="ga_code">${_('Google analytics code')}:</label>
104 </div>
104 </div>
105 <div class="input">
105 <div class="input">
106 ${h.text('ga_code',size=30)}
106 ${h.text('rhodecode_ga_code',size=30)}
107 </div>
107 </div>
108 </div>
108 </div>
109
109
General Comments 0
You need to be logged in to leave comments. Login now