summaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
Diffstat (limited to 'views')
-rw-r--r--views/staff/_media.ejs1
-rw-r--r--views/staff/_stats.ejs4
-rw-r--r--views/staff/_users.ejs2
-rw-r--r--views/staff/_users_recent.ejs6
-rw-r--r--views/staff/index.ejs1
-rw-r--r--views/staff/media/index.ejs16
-rw-r--r--views/staff/media/show.ejs14
-rw-r--r--views/staff/media/show_404.ejs14
-rw-r--r--views/staff/projects/index.ejs2
-rw-r--r--views/staff/projects/show.ejs1
-rw-r--r--views/staff/projects/show_404.ejs2
-rw-r--r--views/staff/users/index.ejs2
-rw-r--r--views/staff/users/show.ejs26
-rw-r--r--views/staff/users/show_404.ejs1
14 files changed, 79 insertions, 13 deletions
diff --git a/views/staff/_media.ejs b/views/staff/_media.ejs
new file mode 100644
index 0000000..27949aa
--- /dev/null
+++ b/views/staff/_media.ejs
@@ -0,0 +1 @@
+media \ No newline at end of file
diff --git a/views/staff/_stats.ejs b/views/staff/_stats.ejs
index 6439ab9..d1ad96f 100644
--- a/views/staff/_stats.ejs
+++ b/views/staff/_stats.ejs
@@ -10,4 +10,8 @@
<td><a href="/staff/projects">projects</a></td>
<td>[[- projectCount ]]</td>
</tr>
+ <tr>
+ <td><a href="/staff/media">media</a></td>
+ <td>[[- mediaCount ]]</td>
+ </tr>
</table>
diff --git a/views/staff/_users.ejs b/views/staff/_users.ejs
index 344ee0c..d46058f 100644
--- a/views/staff/_users.ejs
+++ b/views/staff/_users.ejs
@@ -11,7 +11,7 @@
[[- user.displayName ]]
</td>
<td class="editLinks">
- <a href="/staff/users/[[- user.username ]]">[view profile]</a>
+ <a href="/profile/[[- user.username ]]">[view profile]</a>
</td>
<td>
[[- user.last_seen ]]
diff --git a/views/staff/_users_recent.ejs b/views/staff/_users_recent.ejs
index e55fe28..b452c08 100644
--- a/views/staff/_users_recent.ejs
+++ b/views/staff/_users_recent.ejs
@@ -7,15 +7,13 @@
[[ users.forEach(function(user){ ]]
<tr>
<td>
- [[ if (user.photo) { ]]
- <a href="/staff/users/[[- user.username ]]"><div style="background-image:url([[- user.photo ]])" class="avatar"></div></a>
- [[ } ]]
+ <a href="/staff/users/[[- user.username ]]"><div style="background-image:url([[- user.photo || '/assets/img/profile.png' ]])" class="avatar"></div></a>
</td>
<td>
<a href="/staff/users/[[- user.username ]]">[[- user.username ]]</a>
</td>
<td class="editLinks">
- <a href="/staff/users/[[- user.username ]]">[view profile]</a>
+ <a href="/profile/[[- user.username ]]">[view profile]</a>
</td>
<td>
[[- user.displayName ]]
diff --git a/views/staff/index.ejs b/views/staff/index.ejs
index 842e086..f721339 100644
--- a/views/staff/index.ejs
+++ b/views/staff/index.ejs
@@ -5,6 +5,7 @@
<nav>
<a href="/staff/users">users</a>
<a href="/staff/projects">projects</a>
+ <a href="/staff/media">media</a>
</nav>
<hr>
diff --git a/views/staff/media/index.ejs b/views/staff/media/index.ejs
new file mode 100644
index 0000000..76aaafb
--- /dev/null
+++ b/views/staff/media/index.ejs
@@ -0,0 +1,16 @@
+[[ include ../_header ]]
+
+ <h1>Media</h1>
+
+ <nav>
+ <a href="/staff">home</a>
+ <a href="/staff/users">users</a>
+ <a href="/staff/projects">projects</a>
+ <a href="/staff/media">media</a>
+ </nav>
+
+ <hr>
+
+[[ include ../_media ]]
+
+[[ include ../_footer ]]
diff --git a/views/staff/media/show.ejs b/views/staff/media/show.ejs
new file mode 100644
index 0000000..43afe14
--- /dev/null
+++ b/views/staff/media/show.ejs
@@ -0,0 +1,14 @@
+[[ include ../_header ]]
+
+ <h1>Media [[- media.type ]]</h1>
+
+ <nav>
+ <a href="/staff">home</a>
+ <a href="/staff/users">users</a>
+ <a href="/staff/projects">projects</a>
+ <a href="/staff/media">media</a>
+ </nav>
+
+ <hr>
+
+[[ include ../_footer ]]
diff --git a/views/staff/media/show_404.ejs b/views/staff/media/show_404.ejs
new file mode 100644
index 0000000..f07cef2
--- /dev/null
+++ b/views/staff/media/show_404.ejs
@@ -0,0 +1,14 @@
+[[ include ../_header ]]
+
+ <h1>Media not found</h1>
+
+ <nav>
+ <a href="/staff">home</a>
+ <a href="/staff/users">users</a>
+ <a href="/staff/projects">projects</a>
+ <a href="/staff/media">media</a>
+ </nav>
+
+ <hr>
+
+[[ include ../_footer ]]
diff --git a/views/staff/projects/index.ejs b/views/staff/projects/index.ejs
index a5a9308..a6fad6b 100644
--- a/views/staff/projects/index.ejs
+++ b/views/staff/projects/index.ejs
@@ -1,10 +1,12 @@
[[ include ../_header ]]
+
<h1>Projects</h1>
<nav>
<a href="/staff">home</a>
<a href="/staff/users">users</a>
<a href="/staff/projects">projects</a>
+ <a href="/staff/media">media</a>
</nav>
<hr>
diff --git a/views/staff/projects/show.ejs b/views/staff/projects/show.ejs
index 23e96b2..0fdb00b 100644
--- a/views/staff/projects/show.ejs
+++ b/views/staff/projects/show.ejs
@@ -6,6 +6,7 @@
<a href="/staff">home</a>
<a href="/staff/users">users</a>
<a href="/staff/projects">projects</a>
+ <a href="/staff/media">media</a>
</nav>
<hr>
diff --git a/views/staff/projects/show_404.ejs b/views/staff/projects/show_404.ejs
index 193333f..70320c0 100644
--- a/views/staff/projects/show_404.ejs
+++ b/views/staff/projects/show_404.ejs
@@ -1,10 +1,12 @@
[[ include ../_header ]]
+
<h1>Project not found</h1>
<nav>
<a href="/staff">home</a>
<a href="/staff/users">users</a>
<a href="/staff/projects">projects</a>
+ <a href="/staff/media">media</a>
</nav>
<hr>
diff --git a/views/staff/users/index.ejs b/views/staff/users/index.ejs
index ad92fc3..8c56565 100644
--- a/views/staff/users/index.ejs
+++ b/views/staff/users/index.ejs
@@ -1,10 +1,12 @@
[[ include ../_header ]]
+
<h1>Users</h1>
<nav>
<a href="/staff">home</a>
<a href="/staff/users">users</a>
<a href="/staff/projects">projects</a>
+ <a href="/staff/media">media</a>
</nav>
<hr>
diff --git a/views/staff/users/show.ejs b/views/staff/users/show.ejs
index 2315043..afcd761 100644
--- a/views/staff/users/show.ejs
+++ b/views/staff/users/show.ejs
@@ -5,6 +5,7 @@
<a href="/staff">home</a>
<a href="/staff/users">users</a>
<a href="/staff/projects">projects</a>
+ <a href="/staff/media">media</a>
</nav>
<hr>
@@ -21,7 +22,7 @@
[[- profile.displayName ]]
</td>
<td class="editLinks">
- <a href="/staff/users/[[- profile.username ]]">[view profile]</a>
+ <a href="/profile/[[- profile.username ]]">[view profile]</a>
</td>
</tr>
</table>
@@ -45,6 +46,22 @@
</tr>
<tr>
<th>
+ projects
+ </th>
+ <td>
+ [[- profile.projectCount ]]
+ </td>
+ </tr>
+ <tr>
+ <th>
+ media
+ </th>
+ <td>
+ [[- profile.mediaCount ]]
+ </td>
+ </tr>
+ <tr>
+ <th>
ip addresses
</th>
<td>
@@ -77,10 +94,3 @@
</div>
[[ include ../_footer ]]
-<style>
-#actions button {
- float: none;
- width: auto;
-}
-}
-</style> \ No newline at end of file
diff --git a/views/staff/users/show_404.ejs b/views/staff/users/show_404.ejs
index 3fd20a8..bcd0271 100644
--- a/views/staff/users/show_404.ejs
+++ b/views/staff/users/show_404.ejs
@@ -5,6 +5,7 @@
<a href="/staff">home</a>
<a href="/staff/users">users</a>
<a href="/staff/projects">projects</a>
+ <a href="/staff/media">media</a>
</nav>
<hr>