diff --git a/docs/theme/nature/layout.html b/docs/theme/nature/layout.html
--- a/docs/theme/nature/layout.html
+++ b/docs/theme/nature/layout.html
@@ -3,13 +3,13 @@
{% block sidebarlogo %}
Support RhodeCode development.
-
+
diff --git a/rhodecode/templates/admin/admin.html b/rhodecode/templates/admin/admin.html
--- a/rhodecode/templates/admin/admin.html
+++ b/rhodecode/templates/admin/admin.html
@@ -16,39 +16,39 @@
%def>
<%def name="page_nav()">
- ${self.menu('admin')}
+ ${self.menu('admin')}
%def>
<%def name="main()">
-
-
- ${self.breadcrumbs()}
-
-
-
+
+
+ ${self.breadcrumbs()}
+
+
+
diff --git a/rhodecode/templates/admin/admin_log.html b/rhodecode/templates/admin/admin_log.html
--- a/rhodecode/templates/admin/admin_log.html
+++ b/rhodecode/templates/admin/admin_log.html
@@ -1,40 +1,40 @@
## -*- coding: utf-8 -*-
%if c.users_log:
-
- ${_('Username')}
- ${_('Action')}
- ${_('Repository')}
- ${_('Date')}
- ${_('From IP')}
-
+
+ ${_('Username')}
+ ${_('Action')}
+ ${_('Repository')}
+ ${_('Date')}
+ ${_('From IP')}
+
- %for cnt,l in enumerate(c.users_log):
-
-
+ %for cnt,l in enumerate(c.users_log):
+
+
%if l.user is not None:
${h.link_to(l.user.username,h.url('edit_user', id=l.user.user_id))}
%else:
${l.username}
%endif
- ${h.action_parser(l)[0]()}
-
+
${h.action_parser(l)[0]()}
+
${h.literal(h.action_parser(l)[1]())}
-
-
- %if l.repository is not None:
- ${h.link_to(l.repository.repo_name,h.url('summary_home',repo_name=l.repository.repo_name))}
- %else:
- ${l.repository_name}
- %endif
-
+
+
+ %if l.repository is not None:
+ ${h.link_to(l.repository.repo_name,h.url('summary_home',repo_name=l.repository.repo_name))}
+ %else:
+ ${l.repository_name}
+ %endif
+
- ${h.fmt_date(l.action_date)}
- ${l.user_ip}
-
- %endfor
+ ${h.fmt_date(l.action_date)}
+ ${l.user_ip}
+
+ %endfor
%def>
diff --git a/rhodecode/templates/admin/permissions/permissions.html b/rhodecode/templates/admin/permissions/permissions.html
--- a/rhodecode/templates/admin/permissions/permissions.html
+++ b/rhodecode/templates/admin/permissions/permissions.html
@@ -12,7 +12,7 @@
%def>
<%def name="page_nav()">
- ${self.menu('admin')}
+ ${self.menu('admin')}
%def>
<%def name="main()">
@@ -36,49 +36,49 @@
-
-
- ${_('Repository')}:
-
-
- ${h.select('default_repo_perm','',c.repo_perms_choices)}
+
+
+ ${_('Repository')}:
+
+
+ ${h.select('default_repo_perm','',c.repo_perms_choices)}
- ${h.checkbox('overwrite_default_repo','true')}
-
-
- ${_('overwrite existing settings')}
-
-
-
-
- ${_('Repository group')}:
-
-
- ${h.select('default_group_perm','',c.group_perms_choices)}
+ ${h.checkbox('overwrite_default_repo','true')}
+
+
+ ${_('overwrite existing settings')}
+
+
+
+
+ ${_('Repository group')}:
+
+
+ ${h.select('default_group_perm','',c.group_perms_choices)}
${h.checkbox('overwrite_default_group','true')}
${_('overwrite existing settings')}
-
-
-
-
- ${_('Registration')}:
-
-
- ${h.select('default_register','',c.register_choices)}
-
-
+
+
+
+
+ ${_('Registration')}:
+
+
+ ${h.select('default_register','',c.register_choices)}
+
+
${_('Repository creation')}:
-
- ${h.select('default_create','',c.create_choices)}
-
+
+ ${h.select('default_create','',c.create_choices)}
+
@@ -88,10 +88,10 @@
${h.select('default_fork','',c.fork_choices)}
-
${h.end_form()}
diff --git a/rhodecode/templates/admin/repos/repo_add.html b/rhodecode/templates/admin/repos/repo_add.html
--- a/rhodecode/templates/admin/repos/repo_add.html
+++ b/rhodecode/templates/admin/repos/repo_add.html
@@ -14,15 +14,15 @@
%def>
<%def name="page_nav()">
- ${self.menu('admin')}
+ ${self.menu('admin')}
%def>
<%def name="main()">
-
-
-
- ${self.breadcrumbs()}
-
+
+
+
+ ${self.breadcrumbs()}
+
<%include file="repo_add_base.html"/>
%def>
diff --git a/rhodecode/templates/admin/repos/repo_add_create_repository.html b/rhodecode/templates/admin/repos/repo_add_create_repository.html
--- a/rhodecode/templates/admin/repos/repo_add_create_repository.html
+++ b/rhodecode/templates/admin/repos/repo_add_create_repository.html
@@ -6,11 +6,11 @@
%def>
<%def name="breadcrumbs_links()">
- ${_('add new repository')}
+ ${_('add new repository')}
%def>
<%def name="page_nav()">
- ${self.menu('admin')}
+ ${self.menu('admin')}
%def>
<%def name="main()">
diff --git a/rhodecode/templates/admin/repos/repo_edit.html b/rhodecode/templates/admin/repos/repo_edit.html
--- a/rhodecode/templates/admin/repos/repo_edit.html
+++ b/rhodecode/templates/admin/repos/repo_edit.html
@@ -14,7 +14,7 @@
%def>
<%def name="page_nav()">
- ${self.menu('admin')}
+ ${self.menu('admin')}
%def>
<%def name="main()">
@@ -35,24 +35,24 @@
${h.text('repo_name',class_="medium")}
-
-
- ${_('Clone uri')}:
-
-
+
${_('Type')}:
diff --git a/rhodecode/templates/admin/repos/repo_edit_perms.html b/rhodecode/templates/admin/repos/repo_edit_perms.html
--- a/rhodecode/templates/admin/repos/repo_edit_perms.html
+++ b/rhodecode/templates/admin/repos/repo_edit_perms.html
@@ -104,10 +104,10 @@ function ajaxActionUser(user_id, field_i
function ajaxActionUsersGroup(users_group_id,field_id){
var sUrl = "${h.url('delete_repo_users_group',repo_name=c.repo_name)}";
var callback = {
- success:function(o){
- var tr = YUD.get(String(field_id));
- tr.parentNode.removeChild(tr);
- },
+ success:function(o){
+ var tr = YUD.get(String(field_id));
+ tr.parentNode.removeChild(tr);
+ },
failure:function(o){
alert("${_('Failed to remove users group')}");
},
diff --git a/rhodecode/templates/admin/repos/repos.html b/rhodecode/templates/admin/repos/repos.html
--- a/rhodecode/templates/admin/repos/repos.html
+++ b/rhodecode/templates/admin/repos/repos.html
@@ -9,7 +9,7 @@
${h.link_to(_('Admin'),h.url('admin_home'))} »
0 ${_('repositories')}
%def>
<%def name="page_nav()">
- ${self.menu('admin')}
+ ${self.menu('admin')}
%def>
<%def name="main()">
@@ -69,7 +69,7 @@
var myColumnDefs = [
{key:"menu",label:"",sortable:false,className:"quick_repo_menu hidden"},
{key:"name",label:"${_('Name')}",sortable:true,
- sortOptions: { sortFunction: nameSort }},
+ sortOptions: { sortFunction: nameSort }},
{key:"desc",label:"${_('Description')}",sortable:true},
{key:"last_changeset",label:"${_('Tip')}",sortable:true,
sortOptions: { sortFunction: revisionSort }},
@@ -126,11 +126,11 @@
};
YUE.on('q_filter','click',function(){
- if(!YUD.hasClass('q_filter', 'loaded')){
- YUD.get('q_filter').value = '';
- //TODO: load here full list later to do search within groups
- YUD.addClass('q_filter', 'loaded');
- }
+ if(!YUD.hasClass('q_filter', 'loaded')){
+ YUD.get('q_filter').value = '';
+ //TODO: load here full list later to do search within groups
+ YUD.addClass('q_filter', 'loaded');
+ }
});
YUE.on('q_filter','keyup',function (e) {
diff --git a/rhodecode/templates/admin/repos_groups/repos_group_edit_perms.html b/rhodecode/templates/admin/repos_groups/repos_group_edit_perms.html
--- a/rhodecode/templates/admin/repos_groups/repos_group_edit_perms.html
+++ b/rhodecode/templates/admin/repos_groups/repos_group_edit_perms.html
@@ -113,7 +113,7 @@ YUE.onDOMReady(function () {
YUD.setStyle('add_perm_input', 'display', 'none');
}
YAHOO.util.Event.addListener('add_perm', 'click', function () {
- addPermAction(${_tmpl}, ${c.users_array|n}, ${c.users_groups_array|n});
+ addPermAction(${_tmpl}, ${c.users_array|n}, ${c.users_groups_array|n});
});
});
diff --git a/rhodecode/templates/admin/repos_groups/repos_groups_edit.html b/rhodecode/templates/admin/repos_groups/repos_groups_edit.html
--- a/rhodecode/templates/admin/repos_groups/repos_groups_edit.html
+++ b/rhodecode/templates/admin/repos_groups/repos_groups_edit.html
@@ -41,23 +41,23 @@
-
-
- ${_('Description')}:
-
-
- ${h.textarea('group_description',cols=23,rows=5,class_="medium")}
-
-
+
+
+ ${_('Description')}:
+
+
+ ${h.textarea('group_description',cols=23,rows=5,class_="medium")}
+
+
-
-
- ${_('Group parent')}:
-
-
- ${h.select('group_parent_id','',c.repo_groups,class_="medium")}
-
-
+
+
+ ${_('Group parent')}:
+
+
+ ${h.select('group_parent_id','',c.repo_groups,class_="medium")}
+
+
${_('Permissions')}:
diff --git a/rhodecode/templates/admin/settings/hooks.html b/rhodecode/templates/admin/settings/hooks.html
--- a/rhodecode/templates/admin/settings/hooks.html
+++ b/rhodecode/templates/admin/settings/hooks.html
@@ -10,7 +10,7 @@
%def>
<%def name="page_nav()">
- ${self.menu('admin')}
+ ${self.menu('admin')}
%def>
<%def name="main()">
@@ -26,15 +26,15 @@
% for hook in c.hooks:
% endfor
-
+
${_('Custom hooks')}
diff --git a/rhodecode/templates/admin/settings/settings.html b/rhodecode/templates/admin/settings/settings.html
--- a/rhodecode/templates/admin/settings/settings.html
+++ b/rhodecode/templates/admin/settings/settings.html
@@ -10,7 +10,7 @@
%def>
<%def name="page_nav()">
- ${self.menu('admin')}
+ ${self.menu('admin')}
%def>
<%def name="main()">
@@ -27,20 +27,20 @@
-
-
- ${_('rescan option')}:
-
-
-
- ${h.checkbox('destroy',True)}
-
-
- ${_('destroy old data')}
-
+
+
+ ${_('rescan option')}:
+
+
+
+ ${h.checkbox('destroy',True)}
+
+
+ ${_('destroy old data')}
+
${_('Rescan repositories location for new repositories. Also deletes obsolete if `destroy` flag is checked ')}
-
-
+
+
${h.submit('rescan',_('Rescan repositories'),class_="ui-btn large")}
@@ -196,12 +196,12 @@
${_('Web')}:
-
- ${h.checkbox('web_push_ssl', 'True')}
- ${_('require ssl for vcs operations')}
-
+
+ ${h.checkbox('web_push_ssl', 'True')}
+ ${_('require ssl for vcs operations')}
+
${_('RhodeCode will require SSL for pushing or pulling. If SSL is missing it will return HTTP Error 406: Not Acceptable')}
-
+
@@ -209,14 +209,14 @@
${_('Hooks')}:
-
- ${h.checkbox('hooks_changegroup_update','True')}
- ${_('Update repository after push (hg update)')}
-
-
- ${h.checkbox('hooks_changegroup_repo_size','True')}
- ${_('Show repository size after push')}
-
+
+ ${h.checkbox('hooks_changegroup_update','True')}
+ ${_('Update repository after push (hg update)')}
+
+
+ ${h.checkbox('hooks_changegroup_repo_size','True')}
+ ${_('Show repository size after push')}
+
${h.checkbox('hooks_changegroup_push_logger','True')}
${_('Log user push commands')}
@@ -225,7 +225,7 @@
${h.checkbox('hooks_outgoing_pull_logger','True')}
${_('Log user pull commands')}
-
+
${h.link_to(_('advanced setup'),url('admin_edit_setting',setting_id='hooks'),class_="ui-btn")}
@@ -257,9 +257,9 @@
${h.text('paths_root_path',size=30,readonly="readonly")}
-
- ${_('unlock')}
+
+ ${_('unlock')}
${_('Location where repositories are stored. After changing this value a restart, and rescan is required')}
@@ -329,8 +329,8 @@
diff --git a/rhodecode/templates/admin/users/user_add.html b/rhodecode/templates/admin/users/user_add.html
--- a/rhodecode/templates/admin/users/user_add.html
+++ b/rhodecode/templates/admin/users/user_add.html
@@ -13,7 +13,7 @@
%def>
<%def name="page_nav()">
- ${self.menu('admin')}
+ ${self.menu('admin')}
%def>
<%def name="main()">
@@ -93,7 +93,7 @@
${h.submit('save',_('save'),class_="ui-btn large")}
-
+
${h.end_form()}
diff --git a/rhodecode/templates/admin/users/user_edit.html b/rhodecode/templates/admin/users/user_edit.html
--- a/rhodecode/templates/admin/users/user_edit.html
+++ b/rhodecode/templates/admin/users/user_edit.html
@@ -14,7 +14,7 @@
%def>
<%def name="page_nav()">
- ${self.menu('admin')}
+ ${self.menu('admin')}
%def>
<%def name="main()">
@@ -137,7 +137,7 @@
${h.submit('save',_('Save'),class_="ui-btn large")}
${h.reset('reset',_('Reset'),class_="ui-btn large")}
-
+
${h.end_form()}
diff --git a/rhodecode/templates/admin/users/user_edit_my_account.html b/rhodecode/templates/admin/users/user_edit_my_account.html
--- a/rhodecode/templates/admin/users/user_edit_my_account.html
+++ b/rhodecode/templates/admin/users/user_edit_my_account.html
@@ -10,7 +10,7 @@
%def>
<%def name="page_nav()">
- ${self.menu('admin')}
+ ${self.menu('admin')}
%def>
<%def name="main()">
@@ -132,12 +132,12 @@ var show_my = function(e){
YUD.setStyle('my_container','display','');
YUD.setStyle('q_filter','display','');
if(!YUD.hasClass('show_my', 'loaded')){
- table_renderer(${c.data |n});
+ table_renderer(${c.data |n});
YUD.addClass('show_my', 'loaded');
}
}
YUE.on('show_my','click',function(e){
- show_my(e);
+ show_my(e);
})
var show_pullrequests = function(e){
@@ -154,7 +154,7 @@ var show_pullrequests = function(e){
ypjax(url, 'pullrequests_container');
}
YUE.on('show_pullrequests','click',function(e){
- show_pullrequests(e)
+ show_pullrequests(e)
})
var tabs = {
@@ -173,19 +173,19 @@ if (url[1]) {
}
function table_renderer(data){
- var myDataSource = new YAHOO.util.DataSource(data);
- myDataSource.responseType = YAHOO.util.DataSource.TYPE_JSON;
+ var myDataSource = new YAHOO.util.DataSource(data);
+ myDataSource.responseType = YAHOO.util.DataSource.TYPE_JSON;
- myDataSource.responseSchema = {
- resultsList: "records",
- fields: [
- {key:"menu"},
- {key:"raw_name"},
- {key:"name"},
- {key:"last_changeset"},
- {key:"action"},
- ]
- };
+ myDataSource.responseSchema = {
+ resultsList: "records",
+ fields: [
+ {key:"menu"},
+ {key:"raw_name"},
+ {key:"name"},
+ {key:"last_changeset"},
+ {key:"action"},
+ ]
+ };
myDataSource.doBeforeCallback = function(req,raw,res,cb) {
// This is the filter function
var data = res.results || [],
@@ -205,76 +205,76 @@ function table_renderer(data){
return res;
}
- // main table sorting
- var myColumnDefs = [
- {key:"menu",label:"",sortable:false,className:"quick_repo_menu hidden"},
- {key:"name",label:"${_('Name')}",sortable:true,
- sortOptions: { sortFunction: nameSort }},
- {key:"last_changeset",label:"${_('Tip')}",sortable:true,
- sortOptions: { sortFunction: revisionSort }},
- {key:"action",label:"${_('Action')}",sortable:false},
- ];
+ // main table sorting
+ var myColumnDefs = [
+ {key:"menu",label:"",sortable:false,className:"quick_repo_menu hidden"},
+ {key:"name",label:"${_('Name')}",sortable:true,
+ sortOptions: { sortFunction: nameSort }},
+ {key:"last_changeset",label:"${_('Tip')}",sortable:true,
+ sortOptions: { sortFunction: revisionSort }},
+ {key:"action",label:"${_('Action')}",sortable:false},
+ ];
- var myDataTable = new YAHOO.widget.DataTable("repos_list_wrap", myColumnDefs, myDataSource,{
- sortedBy:{key:"name",dir:"asc"},
- paginator: new YAHOO.widget.Paginator({
- rowsPerPage: 50,
- alwaysVisible: false,
- template : "{PreviousPageLink} {FirstPageLink} {PageLinks} {LastPageLink} {NextPageLink}",
- pageLinks: 5,
- containerClass: 'pagination-wh',
- currentPageClass: 'pager_curpage',
- pageLinkClass: 'pager_link',
- nextPageLinkLabel: '>',
- previousPageLinkLabel: '<',
- firstPageLinkLabel: '<<',
- lastPageLinkLabel: '>>',
- containers:['user-paginator']
- }),
+ var myDataTable = new YAHOO.widget.DataTable("repos_list_wrap", myColumnDefs, myDataSource,{
+ sortedBy:{key:"name",dir:"asc"},
+ paginator: new YAHOO.widget.Paginator({
+ rowsPerPage: 50,
+ alwaysVisible: false,
+ template : "{PreviousPageLink} {FirstPageLink} {PageLinks} {LastPageLink} {NextPageLink}",
+ pageLinks: 5,
+ containerClass: 'pagination-wh',
+ currentPageClass: 'pager_curpage',
+ pageLinkClass: 'pager_link',
+ nextPageLinkLabel: '>',
+ previousPageLinkLabel: '<',
+ firstPageLinkLabel: '<<',
+ lastPageLinkLabel: '>>',
+ containers:['user-paginator']
+ }),
- MSG_SORTASC:"${_('Click to sort ascending')}",
- MSG_SORTDESC:"${_('Click to sort descending')}",
- MSG_EMPTY:"${_('No records found.')}",
- MSG_ERROR:"${_('Data error.')}",
- MSG_LOADING:"${_('Loading...')}",
- }
- );
- myDataTable.subscribe('postRenderEvent',function(oArgs) {
- tooltip_activate();
- quick_repo_menu();
- });
+ MSG_SORTASC:"${_('Click to sort ascending')}",
+ MSG_SORTDESC:"${_('Click to sort descending')}",
+ MSG_EMPTY:"${_('No records found.')}",
+ MSG_ERROR:"${_('Data error.')}",
+ MSG_LOADING:"${_('Loading...')}",
+ }
+ );
+ myDataTable.subscribe('postRenderEvent',function(oArgs) {
+ tooltip_activate();
+ quick_repo_menu();
+ });
- var filterTimeout = null;
+ var filterTimeout = null;
- updateFilter = function() {
- // Reset timeout
- filterTimeout = null;
+ updateFilter = function() {
+ // Reset timeout
+ filterTimeout = null;
- // Reset sort
- var state = myDataTable.getState();
- state.sortedBy = {key:'name', dir:YAHOO.widget.DataTable.CLASS_ASC};
+ // Reset sort
+ var state = myDataTable.getState();
+ state.sortedBy = {key:'name', dir:YAHOO.widget.DataTable.CLASS_ASC};
- // Get filtered data
- myDataSource.sendRequest(YUD.get('q_filter').value,{
- success : myDataTable.onDataReturnInitializeTable,
- failure : myDataTable.onDataReturnInitializeTable,
- scope : myDataTable,
- argument: state
- });
+ // Get filtered data
+ myDataSource.sendRequest(YUD.get('q_filter').value,{
+ success : myDataTable.onDataReturnInitializeTable,
+ failure : myDataTable.onDataReturnInitializeTable,
+ scope : myDataTable,
+ argument: state
+ });
- };
- YUE.on('q_filter','click',function(){
- if(!YUD.hasClass('q_filter', 'loaded')){
- YUD.get('q_filter').value = '';
- //TODO: load here full list later to do search within groups
- YUD.addClass('q_filter', 'loaded');
- }
- });
+ };
+ YUE.on('q_filter','click',function(){
+ if(!YUD.hasClass('q_filter', 'loaded')){
+ YUD.get('q_filter').value = '';
+ //TODO: load here full list later to do search within groups
+ YUD.addClass('q_filter', 'loaded');
+ }
+ });
- YUE.on('q_filter','keyup',function (e) {
- clearTimeout(filterTimeout);
- filterTimeout = setTimeout(updateFilter,600);
- });
- }
+ YUE.on('q_filter','keyup',function (e) {
+ clearTimeout(filterTimeout);
+ filterTimeout = setTimeout(updateFilter,600);
+ });
+ }
%def>
diff --git a/rhodecode/templates/admin/users/users.html b/rhodecode/templates/admin/users/users.html
--- a/rhodecode/templates/admin/users/users.html
+++ b/rhodecode/templates/admin/users/users.html
@@ -10,7 +10,7 @@
%def>
<%def name="page_nav()">
- ${self.menu('admin')}
+ ${self.menu('admin')}
%def>
<%def name="main()">
@@ -36,7 +36,7 @@
myDataSource.responseType = YAHOO.util.DataSource.TYPE_JSON;
myDataSource.responseSchema = {
- resultsList: "records",
+ resultsList: "records",
fields: [
{key: "gravatar"},
{key: "raw_username"},
@@ -60,7 +60,7 @@
if (req) {
req = req.toLowerCase();
for (i = 0; i
-
-
-
- ${_('Group name')}:
-
-
- ${h.text('users_group_name',class_='small')}
-
-
+
+
+
+ ${_('Group name')}:
+
+
+ ${h.text('users_group_name',class_='small')}
+
+
-
-
- ${_('Active')}:
-
-
- ${h.checkbox('users_group_active',value=True)}
-
-
-
+
+
+ ${_('Active')}:
+
+
+ ${h.checkbox('users_group_active',value=True)}
+
+
+
${_('Members')}:
-
-
-
-
-
-
${_('Choosen group members')}
- ${h.select('users_group_members',[x[0] for x in c.group_members],c.group_members,multiple=True,size=8,style="min-width:210px")}
-
- ${_('Remove all elements')}
-
-
-
-
-
-
-
-
-
-
${_('Available members')}
- ${h.select('available_members',[],c.available_members,multiple=True,size=8,style="min-width:210px")}
-
-
- ${_('Add all elements')}
-
-
-
-
-
-
+
+
+
+
+
+
${_('Choosen group members')}
+ ${h.select('users_group_members',[x[0] for x in c.group_members],c.group_members,multiple=True,size=8,style="min-width:210px")}
+
+ ${_('Remove all elements')}
+
+
+
+
+
+
+
+
+
+
${_('Available members')}
+ ${h.select('available_members',[],c.available_members,multiple=True,size=8,style="min-width:210px")}
+
+
+ ${_('Add all elements')}
+
+
+
+
+
+
diff --git a/rhodecode/templates/base/base.html b/rhodecode/templates/base/base.html
--- a/rhodecode/templates/base/base.html
+++ b/rhodecode/templates/base/base.html
@@ -40,10 +40,10 @@
-
+
@@ -131,37 +131,37 @@
%def>
<%def name="menu(current=None)">
- <%
- def is_current(selected):
- if selected == current:
- return h.literal('class="current"')
- %>
- %if current not in ['home','admin']:
- ##REGULAR MENU
-
+
-
-
-
+
+
+
${usermenu()}
-
+
- %else:
- ##ROOT MENU
+ %else:
+ ##ROOT MENU
- %if h.HasPermissionAll('hg.admin')('access admin main page'):
+ %if h.HasPermissionAll('hg.admin')('access admin main page'):
${admin_menu()}
- %endif
+ %endif
${usermenu()}
-
- %endif
+
+ %endif
%def>
diff --git a/rhodecode/templates/base/root.html b/rhodecode/templates/base/root.html
--- a/rhodecode/templates/base/root.html
+++ b/rhodecode/templates/base/root.html
@@ -21,18 +21,18 @@
%if c.ga_code:
-
- %endif
+ (function() {
+ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+ ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+ })();
+
+ %endif
## JAVASCRIPT ##
<%def name="js()">
@@ -94,7 +94,7 @@
YUD.addClass('quick_login_link','enabled');
var usr = YUD.get('username');
if(usr){
- usr.focus();
+ usr.focus();
}
}
});
diff --git a/rhodecode/templates/bookmarks/bookmarks_data.html b/rhodecode/templates/bookmarks/bookmarks_data.html
--- a/rhodecode/templates/bookmarks/bookmarks_data.html
+++ b/rhodecode/templates/bookmarks/bookmarks_data.html
@@ -2,15 +2,15 @@
-
+
${_('Name')}
${_('Date')}
${_('Author')}
${_('Revision')}
-
+
- %for cnt,book in enumerate(c.repo_bookmarks.items()):
-
+ %for cnt,book in enumerate(c.repo_bookmarks.items()):
+
${h.link_to(book[0],
@@ -18,16 +18,16 @@
${h.fmt_date(book[1].date)}
- ${h.person(book[1].author)}
-
+ ${h.person(book[1].author)}
+
-
- %endfor
+
+ %endfor
%else:
- ${_('There are no bookmarks yet')}
+ ${_('There are no bookmarks yet')}
%endif
diff --git a/rhodecode/templates/branches/branches.html b/rhodecode/templates/branches/branches.html
--- a/rhodecode/templates/branches/branches.html
+++ b/rhodecode/templates/branches/branches.html
@@ -34,16 +34,16 @@
-
+
- %else:
- ${_('There are no changes yet')}
- %endif
+ });
+
+ %else:
+ ${_('There are no changes yet')}
+ %endif
%def>
diff --git a/rhodecode/templates/changeset/changeset.html b/rhodecode/templates/changeset/changeset.html
--- a/rhodecode/templates/changeset/changeset.html
+++ b/rhodecode/templates/changeset/changeset.html
@@ -31,7 +31,7 @@
AJAX_COMMENT_DELETE_URL = "${url('changeset_comment_delete',repo_name=c.repo_name,comment_id='__COMMENT_ID__')}";
-
+
%if c.changeset.parents:
%for n, p_cs in enumerate(reversed(c.changeset.parents)):
@@ -52,7 +52,7 @@
${_('No children')}
%endif
-
-
-
-
-
-
${h.urlify_commit(c.changeset.message, c.repo_name)}
-
-
-
+
+
+
+
+
+
${h.urlify_commit(c.changeset.message, c.repo_name)}
+
+
+
% if (len(c.changeset.affected_files) <= c.affected_files_cut_off) or c.fulldiff:
- ${len(c.changeset.removed)}
- ${len(c.changeset.changed)}
- ${len(c.changeset.added)}
- % else:
+ ${len(c.changeset.removed)}
+ ${len(c.changeset.changed)}
+ ${len(c.changeset.added)}
+ % else:
!
!
!
- % endif
-
+ % endif
+
-
+
%if len(c.changeset.parents)>1:
${_('merge')}
%endif
- %if c.changeset.branch:
+ %if c.changeset.branch:
- ${h.link_to(c.changeset.branch,h.url('files_home',repo_name=c.repo_name,revision=c.changeset.raw_id))}
+ ${h.link_to(c.changeset.branch,h.url('files_home',repo_name=c.repo_name,revision=c.changeset.raw_id))}
%endif
- %for tag in c.changeset.tags:
-
- ${h.link_to(tag,h.url('files_home',repo_name=c.repo_name,revision=c.changeset.raw_id))}
- %endfor
-
-
-
-
+ %for tag in c.changeset.tags:
+
+ ${h.link_to(tag,h.url('files_home',repo_name=c.repo_name,revision=c.changeset.raw_id))}
+ %endfor
+
+
+
+
% if c.limited_diff:
${ungettext('%s file changed','%s files changed',len(c.changeset.affected_files)) % (len(c.changeset.affected_files))}:
% else:
- ${ungettext('%s file changed with %s insertions and %s deletions','%s files changed with %s insertions and %s deletions', len(c.changeset.affected_files)) % (len(c.changeset.affected_files),c.lines_added,c.lines_deleted)}:
- %endif
+ ${ungettext('%s file changed with %s insertions and %s deletions','%s files changed with %s insertions and %s deletions', len(c.changeset.affected_files)) % (len(c.changeset.affected_files),c.lines_added,c.lines_deleted)}:
+ %endif
-
+
%for FID, (cs1, cs2, change, path, diff, stats) in c.changes[c.changeset.raw_id].iteritems():
@@ -136,8 +136,8 @@
% if c.limited_diff:
${_('Changeset was too big and was cut off...')}
% endif
-
-
+
+
diff --git a/rhodecode/templates/changeset/changeset_file_comment.html b/rhodecode/templates/changeset/changeset_file_comment.html
--- a/rhodecode/templates/changeset/changeset_file_comment.html
+++ b/rhodecode/templates/changeset/changeset_file_comment.html
@@ -6,14 +6,14 @@
<%def name="comment_block(co)">
%def>
@@ -60,7 +60,7 @@