auth: UI changes

- make buttons wider to handle longer names for SAML plugins
- make order of plugins sorted again because it tends to jump arround in order
  without that sorting.
- social is now external auth
This commit is contained in:
Marcin Kuzminski 2018-11-29 18:15:55 +01:00
parent 739fc96fe7
commit 4dc9d4463e
6 changed files with 13 additions and 11 deletions

View file

@ -88,15 +88,15 @@ class AuthnRootResource(AuthnResourceBase):
# TODO: Store this info in the resource element.
return self._resource_name_map[resource_name]
def get_sorted_list(self):
def get_sorted_list(self, sort_key=None):
"""
Returns a sorted list of sub resources for displaying purposes.
"""
def sort_key(resource):
def default_sort_key(resource):
return str.lower(safe_str(resource.display_name))
active = [item for item in self]
return sorted(active, key=sort_key)
return sorted(active, key=sort_key or default_sort_key)
def get_nav_list(self, sort=True):
"""