# HG changeset patch # User Mads Kiilerich # Date 2015-01-06 00:54:36 # Node ID f1e0b8aa634bfdbf4d25a7b54dd1a38eee4adc35 # Parent d32fe5348b5ed0e16e5ca0894a8040d8c06acb8d minor fixes diff --git a/kallithea/controllers/admin/users.py b/kallithea/controllers/admin/users.py --- a/kallithea/controllers/admin/users.py +++ b/kallithea/controllers/admin/users.py @@ -94,9 +94,8 @@ class UsersController(BaseController): .render(user_id, username, _=_, h=h, c=c)) for user in c.users_list: - users_data.append({ - "gravatar": grav_tmpl(user. email, 20), + "gravatar": grav_tmpl(user.email, 20), "raw_name": user.username, "username": username(user.user_id, user.username), "firstname": user.name, diff --git a/kallithea/controllers/files.py b/kallithea/controllers/files.py --- a/kallithea/controllers/files.py +++ b/kallithea/controllers/files.py @@ -190,7 +190,7 @@ class FilesController(BaseRepoController return render('files/files_ypjax.html') # TODO: tags and bookmarks? - c.revision_options = [(c.changeset.raw_id, + c.revision_options = [(c.changeset.raw_id, _('%s at %s') % (c.changeset.branch, h.short_id(c.changeset.raw_id)))] + \ [(n, b) for b, n in c.db_repo_scm_instance.branches.items()] if c.db_repo_scm_instance.closed_branches: diff --git a/kallithea/lib/db_manage.py b/kallithea/lib/db_manage.py --- a/kallithea/lib/db_manage.py +++ b/kallithea/lib/db_manage.py @@ -286,7 +286,6 @@ class DbManage(object): def create_ui_settings(self, repo_store_path): """ Creates ui settings, fills out hooks - and disables dotencode """ #HOOKS diff --git a/kallithea/model/validators.py b/kallithea/model/validators.py --- a/kallithea/model/validators.py +++ b/kallithea/model/validators.py @@ -87,7 +87,7 @@ def UniqueListFromString(): value = aslist(value, ',') seen = set() return [c for c in value if not (c in seen or seen.add(c))] - + def empty_value(self, value): return [] diff --git a/kallithea/public/js/base.js b/kallithea/public/js/base.js --- a/kallithea/public/js/base.js +++ b/kallithea/public/js/base.js @@ -669,16 +669,16 @@ var injectInlineForm = function(tr){ if(lineno === undefined){ alert('Error submitting, line ' + lineno + ' not found.'); - return + return; } if(f_path === undefined){ alert('Error submitting, file path ' + f_path + ' not found.'); - return + return; } var text = $('#text_'+lineno).val(); if(text == ""){ - return + return; } $overlay.show(); diff --git a/kallithea/public/js/pyroutes_map.js b/kallithea/public/js/pyroutes_map.js --- a/kallithea/public/js/pyroutes_map.js +++ b/kallithea/public/js/pyroutes_map.js @@ -1,10 +1,10 @@ //Format is key == name // "mark_error_fixed": [ # key -// "/mark_error_fixed/%(error_id)s", #url template -// [ +// "/mark_error_fixed/%(error_id)s", #url template +// [ // "error_id" # list of args // ] -// ], +// ], // var PROUTES_MAP = { diff --git a/kallithea/templates/changeset/diff_block.html b/kallithea/templates/changeset/diff_block.html --- a/kallithea/templates/changeset/diff_block.html +++ b/kallithea/templates/changeset/diff_block.html @@ -140,7 +140,7 @@ $(document).ready(function(){ }) .show(); }); - + $('.btn-image-diff-swap').mousedown(function(e){ $('#'+e.currentTarget.id+'-img-a.img-diff-swapable') .before($('#'+e.currentTarget.id+'-img-b.img-diff-swapable'));