MCPcopy Index your code
hub / github.com/TruthHun/BookStack / judgeDisable

Function judgeDisable

utils/pager.go:331–344  ·  view source on GitHub ↗

** *判断首页尾页 上一页下一页是否能用 */

(po *PageOptions, totalPages int, hasHeader int)

Source from the content-addressed store, hash-verified

329 *判断首页尾页 上一页下一页是否能用
330 */
331func judgeDisable(po *PageOptions, totalPages int, hasHeader int) string {
332 var rs string = ""
333 //判断头部
334 if hasHeader == 0 {
335 if po.CurrentPage == 1 {
336 rs = " "
337 }
338 } else {
339 if po.CurrentPage == totalPages {
340 rs = " "
341 }
342 }
343 return rs
344}

Callers 2

getHeaderFunction · 0.85
getFooterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected