<link rel="stylesheet" href="fontawesome/css/font-awesome.min.css"/>\r
<link rel="stylesheet" href="octicons/octicons.css"/>\r
<link rel="stylesheet" type="text/css" href="gitblit.css"/>\r
+ <link rel="stylesheet" type="text/css" href="bootstrap-fixes.css"/>\r
</wicket:head>\r
\r
<body>\r
deltas = new int[] { -2, -1, 0, 1, 2 };\r
}\r
\r
- if (totalPages > 0) {\r
+ if (totalPages > 0 && currentPage > 1) {\r
pages.add(new PageObject("\u2190", currentPage - 1));\r
}\r
for (int delta : deltas) {\r
pages.add(new PageObject("" + page, page));\r
}\r
}\r
- if (totalPages > 0) {\r
+ if (totalPages > 0 && currentPage < totalPages) {\r
pages.add(new PageObject("\u2192", currentPage + 1));\r
}\r
\r
item.add(link);\r
if (pageItem.page == currentPage || pageItem.page < 1 || pageItem.page > totalPages) {\r
WicketUtils.setCssClass(item, "disabled");\r
+ link.setEnabled(false);\r
}\r
}\r
};\r
--- /dev/null
+/**
+ * Disabled links in a PagerPanel. Bootstrap 2.0.4 only handles <a>, but not <span>. Wicket renders disabled links as spans.
+ * The .pagination rules here are identical to the ones for <a> in bootstrap.css, but for <span>.
+ */
+.pagination span {
+ float: left;
+ padding: 0 14px;
+ line-height: 34px;
+ text-decoration: none;
+ border: 1px solid #ddd;
+ border-left-width: 0;
+}
+
+.pagination li:first-child span {
+ border-left-width: 1px;
+ -webkit-border-radius: 3px 0 0 3px;
+ -moz-border-radius: 3px 0 0 3px;
+ border-radius: 3px 0 0 3px;
+}
+
+.pagination li:last-child span {
+ -webkit-border-radius: 0 3px 3px 0;
+ -moz-border-radius: 0 3px 3px 0;
+ border-radius: 0 3px 3px 0;
+}