# ${self.title()}

<% c.template_context['repo_name'] = getattr(c, 'repo_name', '') go_import_header = '' if hasattr(c, 'rhodecode_db_repo'): c.template_context['repo_type'] = c.rhodecode_db_repo.repo_type c.template_context['repo_landing_commit'] = c.rhodecode_db_repo.landing_ref_name c.template_context['repo_id'] = c.rhodecode_db_repo.repo_id c.template_context['repo_view_type'] = h.get_repo_view_type(request) if getattr(c, 'repo_group', None): c.template_context['repo_group_id'] = c.repo_group.group_id c.template_context['repo_group_name'] = c.repo_group.group_name if getattr(c, 'rhodecode_user', None) and c.rhodecode_user.user_id: c.template_context['rhodecode_user']['user_id'] = c.rhodecode_user.user_id c.template_context['rhodecode_user']['username'] = c.rhodecode_user.username c.template_context['rhodecode_user']['email'] = c.rhodecode_user.email c.template_context['rhodecode_user']['notification_status'] = c.rhodecode_user.get_instance().user_data.get('notification_status', True) c.template_context['rhodecode_user']['first_name'] = c.rhodecode_user.first_name c.template_context['rhodecode_user']['last_name'] = c.rhodecode_user.last_name c.template_context['visual']['default_renderer'] = h.get_visual_attr(c, 'default_renderer') c.template_context['default_user'] = { 'username': h.DEFAULT_USER, 'user_id': 1 } c.template_context['search_context'] = { 'repo_group_id': c.template_context.get('repo_group_id'), 'repo_group_name': c.template_context.get('repo_group_name'), 'repo_id': c.template_context.get('repo_id'), 'repo_name': c.template_context.get('repo_name'), 'repo_view_type': c.template_context.get('repo_view_type'), } c.template_context['attachment_store'] = { 'max_file_size_mb': 10, 'image_ext': ["png", "jpg", "gif", "jpeg"] } %>
${h.go_import_header(request, getattr(c, 'rhodecode_db_repo', None))} % if 'safari' in (request.user_agent or '').lower(): % else: % endif <%def name="robots()"> ${self.robots()}
## CSS definitions <%def name="css()"> ## EXTRA FOR CSS ${self.css_extra()} ## CSS EXTRA - optionally inject some extra CSS stuff needed for specific websites <%def name="css_extra()"> ${self.css()} ## JAVASCRIPT <%def name="js()">
<%include file="/base/plugins_base.mako"/>
## avoide escaping the %N
## JAVASCRIPT EXTRA - optionally inject some extra JS for specificed templates ${self.js_extra()}
## JAVASCRIPT EXTRA - optionally inject some extra JS for specificed templates <%def name="js_extra()"> ${self.js()} <%def name="head_extra()"> ${self.head_extra()} ## extra stuff %if c.pre_code: ${c.pre_code|n} %endif
${next.body()} %if c.post_code: ${c.post_code|n} %endif