Fixes nav numbers. Removes jump page num.
This commit is contained in:
parent
6e3c746664
commit
eb769485e6
2 changed files with 10 additions and 35 deletions
11
forum.nim
11
forum.nim
|
|
@ -552,15 +552,6 @@ proc genPagenumNav(c: var TForumData, stats: TForumStats): string =
|
|||
|
||||
pages.add(htmlgen.a(href = pageUrl, $(i)))
|
||||
if lastToShow < totalPages: pages.add(span("..."))
|
||||
# a number input for quick jump to a page
|
||||
pages.add(htmlgen.form(
|
||||
action = c.req.makeUri(if c.isThreadsList: "/page" else: firstUrl),
|
||||
class = "pagenumJump",
|
||||
when false: htmlgen.input(`type` = "number", name = "page", value = $c.pageNum, max = $totalPages)
|
||||
else: "<input type=\"number\" name=\"page\" value=\"$1\" min=\"1\" max=\"$2\" />" %
|
||||
[$c.pageNum, $totalPages],
|
||||
htmlgen.input(`type` = "submit", value = "►", title = "Go to the page", class = "jump") ))
|
||||
# max attribute for inputs not supported in htmlgen
|
||||
result.add(pages)
|
||||
|
||||
# Right
|
||||
|
|
@ -617,7 +608,7 @@ proc genPagenumLocalNav(c: var TForumData, thrid: int): string =
|
|||
else:
|
||||
inc(i)
|
||||
|
||||
result = htmlgen.`div`(class = "localnums", result)
|
||||
result = htmlgen.span(class = "pages", result)
|
||||
|
||||
proc gatherUserInfo(c: var TForumData, nick: string, ui: var TUserInfo): bool =
|
||||
ui.nick = nick
|
||||
|
|
|
|||
|
|
@ -195,7 +195,6 @@ pre .end { background:url("/images/tabEnd.png") no-repeat left bottom; }
|
|||
#talk-threads > div > div
|
||||
{
|
||||
float:left;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
overflow: hidden;
|
||||
font-size: 10pt;
|
||||
|
|
@ -239,7 +238,15 @@ pre .end { background:url("/images/tabEnd.png") no-repeat left bottom; }
|
|||
#talk-thread > div > .author a:hover,
|
||||
#talk-threads > div > .author a:hover { color:#fff !important; }
|
||||
#talk-threads > div > .topic .pages { float:right; }
|
||||
#talk-threads > div > .topic > div > a { font-weight:bold; }
|
||||
#talk-threads > div > .topic .pages > a
|
||||
{
|
||||
margin-right: 5pt;
|
||||
}
|
||||
#talk-threads > div > .topic > div > a
|
||||
{
|
||||
font-weight:bold;
|
||||
white-space: nowrap;
|
||||
}
|
||||
#talk-threads > div > .detail > div { float:left; margin:0; }
|
||||
#talk-threads > div > .detail > div > div { margin-left:20px; padding: 5px 5px 5px 22px; }
|
||||
#talk-threads > div > .detail > div { width:50%; }
|
||||
|
|
@ -559,26 +566,3 @@ form.searchNav {
|
|||
clear: both;
|
||||
height: 1px;
|
||||
}
|
||||
|
||||
/* page numbers form */
|
||||
|
||||
.pagenumJump {
|
||||
display: inline;
|
||||
border-width: 0px !important;
|
||||
}
|
||||
|
||||
.pagenumJump input {
|
||||
margin: 0 .2em;
|
||||
width: 3.2em;
|
||||
background: #d0d6e3;
|
||||
padding: 1px 2px;
|
||||
border-width: 0px;
|
||||
}
|
||||
|
||||
.pagenumJump .jump {
|
||||
border-width: 0px;
|
||||
margin: 0;
|
||||
background: transparent;
|
||||
width: auto;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue