##// END OF EJS Templates
descriptions: fixed rendering problem with certain meta-tags....
bart -
r4223:60c8ef52 stable
parent child
Show More
@@ -38,8 +38,7 from rhodecode.lib.user_log_filter impor
38 from rhodecode.lib.utils import make_db_config
38 from rhodecode.lib.utils import make_db_config
39 from rhodecode.lib.utils2 import (
39 from rhodecode.lib.utils2 import (
40 safe_str, safe_unicode, remove_prefix, obfuscate_url_pw,
40 safe_str, safe_unicode, remove_prefix, obfuscate_url_pw,
41 get_current_rhodecode_user, safe_int, datetime_to_time,
41 get_current_rhodecode_user, safe_int, action_logger_generic)
42 action_logger_generic)
43 from rhodecode.lib.vcs.backends import get_backend
42 from rhodecode.lib.vcs.backends import get_backend
44 from rhodecode.model import BaseModel
43 from rhodecode.model import BaseModel
45 from rhodecode.model.db import (
44 from rhodecode.model.db import (
@@ -199,9 +198,11 class RepoModel(BaseModel):
199
198
200 def get_repos_as_dict(self, repo_list=None, admin=False,
199 def get_repos_as_dict(self, repo_list=None, admin=False,
201 super_user_actions=False, short_name=None):
200 super_user_actions=False, short_name=None):
201
202 _render = get_current_request().get_partial_renderer(
202 _render = get_current_request().get_partial_renderer(
203 'rhodecode:templates/data_table/_dt_elements.mako')
203 'rhodecode:templates/data_table/_dt_elements.mako')
204 c = _render.get_call_context()
204 c = _render.get_call_context()
205 h = _render.get_helpers()
205
206
206 def quick_menu(repo_name):
207 def quick_menu(repo_name):
207 return _render('quick_menu', repo_name)
208 return _render('quick_menu', repo_name)
@@ -258,7 +259,7 class RepoModel(BaseModel):
258 "name": repo_lnk(repo.repo_name, repo.repo_type, repo.repo_state,
259 "name": repo_lnk(repo.repo_name, repo.repo_type, repo.repo_state,
259 repo.private, repo.archived, repo.fork),
260 repo.private, repo.archived, repo.fork),
260
261
261 "desc": desc(repo.description),
262 "desc": desc(h.escape(repo.description)),
262
263
263 "last_change": last_change(repo.updated_on),
264 "last_change": last_change(repo.updated_on),
264
265
@@ -41,7 +41,7 from rhodecode.model.db import (_hash_ke
41 UserGroup, Repository)
41 UserGroup, Repository)
42 from rhodecode.model.settings import VcsSettingsModel, SettingsModel
42 from rhodecode.model.settings import VcsSettingsModel, SettingsModel
43 from rhodecode.lib.caching_query import FromCache
43 from rhodecode.lib.caching_query import FromCache
44 from rhodecode.lib.utils2 import action_logger_generic, datetime_to_time
44 from rhodecode.lib.utils2 import action_logger_generic
45
45
46 log = logging.getLogger(__name__)
46 log = logging.getLogger(__name__)
47
47
@@ -708,8 +708,6 class RepoGroupModel(BaseModel):
708 for repo_group in repo_groups:
708 for repo_group in repo_groups:
709 repo_group.update_commit_cache()
709 repo_group.update_commit_cache()
710
710
711
712
713 def get_repo_groups_as_dict(self, repo_group_list=None, admin=False,
711 def get_repo_groups_as_dict(self, repo_group_list=None, admin=False,
714 super_user_actions=False):
712 super_user_actions=False):
715
713
@@ -763,7 +761,7 class RepoGroupModel(BaseModel):
763 "last_changeset": "",
761 "last_changeset": "",
764 "last_changeset_raw": "",
762 "last_changeset_raw": "",
765
763
766 "desc": desc(group.group_description, group.personal),
764 "desc": desc(h.escape(group.group_description), group.personal),
767 "top_level_repos": 0,
765 "top_level_repos": 0,
768 "owner": user_profile(group.User.username)
766 "owner": user_profile(group.User.username)
769 }
767 }
General Comments 0
You need to be logged in to leave comments. Login now