{{
+ {{
title
}} {{ count }}
{%- if username -%}
@@ -68,9 +68,37 @@
{%- endif -%}
- {% if total and total > 1 %}
- {{ pagination_link(pagetitle, page, total) }}
- {% endif %}
+
+
+ {% if total and total > 1 %}
+ {{ pagination_link(pagetitle, page, total) }}
+ {% endif %}
+
+
+
+
+
+
+
+
{{ render_row(list) }}
diff --git a/pagure/templates/index.html b/pagure/templates/index.html
index 4dfda3c..efea13c 100644
--- a/pagure/templates/index.html
+++ b/pagure/templates/index.html
@@ -21,7 +21,7 @@
{{ render_repos(
repos, total_page, 'page', page,
- 'All Projects', repos_length, 'repos', username) }}
+ 'All Projects', repos_length, 'repos', username, sorting=sorting) }}
{% endblock %}
diff --git a/pagure/ui/app.py b/pagure/ui/app.py
index d794bb5..d23ae7d 100644
--- a/pagure/ui/app.py
+++ b/pagure/ui/app.py
@@ -53,6 +53,7 @@ def index(sorting=None):
limit=limit,
sort='date_created')
else:
+ sorting = 'name'
repos = pagure.lib.search_projects(
SESSION,
fork=False,
@@ -63,7 +64,8 @@ def index(sorting=None):
SESSION,
fork=False,
count=True)
-
+ print "app.py"
+ print sorting
total_page = int(ceil(num_repos / float(limit)))
if authenticated() and flask.request.path == '/':
@@ -76,6 +78,7 @@ def index(sorting=None):
repos_length=num_repos,
total_page=total_page,
page=page,
+ sorting=sorting,
)