diff options
| author | Jules Laplace <jules@okfoc.us> | 2014-09-04 15:30:07 -0400 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2014-09-04 15:30:07 -0400 |
| commit | 01eaa246c7aebcea616eccf7989c63ac6f54fdf0 (patch) | |
| tree | 2f42a3e650f874ec7a54bc42eb5a953661c4571e /views | |
| parent | b2164f9f6001dcac952a3d2b301f1425fdb3cbe9 (diff) | |
project view
Diffstat (limited to 'views')
| -rw-r--r-- | views/staff/_footer.ejs | 6 | ||||
| -rw-r--r-- | views/staff/projects/show.ejs | 57 |
2 files changed, 60 insertions, 3 deletions
diff --git a/views/staff/_footer.ejs b/views/staff/_footer.ejs index c363beb..839db4a 100644 --- a/views/staff/_footer.ejs +++ b/views/staff/_footer.ejs @@ -6,9 +6,11 @@ </body> [[ include ../partials/scripts ]] <script type="text/javascript" src="/assets/javascripts/vendor/bower_components/jquery-jsonview/dist/jquery.jsonview.js"></script> +<script type="text/javascript" src="/assets/javascripts/ui/site/StaffView.js"></script> <script> -$(".json").each(function(){ - $(this).JSONView( this.innerText ) +$(function(){ + var staffView = new StaffView () + staffView.load() }) </script> </html> diff --git a/views/staff/projects/show.ejs b/views/staff/projects/show.ejs index e821614..23e96b2 100644 --- a/views/staff/projects/show.ejs +++ b/views/staff/projects/show.ejs @@ -1,6 +1,6 @@ [[ include ../_header ]] - <h1>Project</h1> + <h1>[[- project.name ]]</h1> <nav> <a href="/staff">home</a> @@ -10,8 +10,63 @@ <hr> + <table> + <tr> + <td> + <a href="/staff/projects/[[- project.slug ]]">[[- project.name ]]</a> + </td> + <td class="editLinks"> + <a href="/project/[[- project.slug ]]">[view]</a> + <a href="/project/[[- project.slug ]]/edit">[edit]</a> + </td> + <td> + [[- project.date ]] + </td> + <td> + [[- project.privacy ? "private" : "" ]] + </td> + </tr> + <tr> + <td> + [[ if (projectUser.photo) { ]] + <a href="/staff/users/[[- projectUser.username ]]"><div style="background-image:url([[- projectUser.photo ]])" class="avatar"></div></a> + [[ } ]] + <a href="/staff/users/[[- projectUser.username ]]">[[- projectUser.username ]]</a> + </td> + </tr> + <tr> + <td colspan="999" class="description"> + "[[- project.description ]]" + </td> + </tr> + </table> + + <br> + <br> + <table id="iframe-embed" class="projectList"> + <tr> + <td class="border"> + <iframe src="/project/fafafa/view?noui=1&mute=1" class="embed"></iframe> + </td> + </tr> + </table> + <br> + <br> + <div class="json"> [[- projectJSON ]] </div> + <h2>Author</h2> + + <div class="json"> + [[- projectUserJSON ]] + </div> + + <h2>Collaborators</h2> + + <div class="json"> + [[- collaborators.length ? collaboratorsJSON : '"no collaborators"' ]] + </div> + [[ include ../_footer ]] |
