Commit 98bb3e58 authored by Ruslan Kabalin's avatar Ruslan Kabalin
Browse files

Collecion navigation enhancement.

When there are only two tabs it is a bit puzzling to find out which tab you
are currently on. Removing URL form current link can make navigation more
Signed-off-by: default avatarRuslan Kabalin <>
parent a71e15b7
......@@ -232,13 +232,15 @@ input.addcolumn, input.removecolumn {
/* Collection navigation */
ul.colnav li a {
ul.colnav li a,
ul.colnav li span {
background: #DDDDDD;
padding: .55em 1em;
* padding: .55em 1em .5em 1em;
font-weight: bold;
ul.colnav li.selected a {
ul.colnav li.selected a,
ul.colnav li.selected span {
color: #333;
background: #fff;
text-decoration: none;
......@@ -2,7 +2,13 @@
<div class="{if $dwoo.foreach.cchunk.first}colnav1{else}colnav-extra hidden{/if}">
<ul class="colnav">
{foreach from=$chunk item=view}
<li{if $view->view == $viewid} class="selected"{/if}><a href="{$WWWROOT}view/view.php?id={$view->view}">{$view->title|str_shorten_text:30:true}</a></li>
<li{if $view->view == $viewid} class="selected"{/if}>
{if $view->view != $viewid}
<a href="{$WWWROOT}view/view.php?id={$view->view}">{$view->title|str_shorten_text:30:true}</a>
{if $dwoo.foreach.cchunk.first && !$dwoo.foreach.cchunk.last}
<li id="colnav-more" class="nojs-hidden"><a href=""></a></li>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment