diff --git a/pylons_app/controllers/hg.py b/pylons_app/controllers/hg.py
--- a/pylons_app/controllers/hg.py
+++ b/pylons_app/controllers/hg.py
@@ -37,19 +37,20 @@ class HgController(BaseController):
super(HgController, self).__before__()
def index(self):
- c.current_sort = request.GET.get('sort', 'name')
- sort_by = c.current_sort
sortables = ['name', 'description', 'last_change', 'tip', 'contact']
+ current_sort = request.GET.get('sort', 'name')
+ current_sort_slug = current_sort.replace('-', '')
- c.cs_slug = sort_by.replace('-', '')
-
- if c.cs_slug not in sortables:
- sort_by = 'name'
-
+ if current_sort_slug not in sortables:
+ c.sort_by = 'name'
+ current_sort_slug = c.sort_by
+ else:
+ c.sort_by = current_sort
+ c.sort_slug = current_sort_slug
cached_repo_list = HgModel().get_repos()
- sort_key = c.cs_slug + '_sort'
- if sort_by.startswith('-'):
+ sort_key = current_sort_slug + '_sort'
+ if c.sort_by.startswith('-'):
c.repos_list = sorted(cached_repo_list, key=itemgetter(sort_key), reverse=True)
else:
c.repos_list = sorted(cached_repo_list, key=itemgetter(sort_key), reverse=False)
diff --git a/pylons_app/public/css/style.css b/pylons_app/public/css/style.css
--- a/pylons_app/public/css/style.css
+++ b/pylons_app/public/css/style.css
@@ -26,6 +26,10 @@ img
border: none;
}
+img.icon{
+ vertical-align: bottom;
+
+}
/* -----------------------------------------------------------
anchors
----------------------------------------------------------- */
diff --git a/pylons_app/templates/admin/users/user_edit_my_account.html b/pylons_app/templates/admin/users/user_edit_my_account.html
--- a/pylons_app/templates/admin/users/user_edit_my_account.html
+++ b/pylons_app/templates/admin/users/user_edit_my_account.html
@@ -14,67 +14,69 @@
%def>
<%def name="main()">
+
${self.breadcrumbs()}
+
${h.form(url('admin_settings_my_account_update'),method='put')}
-
- ${h.end_form()}
@@ -84,25 +86,25 @@
diff --git a/pylons_app/templates/index.html b/pylons_app/templates/index.html
--- a/pylons_app/templates/index.html
+++ b/pylons_app/templates/index.html
@@ -12,17 +12,18 @@
<%def name="main()">
<%def name="get_sort(name)">
<%name_slug = name.lower().replace(' ','_') %>
- %if name_slug == c.cs_slug:
- ${name}
+
+ %if name_slug == c.sort_slug:
+ %if c.sort_by.startswith('-'):
+ ${name}↑
+ %else:
+ ${name}↓
+ %endif:
%else:
- ${name}
+ ${name}
%endif
- ↓
- ↑
%def>
-
-