aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
authorpete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-02-09 10:15:08 +0000
committerpete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-02-09 10:15:08 +0000
commit3faf72aa446838d637712069588dd842a59cf088 (patch)
tree4fc4a61df600e79a588bc82d276361598e785055 /mod
parent046d8767dfc7a2162ab242815b75036589eacd0e (diff)
downloadelgg-3faf72aa446838d637712069588dd842a59cf088.tar.gz
elgg-3faf72aa446838d637712069588dd842a59cf088.tar.bz2
pagination on activity stream added
git-svn-id: https://code.elgg.org/elgg/trunk@2683 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod')
-rw-r--r--mod/activity/views/default/activity/css.php31
-rw-r--r--mod/activity/views/default/activity/offset.php8
2 files changed, 35 insertions, 4 deletions
diff --git a/mod/activity/views/default/activity/css.php b/mod/activity/views/default/activity/css.php
index 168fa4fc4..506fdd096 100644
--- a/mod/activity/views/default/activity/css.php
+++ b/mod/activity/views/default/activity/css.php
@@ -137,4 +137,33 @@
padding:4px;
border:1px solid #ddd;
background:#efefef;
-} \ No newline at end of file
+}
+
+.pagination .forward,
+.pagination .back {
+ display:block;
+ float:left;
+ border:1px solid #4690d6;
+ color:#4690d6;
+ text-align: center;
+ font-size: 12px;
+ font-weight: normal;
+ margin:0 6px 0 0;
+ padding:0px 4px;
+ cursor: pointer;
+ -webkit-border-radius: 4px;
+ -moz-border-radius: 4px;
+}
+.pagination .forward:hover,
+.pagination .back:hover {
+ background:#4690d6;
+ color:white;
+ text-decoration: none;
+}
+.pagination .back {
+ margin:0 20px 0 0;
+}
+
+
+
+
diff --git a/mod/activity/views/default/activity/offset.php b/mod/activity/views/default/activity/offset.php
index 638cf9150..21b43a526 100644
--- a/mod/activity/views/default/activity/offset.php
+++ b/mod/activity/views/default/activity/offset.php
@@ -17,11 +17,13 @@
$offset = $offset + 20;//set new offset
- echo "<div style=\"margin:10px 0 0 0;font-size:16px;\">";
+ echo "<div class=\"pagination\">";
+ echo "<a class=\"back\" href=\"{$vars['url']}{$url}?offset={$offset}\"> &laquo; " . elgg_echo('activity:back') . "</a>";
+
if($backset != '-1')
- echo "<a href=\"{$vars['url']}{$url}?offset={$backset}\">". elgg_echo('activity:forward') . "</a> ";
+ echo "<a class=\"forward\" href=\"{$vars['url']}{$url}?offset={$backset}\">". elgg_echo('activity:forward') . " &raquo;</a> ";
- echo "<a href=\"{$vars['url']}{$url}?offset={$offset}\">" . elgg_echo('activity:back') . "</a></div>";
+ echo "</div>";
?> \ No newline at end of file