Author: ahyoungryu Date: Sat Apr 8 04:43:16 2017 New Revision: 1790653 URL: http://svn.apache.org/viewvc?rev=1790653&view=rev Log: (empty)
Modified: zeppelin/site/assets/themes/zeppelin/css/style.css zeppelin/site/helium_packages.html Modified: zeppelin/site/assets/themes/zeppelin/css/style.css URL: http://svn.apache.org/viewvc/zeppelin/site/assets/themes/zeppelin/css/style.css?rev=1790653&r1=1790652&r2=1790653&view=diff ============================================================================== --- zeppelin/site/assets/themes/zeppelin/css/style.css (original) +++ zeppelin/site/assets/themes/zeppelin/css/style.css Sat Apr 8 04:43:16 2017 @@ -670,6 +670,29 @@ a.anchorjs-link:hover { text-decoration: background: #c9e2f9; } +/* hide arrows when current page is on first & last */ +.hide-first-boundaries.pagination > .disabled > a, +.hide-first-boundaries.pagination > li:first-child > a, +.hide-first-boundaries.pagination > li:first-child > span { + display: none; +} + +.hide-first-boundaries.pagination > .active > a { + border-top-left-radius: 3px; + border-bottom-left-radius: 3px; +} + +.hide-last-boundaries.pagination > .disabled > a, +.hide-last-boundaries.pagination > li:last-child > a, +.hide-last-boundaries.pagination > li:last-child > span { + display: none; +} + +.hide-last-boundaries.pagination > .active > a { + border-top-right-radius: 3px; + border-bottom-right-radius: 3px; +} + /* For what's new section */ .new { background: rgba(226, 233, 239, 0.4); Modified: zeppelin/site/helium_packages.html URL: http://svn.apache.org/viewvc/zeppelin/site/helium_packages.html?rev=1790653&r1=1790652&r2=1790653&view=diff ============================================================================== --- zeppelin/site/helium_packages.html (original) +++ zeppelin/site/helium_packages.html Sat Apr 8 04:43:16 2017 @@ -369,6 +369,9 @@ and <a href="https://zeppelin.apache.org <div class="text-center" style="margin-top: 24px;"> <ul uib-pagination boundary-links="true" total-items="latestPkgInfo.length" ng-model="currentPage" class="pagination-sm" + ng-class="{'hide-first-boundaries': currentPage == 1, 'hide-last-boundaries': currentPage >= latestPkgInfo.length/itemsPerPage}" + max-size="maxSize" + items-per-page="itemsPerPage" previous-text="‹" next-text="›" first-text="«" last-text="»"></ul> </div> </div> @@ -414,6 +417,9 @@ and <a href="https://zeppelin.apache.org <ul uib-pagination boundary-links="true" total-items="pkgs.length" ng-model="$parent.currentPage" class="pagination-sm" ng-show="$parent.pkgListByType === types" + ng-class="{'hide-first-boundaries': $parent.currentPage == 1, 'hide-last-boundaries': $parent.currentPage >= pkgs.length/itemsPerPage}" + max-size="maxSize" + items-per-page="itemsPerPage" previous-text="‹" next-text="›" first-text="«" last-text="»"></ul> </div> </div>