Mercurial > kallithea
diff pylons_app/templates/index.html @ 447:70c2750531d3
rewrote sorting on main page, to clickable headers.
Update my account with better repo list
some css fixes
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Fri, 03 Sep 2010 07:34:38 +0200 |
parents | 3ed2d46a2ca7 |
children | b50e79b4257a |
line wrap: on
line diff
--- a/pylons_app/templates/index.html Fri Sep 03 00:46:07 2010 +0200 +++ b/pylons_app/templates/index.html Fri Sep 03 07:34:38 2010 +0200 @@ -12,17 +12,18 @@ <%def name="main()"> <%def name="get_sort(name)"> <%name_slug = name.lower().replace(' ','_') %> - %if name_slug == c.cs_slug: - <span style="font-weight: bold;text-decoration: underline;">${name}</span> + + %if name_slug == c.sort_slug: + %if c.sort_by.startswith('-'): + <a href="?sort=${name_slug}">${name}↑</a> + %else: + <a href="?sort=-${name_slug}">${name}↓</a> + %endif: %else: - <span style="font-weight: bold">${name}</span> + <a href="?sort=${name_slug}">${name}</a> %endif - <a href="?sort=${name_slug}">↓</a> - <a href="?sort=-${name_slug}">↑</a> </%def> - - <div class="box"> <!-- box / title --> <div class="title"> @@ -55,9 +56,9 @@ <tr class="parity${cnt%2}"> <td> %if repo['repo'].dbrepo.private: - <img alt="${_('private')}" src="/images/icons/lock.png"/> + <img class="icon" alt="${_('private')}" src="/images/icons/lock.png"/> %else: - <img alt="${_('public')}" src="/images/icons/lock_open.png"/> + <img class="icon" alt="${_('public')}" src="/images/icons/lock_open.png"/> %endif ${h.link_to(repo['name'], h.url('summary_home',repo_name=repo['name']))}</td>