Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Merge pull request #10 from nigelbabu/prev-next-class
Browse files Browse the repository at this point in the history
Changing prev and next class names to older and newer (bug 668560)
  • Loading branch information
davedash committed Jun 30, 2011
2 parents eee9dd8 + 8863110 commit f759e01
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
8 changes: 4 additions & 4 deletions apps/input/templates/input/pager.html
Expand Up @@ -2,17 +2,17 @@
<div class="pager">
{% with link_txt = _('&laquo; Older Messages')|safe %}
{% if next_url %}
<a href="{{ next_url }}" class="next">{{ link_txt }}</a>
<a href="{{ next_url }}" class="newer">{{ link_txt }}</a>
{% else %}
<span class="next inactive">{{ link_txt }}</span>
<span class="newer inactive">{{ link_txt }}</span>
{% endif %}
{% endwith %}

{% with link_txt = _('Newer Messages &raquo;')|safe %}
{% if prev_url %}
<a href="{{ prev_url }}" class="prev">{{ link_txt }}</a>
<a href="{{ prev_url }}" class="older">{{ link_txt }}</a>
{% else %}
<span class="prev inactive">{{ link_txt }}</span>
<span class="older inactive">{{ link_txt }}</span>
{% endif %}
{% endwith %}
</div>
Expand Down
8 changes: 4 additions & 4 deletions apps/search/templates/search/search.html
Expand Up @@ -73,19 +73,19 @@ <h2>
{% if page.has_next() and page.number < settings.SEARCH_MAX_PAGES %}
<a href="{{ search_url(
defaults=form.data, extra={'page': page.next_page_number()})
}}" class="next">{{ link_txt }}</a>
}}" class="newer">{{ link_txt }}</a>
{% else %}
<span class="next inactive">{{ link_txt }}</span>
<span class="newer inactive">{{ link_txt }}</span>
{% endif %}
{% endwith %}

{% with link_txt = _('Newer Messages &raquo;')|safe %}
{% if page.has_previous() %}
<a href="{{ search_url(
defaults=form.data, extra={'page': page.previous_page_number()})
}}" class="prev">{{ link_txt }}</a>
}}" class="older">{{ link_txt }}</a>
{% else %}
<span class="prev inactive">{{ link_txt }}</span>
<span class="older inactive">{{ link_txt }}</span>
{% endif %}
{% endwith %}
</div>
Expand Down
8 changes: 4 additions & 4 deletions apps/themes/templates/themes/theme.html
Expand Up @@ -27,17 +27,17 @@ <h2>{{ _('Theme') }}</h2>
<div class="pager">
{% with link_txt = _('&laquo; Previous Page')|safe %}
{% if page.has_previous() %}
<a class="prev" href="?page={{ page.previous_page_number() }}">{{ link_txt }}</a>
<a class="older" href="?page={{ page.previous_page_number() }}">{{ link_txt }}</a>
{% else %}
<span class="prev inactive">{{ link_txt }}</span>
<span class="older inactive">{{ link_txt }}</span>
{% endif %}
{% endwith %}

{% with link_txt = _('Next Page &raquo;')|safe %}
{% if page.has_next() %}
<a class="next" href="?page={{ page.next_page_number() }}">{{ link_txt }}</a>
<a class="newer" href="?page={{ page.next_page_number() }}">{{ link_txt }}</a>
{% else %}
<span class="next inactive">{{ link_txt }}</span>
<span class="newer inactive">{{ link_txt }}</span>
{% endif %}
{% endwith %}
</div>
Expand Down
8 changes: 4 additions & 4 deletions media/css/input.css
Expand Up @@ -656,16 +656,16 @@ background-color: #B6BCC0;
border-top: 1px dotted #b6bcc0;
padding: 15px 0 10px 0;
}
.pager .next {
.pager .newer {
float: left;
}
.html-rtl .pager .next {
.html-rtl .pager .newer {
float: left;
}
.pager .prev {
.pager .older {
float: right;
}
.html-rtl .pager .prev {
.html-rtl .pager .older {
float: none;
}
.pager .inactive {
Expand Down

0 comments on commit f759e01

Please sign in to comment.