diff --git a/rhodecode/templates/admin/auth/auth_settings.mako b/rhodecode/templates/admin/auth/auth_settings.mako
--- a/rhodecode/templates/admin/auth/auth_settings.mako
+++ b/rhodecode/templates/admin/auth/auth_settings.mako
@@ -93,7 +93,7 @@
var auth_plugins_input = $('#auth_plugins');
var notEmpty = function(element, index, array) {
return (element != "");
- }
+ };
var elems = auth_plugins_input.val().split(',').filter(notEmpty);
var cur_button = e.currentTarget;
var plugin_id = $(cur_button).attr('plugin_id');
diff --git a/rhodecode/templates/admin/integrations/list.mako b/rhodecode/templates/admin/integrations/list.mako
--- a/rhodecode/templates/admin/integrations/list.mako
+++ b/rhodecode/templates/admin/integrations/list.mako
@@ -243,7 +243,7 @@
}
});
};
- }
+ };
$('.delete_integration_entry').on('click', function(e){
e.preventDefault();
diff --git a/rhodecode/templates/admin/notifications/notifications.mako b/rhodecode/templates/admin/notifications/notifications.mako
--- a/rhodecode/templates/admin/notifications/notifications.mako
+++ b/rhodecode/templates/admin/notifications/notifications.mako
@@ -49,12 +49,12 @@ var run = function(){
$('#notification_data').on('click','.delete-notification',function(e){
var notification_id = e.currentTarget.id;
deleteNotification(url_action,notification_id)
- })
+ });
$('#notification_data').on('click','.read-notification',function(e){
var notification_id = e.currentTarget.id;
readNotification(url_action,notification_id)
})
-}
+};
run();
$('#mark_all_read').on('click',function(e){
//set notifications as read
@@ -68,7 +68,7 @@ run();
.fail(function(data, textStatus, errorThrown){
alert("Error while saving notifications.\nError code {0} ({1}). URL: {2}".format(data.status,data.statusText,$(this)[0].url));
});
-})
+});
var current_filter = $("${c.current_filter}");
if (current_filter.length){
diff --git a/rhodecode/templates/admin/settings/settings_global.mako b/rhodecode/templates/admin/settings/settings_global.mako
--- a/rhodecode/templates/admin/settings/settings_global.mako
+++ b/rhodecode/templates/admin/settings/settings_global.mako
@@ -258,8 +258,7 @@ var post_old = post_cm.getValue();
var get_data = function(type, old){
var get_tmpl = function(tmpl_name){
// unescape some stuff
- var html = htmlEnDeCode.htmlDecode($('#'+tmpl_name+'_tmpl').html());
- return html;
+ return htmlEnDeCode.htmlDecode($('#'+tmpl_name+'_tmpl').html());
};
return {
'#': old,
diff --git a/rhodecode/templates/admin/users/user_add.mako b/rhodecode/templates/admin/users/user_add.mako
--- a/rhodecode/templates/admin/users/user_add.mako
+++ b/rhodecode/templates/admin/users/user_add.mako
@@ -136,9 +136,9 @@
$('#username').focus();
$('#generate_password').on('click', function(e){
- var tmpl = "(${_('generated password:')} {0})"
- var new_passwd = generatePassword(12)
- $('#generate_password_preview').html(tmpl.format(new_passwd))
+ var tmpl = "(${_('generated password:')} {0})";
+ var new_passwd = generatePassword(12);
+ $('#generate_password_preview').html(tmpl.format(new_passwd));
$('#password').val(new_passwd);
$('#password_confirmation').val(new_passwd);
})
diff --git a/rhodecode/templates/admin/users/user_edit_emails.mako b/rhodecode/templates/admin/users/user_edit_emails.mako
--- a/rhodecode/templates/admin/users/user_edit_emails.mako
+++ b/rhodecode/templates/admin/users/user_edit_emails.mako
@@ -10,7 +10,7 @@
${base.gravatar(c.user.email, 16)}
- ${c.user.email}
+ ${c.user.email}
|
${_('Primary')}
diff --git a/rhodecode/templates/changelog/changelog.mako b/rhodecode/templates/changelog/changelog.mako
--- a/rhodecode/templates/changelog/changelog.mako
+++ b/rhodecode/templates/changelog/changelog.mako
@@ -47,8 +47,8 @@
target_repo=c.repo_name,
target_ref_type='branch' if request.GET.get('branch') else c.rhodecode_db_repo.landing_rev[0],
target_ref=request.GET.get('branch') or c.rhodecode_db_repo.landing_rev[1],
- merge=1)
- }">
+ merge=1)}"
+ >
${_('Compare fork with Parent (%s)' % c.rhodecode_db_repo.fork.repo_name)}
@@ -285,7 +285,7 @@
$commitCheckboxes.on('click', checkboxRangeSelector);
$commitRangeClear.on('click',function(e) {
- $commitCheckboxes.attr('checked', false)
+ $commitCheckboxes.attr('checked', false);
checkboxRangeSelector();
e.preventDefault();
});
diff --git a/rhodecode/templates/changeset/changeset.mako b/rhodecode/templates/changeset/changeset.mako
--- a/rhodecode/templates/changeset/changeset.mako
+++ b/rhodecode/templates/changeset/changeset.mako
@@ -243,7 +243,7 @@
.replace('__rev__','r{0}:{1}'.format(data.results[0].revision, data.results[0].raw_id.substr(0,6)))
.replace('__title__', data.results[0].message)
.replace('__url__', pyroutes.url('changeset_home', {'repo_name': '${c.repo_name}','revision': data.results[0].raw_id}));
- _html +=' | '
+ _html +=' | ';
_html +='__rev__ '
.replace('__rev__','r{0}:{1}'.format(data.results[1].revision, data.results[1].raw_id.substr(0,6)))
.replace('__title__', data.results[1].message)
@@ -279,7 +279,7 @@
.replace('__rev__','r{0}:{1}'.format(data.results[0].revision, data.results[0].raw_id.substr(0,6)))
.replace('__title__', data.results[0].message)
.replace('__url__', pyroutes.url('changeset_home', {'repo_name': '${c.repo_name}','revision': data.results[0].raw_id}));
- _html +=' | '
+ _html +=' | ';
_html +='Parent __rev__'
.replace('__rev__','r{0}:{1}'.format(data.results[1].revision, data.results[1].raw_id.substr(0,6)))
.replace('__title__', data.results[1].message)
diff --git a/rhodecode/templates/changeset/changeset_file_comment.mako b/rhodecode/templates/changeset/changeset_file_comment.mako
--- a/rhodecode/templates/changeset/changeset_file_comment.mako
+++ b/rhodecode/templates/changeset/changeset_file_comment.mako
@@ -170,8 +170,7 @@
('%s' % (h.url('%s_help' % c.visual.default_renderer), c.visual.default_renderer.upper())),
('@mention' % _('Use @username inside this text to send notification to this RhodeCode user'))
)
- )|n
- }
+ )|n}
diff --git a/rhodecode/templates/changeset/diff_block.mako b/rhodecode/templates/changeset/diff_block.mako
--- a/rhodecode/templates/changeset/diff_block.mako
+++ b/rhodecode/templates/changeset/diff_block.mako
@@ -12,14 +12,14 @@
<%def name="diff_block_changeset_table(change)">
- %for FID,(cs1, cs2, change, filenode_path, diff, stats, file) in change.iteritems():
+ %for FID,(cs1, cs2, change, filenode_path, diff, stats, file_data) in change.iteritems():
${diff|n}
- % if file["is_limited_diff"]:
- % if file["exceeds_limit"]:
+ % if file_data["is_limited_diff"]:
+ % if file_data["exceeds_limit"]:
${self.file_message()}
% else:
${_('Diff was truncated. File content available only in full diff.')} ${_('Show full diff')}
@@ -33,14 +33,14 @@
<%def name="diff_block_simple(change)">
- %for op,filenode_path,diff,file in change:
+ %for op,filenode_path,diff,file_data in change:
${diff|n}
- % if file["is_limited_diff"]:
- % if file["exceeds_limit"]:
+ % if file_data["is_limited_diff"]:
+ % if file_data["exceeds_limit"]:
${self.file_message()}
% else:
${_('Diff was truncated. File content available only in full diff.')} ${_('Show full diff')}
diff --git a/rhodecode/templates/codeblocks/diffs.mako b/rhodecode/templates/codeblocks/diffs.mako
--- a/rhodecode/templates/codeblocks/diffs.mako
+++ b/rhodecode/templates/codeblocks/diffs.mako
@@ -2,26 +2,32 @@
return '%s_%s_%i' % (h.safeid(filename), type, line)
%>%def>
-<%def name="action_class(action)"><%
+<%def name="action_class(action)">
+<%
return {
'-': 'cb-deletion',
'+': 'cb-addition',
' ': 'cb-context',
}.get(action, 'cb-empty')
-%>%def>
+%>
+%def>
-<%def name="op_class(op_id)"><%
+<%def name="op_class(op_id)">
+<%
return {
DEL_FILENODE: 'deletion', # file deleted
BIN_FILENODE: 'warning' # binary diff hidden
}.get(op_id, 'addition')
-%>%def>
+%>
+%def>
-<%def name="link_for(**kw)"><%
+<%def name="link_for(**kw)">
+<%
new_args = request.GET.mixed()
new_args.update(kw)
return h.url('', **new_args)
-%>%def>
+%>
+%def>
<%def name="render_diffset(diffset, commit=None,
@@ -83,8 +89,7 @@ return h.url('', **new_args)
(' %s' % (h.url('%s_help' % c.visual.default_renderer), c.visual.default_renderer.upper())),
(' @mention' % _('Use @username inside this text to send notification to this RhodeCode user'))
)
- )|n
- }
+ )|n}
@@ -370,8 +375,9 @@ from rhodecode.lib.diffs import NEW_FILE
%>
%if filediff.source_file_path and filediff.target_file_path:
- %if filediff.source_file_path != filediff.target_file_path: # file was renamed
- ${filediff.target_file_path} ⬅ ${filediff.source_file_path}
+ %if filediff.source_file_path != filediff.target_file_path:
+ ## file was renamed
+ ${filediff.target_file_path} ⬅ ${filediff.source_file_path}
%else:
## file was modified
${filediff.source_file_path}
diff --git a/rhodecode/templates/codeblocks/source.mako b/rhodecode/templates/codeblocks/source.mako
--- a/rhodecode/templates/codeblocks/source.mako
+++ b/rhodecode/templates/codeblocks/source.mako
@@ -42,9 +42,7 @@
title="Author: ${annotation.author | entity} Date: ${annotation.date} Message: ${annotation.message | entity}"
>
${h.gravatar_with_user(annotation.author, 16) | n}
- ${
- h.truncate(annotation.message, len(lines) * 30)
- }
+ ${h.truncate(annotation.message, len(lines) * 30)}
|
var val = e.currentTarget.checked;
$('#compare').mergely('options', {ignorews: val});
$('#compare').mergely('update');
- })
+ });
$('#edit_mode').change(function(e){
var val = !e.currentTarget.checked;
$('#compare').mergely('cm', 'lhs').setOption('readOnly', val);
diff --git a/rhodecode/templates/debug_style/tables.html b/rhodecode/templates/debug_style/tables.html
--- a/rhodecode/templates/debug_style/tables.html
+++ b/rhodecode/templates/debug_style/tables.html
@@ -361,7 +361,7 @@
|