Skip to content

Commit

Permalink
Updated counter styles
Browse files Browse the repository at this point in the history
  • Loading branch information
rmathis committed Mar 10, 2021
1 parent e56d2c3 commit 7a7e249
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 9 deletions.
2 changes: 1 addition & 1 deletion View/Elements/pagination.ctp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ $includeGoto = isset($goto) ? $goto : true;

?>

<div class="pagination d-flex justify-content-start align-items-center">
<div class="<?php echo isset($class) ? $class : 'pagination' ?> d-flex justify-content-start align-items-center">
<?php if ($includeCounter) : ?>
<div class="pagination-element pagination-counter muted">
<?php
Expand Down
15 changes: 10 additions & 5 deletions View/GrouperGroups/groupmember.ctp
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,16 @@
<?php endforeach; ?>
</tbody>
<tfoot>
<tr>
<th colspan="5">
<?php print $this->element("pagination"); ?>
</th>
</tr>
<tr>
<th colspan="5">
<?php print $this->element("pagination", array(
'goto' => false,
'limit' => true,
'numbers' => true,
'counter' => false
)); ?>
</th>
</tr>
</tfoot>
</table>
</div>
11 changes: 9 additions & 2 deletions View/GrouperGroups/groupoptin.ctp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
<?php echo $this->element('GrouperLite.Components/navigation-groups', array('active' => 'groupoptin')); ?>
<?php echo $this->element('GrouperLite.Components/search', array('active' => 'groupoptin')); ?>
<div class="">
<?php print $this->element("pagination", array(
'goto' => false,
'limit' => false,
'numbers' => false,
'counter' => true,
'class' => 'counter'
)); ?>
<table class="table table-striped w-100">
<thead>
<tr>
Expand Down Expand Up @@ -35,11 +42,11 @@
<tfoot>
<tr>
<th colspan="5">
<?php print $this->element( "pagination", array(
<?php print $this->element("pagination", array(
'goto' => false,
'limit' => true,
'numbers' => true,
'counter' => true
'counter' => false
)); ?>
</th>
</tr>
Expand Down
7 changes: 6 additions & 1 deletion View/GrouperGroups/groupowner.ctp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,12 @@
<tfoot>
<tr>
<th colspan="5">
<?php print $this->element("pagination"); ?>
<?php print $this->element("pagination", array(
'goto' => false,
'limit' => true,
'numbers' => true,
'counter' => false
)); ?>
</th>
</tr>
</tfoot>
Expand Down
9 changes: 9 additions & 0 deletions webroot/css/co-grouper-plugin.css
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,11 @@ a.list-group-item-action:hover .fa {
padding: 2px;
}

.grouper .counter {
margin: 0.5rem 0;
font-size: 0.9rem;
}

.grouper .pagination a {
color: white;
}
Expand All @@ -230,6 +235,10 @@ a.list-group-item-action:hover .fa {
}

.grouper .pagination .pagination-element.pagination-numbers {
margin-right: 1rem;
}

.grouper .pagination .pagination-element.pagination-numbers-link:not(:first-child) {
border-left: 1px solid rgba(255, 255, 255, 0.5);
}

Expand Down

0 comments on commit 7a7e249

Please sign in to comment.