Skip to content

Commit

Permalink
[#1788]: IE7 compatibility upgrades to User and Revision pages.
Browse files Browse the repository at this point in the history
  • Loading branch information
teajaymars committed Mar 27, 2012
1 parent e142366 commit efd7438
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
10 changes: 10 additions & 0 deletions ckan/templates/revision/layout.html
Expand Up @@ -4,6 +4,16 @@
xmlns:xi="http://www.w3.org/2001/XInclude"
py:strip=""
>
<py:match path="minornavigation">
<ul class="nav nav-pills">
<li class="${'active' if c.action=='index' else ''}">${h.subnav_link(c,h.icon('page_white_stack') + _('List'), controller='revision', action='index')}</li>
<py:if test="c.action=='read'">
<li class="divider">|</li>
<li class="${'active' if c.action=='read' else ''}">${h.subnav_link(c,h.icon('page_white') + _('View'), controller='revision', action='read', id=c.id)}</li>
</py:if>
</ul>
</py:match>


<xi:include href="../layout.html" />
</html>
Expand Down
7 changes: 0 additions & 7 deletions ckan/templates/revision/list.html
Expand Up @@ -6,13 +6,6 @@
<py:def function="page_heading">Revision History</py:def>
<py:def function="body_class">no-sidebar</py:def>

<py:match path="minornavigation">
<ul class="tabbed">
<li class="current-tab">
${h.subnav_link(c,_('Home'), controller='revision', action='index')}</li>
</ul>
</py:match>

<div py:match="content">
<p>Track the most recent changes to the system, with most recent
changes first.</p>
Expand Down
6 changes: 3 additions & 3 deletions ckan/templates/user/list.html
Expand Up @@ -19,11 +19,11 @@
</py:match>

<py:match path="minornavigation">
<ul class="tabbed">
<li py:attrs="{'class':'current-tab'} if c.order_by=='name' else {}">
<ul class="nav nav-pills">
<li class="${'active' if c.order_by=='name' else ''}">
<a href="?q=${c.q}&amp;order_by=name" rel="nofollow">Sort by name</a>
</li>
<li py:attrs="{'class':'current-tab'} if c.order_by=='edits' else {}">
<li class="${'active' if c.order_by=='edits' else ''}">
<a href="?q=${c.q}&amp;order_by=edits" rel="nofollow">Sort by edits</a>
</li>
</ul>
Expand Down

0 comments on commit efd7438

Please sign in to comment.