##// END OF EJS Templates
feat(configs): deprecared old hooks protocol and ssh wrapper....
feat(configs): deprecared old hooks protocol and ssh wrapper. New defaults are now set on v2 keys, so previous installation are automatically set to new keys. Fallback mode is still available.

File last commit:

r5037:bd722d6e default
r5496:cab50adf default
Show More
root.mako
165 lines | 6.6 KiB | application/x-mako | MakoHtmlLexer
templating: use .mako as extensions for template files.
r1282 <!DOCTYPE html>
<%
c.template_context['repo_name'] = getattr(c, 'repo_name', '')
core: added support for golang go import functionality
r2204 go_import_header = ''
templating: use .mako as extensions for template files.
r1282 if hasattr(c, 'rhodecode_db_repo'):
c.template_context['repo_type'] = c.rhodecode_db_repo.repo_type
landing-refs: create helpers for landing ref to make clear indication about type/name
r4370 c.template_context['repo_landing_commit'] = c.rhodecode_db_repo.landing_ref_name
go-to search: updated logic of goto switcher...
r3556 c.template_context['repo_id'] = c.rhodecode_db_repo.repo_id
dan
search: add support for elastic search 6...
r3319 c.template_context['repo_view_type'] = h.get_repo_view_type(request)
templating: use .mako as extensions for template files.
r1282
quick-search: use smart group search when browsing inside a repository group....
r2804 if getattr(c, 'repo_group', None):
c.template_context['repo_group_id'] = c.repo_group.group_id
dan
search: add support for elastic search 6...
r3319 c.template_context['repo_group_name'] = c.repo_group.group_name
quick-search: use smart group search when browsing inside a repository group....
r2804
templating: use .mako as extensions for template files.
r1282 if getattr(c, 'rhodecode_user', None) and c.rhodecode_user.user_id:
core: added user-notice logic to push notice messages....
r4300 c.template_context['rhodecode_user']['user_id'] = c.rhodecode_user.user_id
templating: use .mako as extensions for template files.
r1282 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)
security: use new safe escaped user attributes across the application....
r1815 c.template_context['rhodecode_user']['first_name'] = c.rhodecode_user.first_name
c.template_context['rhodecode_user']['last_name'] = c.rhodecode_user.last_name
templating: use .mako as extensions for template files.
r1282
c.template_context['visual']['default_renderer'] = h.get_visual_attr(c, 'default_renderer')
templates: expose default user data into templates for JS usage.
r1763 c.template_context['default_user'] = {
'username': h.DEFAULT_USER,
'user_id': 1
}
dan
search: add support for elastic search 6...
r3319 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'),
go-to search: updated logic of goto switcher...
r3556 'repo_id': c.template_context.get('repo_id'),
dan
search: add support for elastic search 6...
r3319 'repo_name': c.template_context.get('repo_name'),
'repo_view_type': c.template_context.get('repo_view_type'),
}
templates: expose default user data into templates for JS usage.
r1763
comments: added support for adding comment attachments using the artifacts logic....
r3973 c.template_context['attachment_store'] = {
'max_file_size_mb': 10,
'image_ext': ["png", "jpg", "gif", "jpeg"]
}
templating: use .mako as extensions for template files.
r1282 %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>${self.title()}</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
security: use no-referrer for outside link to stop leaking potential parameters such...
r2039
core: added support for golang go import functionality
r2204 ${h.go_import_header(request, getattr(c, 'rhodecode_db_repo', None))}
templates: use safer way to extract user_agent from request....
r2094 % if 'safari' in (request.user_agent or '').lower():
security: use no-referrer for outside link to stop leaking potential parameters such...
r2039 <meta name="referrer" content="origin">
% else:
<meta name="referrer" content="origin-when-cross-origin">
% endif
templating: use .mako as extensions for template files.
r1282 <%def name="robots()">
<meta name="robots" content="index, nofollow"/>
</%def>
${self.robots()}
<link rel="icon" href="${h.asset('images/favicon.ico', ver=c.rhodecode_version_hash)}" sizes="16x16 32x32" type="image/png" />
static: use same way of loading static in root and standalone error_document to prevent from having JS errors.
r3226 <script src="${h.asset('js/vendors/webcomponentsjs/custom-elements-es5-adapter.js', ver=c.rhodecode_version_hash)}"></script>
<script src="${h.asset('js/vendors/webcomponentsjs/webcomponents-bundle.js', ver=c.rhodecode_version_hash)}"></script>
templating: use .mako as extensions for template files.
r1282
## CSS definitions
<%def name="css()">
<link rel="stylesheet" type="text/css" href="${h.asset('css/style.css', ver=c.rhodecode_version_hash)}" media="screen"/>
## EXTRA FOR CSS
${self.css_extra()}
</%def>
## CSS EXTRA - optionally inject some extra CSS stuff needed for specific websites
<%def name="css_extra()">
</%def>
${self.css()}
## JAVASCRIPT
<%def name="js()">
<script src="${h.asset('js/rhodecode/i18n/%s.js' % c.language, ver=c.rhodecode_version_hash)}"></script>
<script type="text/javascript">
// register templateContext to pass template variables to JS
json: fixed calls to json after orjson implementation
r4974 var templateContext = ${h.str_json(c.template_context)|n};
templating: use .mako as extensions for template files.
r1282
home: moved home and repo group views into pyramid....
r1774 var APPLICATION_URL = "${h.route_path('home').rstrip('/')}";
frontend: change plugin initialization method
r2917 var APPLICATION_PLUGINS = [];
templating: use .mako as extensions for template files.
r1282 var ASSET_URL = "${h.asset('')}";
var DEFAULT_RENDERER = "${h.get_visual_attr(c, 'default_renderer')}";
var CSRF_TOKEN = "${getattr(c, 'csrf_token', '')}";
var APPENLIGHT = {
enabled: ${'true' if getattr(c, 'appenlight_enabled', False) else 'false'},
key: '${getattr(c, "appenlight_api_public_key", "")}',
% if getattr(c, 'appenlight_server_url', None):
serverUrl: '${getattr(c, "appenlight_server_url", "")}',
% endif
requestInfo: {
% if getattr(c, 'rhodecode_user', None):
ip: '${c.rhodecode_user.ip_addr}',
username: '${c.rhodecode_user.username}'
% endif
},
tags: {
rhodecode_version: '${c.rhodecode_version}',
rhodecode_edition: '${c.rhodecode_edition}'
}
};
</script>
<%include file="/base/plugins_base.mako"/>
<!--[if lt IE 9]>
js: organized and updated JS packages....
r2123 <script language="javascript" type="text/javascript" src="${h.asset('js/src/excanvas.min.js')}"></script>
templating: use .mako as extensions for template files.
r1282 <![endif]-->
<script language="javascript" type="text/javascript" src="${h.asset('js/rhodecode/routes.js', ver=c.rhodecode_version_hash)}"></script>
helpers: remove usage of pylons session.
r2095 <script> var alertMessagePayloads = ${h.flash.json_alerts(request=request)|n}; </script>
templating: use .mako as extensions for template files.
r1282 ## avoide escaping the %N
js: use minimized version by default
r4020 <script language="javascript" type="text/javascript" src="${h.asset('js/scripts.min.js', ver=c.rhodecode_version_hash)}"></script>
templating: use .mako as extensions for template files.
r1282 <script>CodeMirror.modeURL = "${h.asset('') + 'js/mode/%N/%N.js?ver='+c.rhodecode_version_hash}";</script>
## JAVASCRIPT EXTRA - optionally inject some extra JS for specificed templates
${self.js_extra()}
<script type="text/javascript">
Rhodecode = (function() {
function _Rhodecode() {
this.comments = new CommentsController();
}
return new _Rhodecode();
})();
$(document).ready(function(){
show_more_event();
timeagoActivate();
hovercacrds: added new tooltips and hovercards to expose certain information for objects shown in UI
r4026 tooltipActivate();
clipboard: added dummy placeholders for copying commits/paths via clipboard.js
r1935 clipboardActivate();
templating: use .mako as extensions for template files.
r1282 })
</script>
</%def>
## JAVASCRIPT EXTRA - optionally inject some extra JS for specificed templates
<%def name="js_extra()"></%def>
${self.js()}
<%def name="head_extra()"></%def>
${self.head_extra()}
## extra stuff
%if c.pre_code:
${c.pre_code|n}
%endif
</head>
<body id="body">
<noscript>
<div class="noscript-error">
${_('Please enable JavaScript to use RhodeCode Enterprise')}
</div>
</noscript>
${next.body()}
%if c.post_code:
${c.post_code|n}
%endif
<rhodecode-app></rhodecode-app>
</body>
</html>