hide navigation if only a single page exists
This commit is contained in:
parent
cea3fdd67b
commit
4227b01756
|
@ -274,6 +274,7 @@ class lamList {
|
||||||
printf($this->labels['nav'], $count);
|
printf($this->labels['nav'], $count);
|
||||||
echo("</td>");
|
echo("</td>");
|
||||||
|
|
||||||
|
if ($count > $this->maxPageEntries) {
|
||||||
echo("<td class=\"" . $this->type . "nav-activepage\" align=\"right\">");
|
echo("<td class=\"" . $this->type . "nav-activepage\" align=\"right\">");
|
||||||
if ($this->page != 1) {
|
if ($this->page != 1) {
|
||||||
echo("<a title=\"" . _('Jump to first page') . "\" href=\"list.php?type=" . $this->type . "&norefresh=true&page=1" .
|
echo("<a title=\"" . _('Jump to first page') . "\" href=\"list.php?type=" . $this->type . "&norefresh=true&page=1" .
|
||||||
|
@ -310,7 +311,9 @@ class lamList {
|
||||||
"&sort=" . $this->sortColumn . "&sortdirection=" . $this->sortDirection . $this->filterText . "\">" .
|
"&sort=" . $this->sortColumn . "&sortdirection=" . $this->sortDirection . $this->filterText . "\">" .
|
||||||
"<img class=\"align-middle\" alt=\"\" src=\"../../graphics/go-last.png\"></a>\n");
|
"<img class=\"align-middle\" alt=\"\" src=\"../../graphics/go-last.png\"></a>\n");
|
||||||
}
|
}
|
||||||
echo("</td></tr></table>\n");
|
echo "</td>";
|
||||||
|
}
|
||||||
|
echo "</tr></table>\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue