From b2164f9f6001dcac952a3d2b301f1425fdb3cbe9 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Thu, 4 Sep 2014 13:50:40 -0400 Subject: admin users views --- views/staff/_footer.ejs | 6 ++++++ views/staff/_header.ejs | 3 ++- views/staff/_projects.ejs | 22 ++++++++++++++++++++++ views/staff/_stats.ejs | 13 +++++++++++++ views/staff/index.ejs | 14 +++++++++----- views/staff/projects/index.ejs | 10 ++++++++++ views/staff/projects/show.ejs | 15 +++++++++++++++ views/staff/projects/show_404.ejs | 8 ++++++++ views/staff/users/index.ejs | 10 +++++++++- views/staff/users/show.ejs | 14 +++++++++++++- views/staff/users/show_404.ejs | 8 ++++++++ 11 files changed, 115 insertions(+), 8 deletions(-) create mode 100644 views/staff/_projects.ejs create mode 100644 views/staff/_stats.ejs (limited to 'views') diff --git a/views/staff/_footer.ejs b/views/staff/_footer.ejs index 580828f..c363beb 100644 --- a/views/staff/_footer.ejs +++ b/views/staff/_footer.ejs @@ -1,3 +1,4 @@ + [[ include ../partials/confirm-modal ]] [[ include ../partials/footer ]] @@ -5,4 +6,9 @@ [[ include ../partials/scripts ]] + diff --git a/views/staff/_header.ejs b/views/staff/_header.ejs index d726b02..1880c98 100644 --- a/views/staff/_header.ejs +++ b/views/staff/_header.ejs @@ -7,7 +7,8 @@ -
+
[[ include ../partials/header ]]
+
diff --git a/views/staff/_projects.ejs b/views/staff/_projects.ejs new file mode 100644 index 0000000..83041ae --- /dev/null +++ b/views/staff/_projects.ejs @@ -0,0 +1,22 @@ + +[[ projects.forEach(function(project){ ]] + + + + + + + +[[ }) ]] +
+ [[- project.name ]] + + [[- project.user.username ]] + + [[- project.date ]] + + [[- project.privacy ? "private" : "" ]] +
diff --git a/views/staff/_stats.ejs b/views/staff/_stats.ejs new file mode 100644 index 0000000..6439ab9 --- /dev/null +++ b/views/staff/_stats.ejs @@ -0,0 +1,13 @@ + + + + + + + + + + + + +
stats
users[[- userCount ]]
projects[[- projectCount ]]
diff --git a/views/staff/index.ejs b/views/staff/index.ejs index 0cb67da..842e086 100644 --- a/views/staff/index.ejs +++ b/views/staff/index.ejs @@ -2,10 +2,14 @@

Staff Area

-users: [[- userCount ]] -projects: [[- projectCount ]] - -
-[[ include _users_recent ]] + + +
+ + [[ include _users_recent ]] + [[ include _stats ]] [[ include _footer ]] \ No newline at end of file diff --git a/views/staff/projects/index.ejs b/views/staff/projects/index.ejs index a27a132..a5a9308 100644 --- a/views/staff/projects/index.ejs +++ b/views/staff/projects/index.ejs @@ -1,4 +1,14 @@ [[ include ../_header ]]

Projects

+ + +
+ +[[ include ../_projects ]] + [[ include ../_footer ]] diff --git a/views/staff/projects/show.ejs b/views/staff/projects/show.ejs index 01b5c76..e821614 100644 --- a/views/staff/projects/show.ejs +++ b/views/staff/projects/show.ejs @@ -1,2 +1,17 @@ [[ include ../_header ]] + +

Project

+ + + +
+ +
+ [[- projectJSON ]] +
+ [[ include ../_footer ]] diff --git a/views/staff/projects/show_404.ejs b/views/staff/projects/show_404.ejs index e0cf0e2..193333f 100644 --- a/views/staff/projects/show_404.ejs +++ b/views/staff/projects/show_404.ejs @@ -1,4 +1,12 @@ [[ include ../_header ]]

Project not found

+ + +
+ [[ include ../_footer ]] diff --git a/views/staff/users/index.ejs b/views/staff/users/index.ejs index fb072d8..ad92fc3 100644 --- a/views/staff/users/index.ejs +++ b/views/staff/users/index.ejs @@ -1,6 +1,14 @@ [[ include ../_header ]]

Users

-[[ include _users ]] + + +
+ +[[ include ../_users ]] [[ include ../_footer ]] diff --git a/views/staff/users/show.ejs b/views/staff/users/show.ejs index b5e1a6c..d306443 100644 --- a/views/staff/users/show.ejs +++ b/views/staff/users/show.ejs @@ -1,4 +1,16 @@ [[ include ../_header ]] -

User: [[ profile.username ]]

+

User: [[- profile.username ]]

+ + + +
+ +
+ [[- profileJSON ]] +
[[ include ../_footer ]] diff --git a/views/staff/users/show_404.ejs b/views/staff/users/show_404.ejs index c52e1e7..3fd20a8 100644 --- a/views/staff/users/show_404.ejs +++ b/views/staff/users/show_404.ejs @@ -1,4 +1,12 @@ [[ include ../_header ]]

User not found

+ + +
+ [[ include ../_footer ]] -- cgit v1.2.3-70-g09d2