From 1082e3be99669671b6c745307131a7cb8d54eabc Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Fri, 5 Sep 2014 15:54:12 -0400 Subject: pagination on all queries --- views/staff/_pagination.ejs | 17 +++++++++++++++++ views/staff/index.ejs | 2 +- views/staff/media/index.ejs | 2 ++ views/staff/projects/index.ejs | 2 ++ views/staff/users/index.ejs | 2 ++ views/staff/users/media.ejs | 2 ++ views/staff/users/show.ejs | 17 +++++++---------- 7 files changed, 33 insertions(+), 11 deletions(-) create mode 100644 views/staff/_pagination.ejs (limited to 'views') diff --git a/views/staff/_pagination.ejs b/views/staff/_pagination.ejs new file mode 100644 index 0000000..6c3bfb1 --- /dev/null +++ b/views/staff/_pagination.ejs @@ -0,0 +1,17 @@ +[[ if (pagination.prev_page !== -1 && pagination.next_page !== -1) { ]] + +[[ } ]] \ No newline at end of file diff --git a/views/staff/index.ejs b/views/staff/index.ejs index f721339..5ca7269 100644 --- a/views/staff/index.ejs +++ b/views/staff/index.ejs @@ -9,7 +9,7 @@
- + [[ include _users_recent ]] [[ include _stats ]] diff --git a/views/staff/media/index.ejs b/views/staff/media/index.ejs index 76aaafb..516af2d 100644 --- a/views/staff/media/index.ejs +++ b/views/staff/media/index.ejs @@ -11,6 +11,8 @@
+[[ include ../_pagination ]] [[ include ../_media ]] +[[ include ../_pagination ]] [[ include ../_footer ]] diff --git a/views/staff/projects/index.ejs b/views/staff/projects/index.ejs index a6fad6b..482ea25 100644 --- a/views/staff/projects/index.ejs +++ b/views/staff/projects/index.ejs @@ -11,6 +11,8 @@
+[[ include ../_pagination ]] [[ include ../_projects ]] +[[ include ../_pagination ]] [[ include ../_footer ]] diff --git a/views/staff/users/index.ejs b/views/staff/users/index.ejs index 8c56565..f14d666 100644 --- a/views/staff/users/index.ejs +++ b/views/staff/users/index.ejs @@ -11,6 +11,8 @@
+[[ include ../_pagination ]] [[ include ../_users ]] +[[ include ../_pagination ]] [[ include ../_footer ]] diff --git a/views/staff/users/media.ejs b/views/staff/users/media.ejs index 6ea2668..b13e5fb 100644 --- a/views/staff/users/media.ejs +++ b/views/staff/users/media.ejs @@ -11,6 +11,8 @@
+[[ include ../_pagination ]] [[ include ../_media ]] +[[ include ../_pagination ]] [[ include ../_footer ]] diff --git a/views/staff/users/show.ejs b/views/staff/users/show.ejs index 127ca8c..8e9b447 100644 --- a/views/staff/users/show.ejs +++ b/views/staff/users/show.ejs @@ -80,17 +80,14 @@ [[- profile.isStaff ? "yes" : "no" ]] - - - - - - [[ if (String(user._id) != String(profile._id)) { ]] - - [[ } ]] - - + +

+
+ [[ if (String(user._id) != String(profile._id)) { ]] + + [[ } ]] +

Projects

-- cgit v1.2.3-70-g09d2