From bfb40df19aaa211c0fbea7f0aaed752d41b26f88 Mon Sep 17 00:00:00 2001 From: Corpsee Date: Sun, 8 Jun 2014 23:46:42 +0700 Subject: [PATCH] Project builds pagination improvements --- PHPCI/View/Project/view.phtml | 12 +++++++++--- public/assets/css/phpci.css | 16 +++++++++++++++- 2 files changed, 24 insertions(+), 4 deletions(-) diff --git a/PHPCI/View/Project/view.phtml b/PHPCI/View/Project/view.phtml index bc89e9d8..08781dd3 100644 --- a/PHPCI/View/Project/view.phtml +++ b/PHPCI/View/Project/view.phtml @@ -89,9 +89,15 @@ print '
  • « Prev
  • '; } - for($i = 1; $i <= $pages; $i++) - { - print '
  • ' . $i . '
  • '; + if ($pages > 1) { + for($i = 1; $i <= $pages; $i++) + { + if ($i == $page) { + print '
  • ' . $i . '
  • '; + } else { + print '
  • ' . $i . '
  • '; + } + } } if ($page < $pages) { diff --git a/public/assets/css/phpci.css b/public/assets/css/phpci.css index 7113ad1c..a4fa440a 100644 --- a/public/assets/css/phpci.css +++ b/public/assets/css/phpci.css @@ -84,4 +84,18 @@ h1 { .word-wrap { word-wrap: break-word; -} \ No newline at end of file +} + +ul.pagination { + +} + + ul.pagination > li > span { + color: #333; + } + + ul.pagination > li > span:hover, + ul.pagination > li > span:focus { + color: #333; + background-color: #fff; + } \ No newline at end of file