-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1134 from akvo/1120_sorting
[#1120] Removed from updates and orgs lists
- Loading branch information
Showing
4 changed files
with
45 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{% load i18n %} | ||
|
||
<div class="row center-text paginationWrap"> | ||
<div class="col-md-8"> | ||
<ul class="pagination"> | ||
{% if page.has_previous %} | ||
<li><a href="?page={{ page.previous_page_number }}{{ q }}">«</a></li> | ||
{% else %} | ||
<li class="disabled"><span>«</span></li> | ||
{% endif %} | ||
{% for page_number in page_range %} | ||
{% if not page_number == '...' %} | ||
<li {% if page_number == page.number %}class="active"{% endif %}><a href="?page={{ page_number }}{{ q }}">{{ page_number }}</a></li> | ||
{% else %} | ||
<li class="disabled"><span>{{ page_number }}</span></li> | ||
{% endif %} | ||
{% endfor %} | ||
{% if page.has_next %} | ||
<li><a href="?page={{ page.next_page_number }}{{ q }} ">»</a></li> | ||
{% else %} | ||
<li class="disabled"><span>»</span></li> | ||
{% endif %} | ||
</ul> | ||
</div> | ||
<div class="sortList col-md-4"> | ||
<div class="dropdown"> | ||
<button class="btn btn-primary dropdown-toggle" type="button" id="sortByButton" data-toggle="dropdown" aria-expanded="true"> | ||
{% trans "Sort by" %} | ||
<span class="caret"></span> | ||
</button> | ||
<ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu1" id="sortByDropdown"> | ||
<li role="presentation"{% if sorting = "-last_modified_at" %} class="disabled"{% endif %}><a role="menuitem" tabindex="-1" param="-last_modified_at">{% trans "Latest updated" %}</a></li> | ||
<li role="presentation"{% if sorting = "last_modified_at" %} class="disabled"{% endif %}><a role="menuitem" tabindex="-1" param="last_modified_at">{% trans "Oldest updated" %}</a></li> | ||
<li role="presentation"{% if sorting = "title" %} class="disabled"{% endif %}><a role="menuitem" tabindex="-1" param="title">{% trans "Title (A-Z)" %}</a></li> | ||
<li role="presentation"{% if sorting = "-title" %} class="disabled"{% endif %}><a role="menuitem" tabindex="-1" param="-title">{% trans "Title (Z-A)" %}</a></li> | ||
<li role="presentation"{% if sorting = "budget" %} class="disabled"{% endif %}><a role="menuitem" tabindex="-1" param="budget">{% trans "Total budget (low-high)" %}</a></li> | ||
<li role="presentation"{% if sorting = "-budget" %} class="disabled"{% endif %}><a role="menuitem" tabindex="-1" param="-budget">{% trans "Total budget (high-low)" %}</a></li> | ||
</ul> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters