Permalink
Browse files

Delete sorting icons from some table headings.

This fixes bug 2132.

svn path=/src/trunk/Pootle/; revision=18076
  • Loading branch information...
1 parent a71dafa commit 879e4a8386cbc4a3e67dfc0f7626b463acb19687 @julen julen committed Mar 16, 2012
Showing with 12 additions and 1 deletion.
  1. +5 −0 html/style.css
  2. +7 −1 local_apps/pootle_app/views/admin/util.py
View
@@ -1596,6 +1596,11 @@ table.sortable th
font-size: 85%;
}
+table.sortable th.sorttable_nosort
+{
+ cursor: default;
+}
+
table.sortable td
{
padding: 5px;
@@ -67,7 +67,13 @@ def form_set_as_table(formset, link=None, linkfield='code'):
def add_header(result, fields, form):
result.append('<tr>\n')
for field in fields:
- result.append('<th>')
+ widget = form.fields[field].widget
+ widget_name = widget.__class__.__name__
+ if widget.is_hidden or \
+ widget_name in ('CheckboxInput', 'SelectMultiple'):
+ result.append('<th class="sorttable_nosort">')
+ else:
+ result.append('<th>')
if form.fields[field].label is not None:
result.append(unicode(form.fields[field].label))
result.append('</th>\n')

0 comments on commit 879e4a8

Please sign in to comment.