From e00f54442f282e56f874e85c5918cc0181940f38 Mon Sep 17 00:00:00 2001 From: Ryan Lerch Date: Jan 18 2016 10:07:05 +0000 Subject: [PATCH 1/5] made the search box look more like a search box --- diff --git a/pagure/static/koji.css b/pagure/static/koji.css index 77594a4..1be506b 100644 --- a/pagure/static/koji.css +++ b/pagure/static/koji.css @@ -383,3 +383,13 @@ a.notblue { color: inherit; text-decoration:none; } + +#headerSearch .selectize-control.single .selectize-input::after +{ +content: "\e08f"; +font-family: "Icons"; +border:none; +top:30%; +right:22px; +color:#aaa; +} From 3cb17bf917d9c07dc31d9c6004893adb4cda778e Mon Sep 17 00:00:00 2001 From: Ryan Lerch Date: Jan 18 2016 10:07:05 +0000 Subject: [PATCH 2/5] made the search work on the user info page --- diff --git a/pagure/templates/user_info.html b/pagure/templates/user_info.html index c7a93d7..cc9f402 100644 --- a/pagure/templates/user_info.html +++ b/pagure/templates/user_info.html @@ -6,8 +6,8 @@ {% block header %} - + {% endblock %} @@ -79,4 +79,48 @@ }); }); + + {% endblock %} From 5edcc1d2161289b1965e12743ff6492a63571e66 Mon Sep 17 00:00:00 2001 From: Ryan Lerch Date: Jan 18 2016 10:07:05 +0000 Subject: [PATCH 3/5] swapped the order of projects and forks, and made tooltips pretty --- diff --git a/pagure/templates/user_list.html b/pagure/templates/user_list.html index 441675c..b18d4be 100644 --- a/pagure/templates/user_list.html +++ b/pagure/templates/user_list.html @@ -62,15 +62,15 @@ diff --git a/pagure/templates/group_list.html b/pagure/templates/group_list.html index e7d530b..4d7f2a5 100644 --- a/pagure/templates/group_list.html +++ b/pagure/templates/group_list.html @@ -93,7 +93,7 @@ Formed {{ group.created |humanize }} From 636f6a67458493238fc3766bf2ef27dce99f6b9b Mon Sep 17 00:00:00 2001 From: Ryan Lerch Date: Jan 18 2016 10:07:05 +0000 Subject: [PATCH 5/5] made the projects sort case-insensitive --- diff --git a/pagure/lib/__init__.py b/pagure/lib/__init__.py index 3a3696b..080a658 100644 --- a/pagure/lib/__init__.py +++ b/pagure/lib/__init__.py @@ -27,6 +27,7 @@ import sqlalchemy import sqlalchemy.schema from datetime import timedelta from sqlalchemy import func +from sqlalchemy import asc from sqlalchemy.orm import aliased from sqlalchemy.orm import sessionmaker from sqlalchemy.orm import scoped_session @@ -1431,7 +1432,7 @@ def search_projects( ).filter( model.Project.id.in_(projects.subquery()) ).order_by( - model.Project.name + asc(func.lower(model.Project.name)) ) if start is not None: