diff options
| author | Jules Laplace <jules@okfoc.us> | 2014-08-25 14:24:45 -0400 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2014-08-25 14:24:45 -0400 |
| commit | 124a698130f39992a1b47dcc8f32ef30c61a00eb (patch) | |
| tree | ce37d2bebb8a7975cd060a313f211f1cbe8be17e /views/controls | |
| parent | 099dfd16940c62e931bf01e7f62b7a45f2b8c654 (diff) | |
stub in collaborator ui
Diffstat (limited to 'views/controls')
| -rw-r--r-- | views/controls/editor/collaborators.ejs | 24 | ||||
| -rw-r--r-- | views/controls/reader/about-room.ejs | 7 |
2 files changed, 21 insertions, 10 deletions
diff --git a/views/controls/editor/collaborators.ejs b/views/controls/editor/collaborators.ejs index 448b6d4..035507b 100644 --- a/views/controls/editor/collaborators.ejs +++ b/views/controls/editor/collaborators.ejs @@ -1,14 +1,6 @@ -<div class="collaborators fixed animate"> +<div class="collaborators fixed mediaDrawer animate"> <span class="close">X</span> - <ul id="collaborator-list"> - <li> - <div class="avatar"></div> - <span class="username"></span> - <button class="remove-user">Remove</button> - </li> - </ul> - <div> To invite others to contribute to this project, submit their email address below. They'll receive an email with instructions to join this blog and register if they're not a Vvalls user yet. </div> @@ -18,4 +10,18 @@ <button id="collaborator-invite">Invite to this project</button> </form> + <ul id="collaborator-list"> + </ul> + </div> + +<script type="text/html" id="collaborator-template"> + <li> + <a class="user"> + <div class="avatar"></div> + <span class="username"></span> + </a> + <span class="email"></span> + <button data-role="destroy-collaborator" class="remove-user">Remove</button> + </li> +</script> diff --git a/views/controls/reader/about-room.ejs b/views/controls/reader/about-room.ejs index f990da8..2aa244b 100644 --- a/views/controls/reader/about-room.ejs +++ b/views/controls/reader/about-room.ejs @@ -3,7 +3,12 @@ [[- name ]],<br> <a href="[[- authorlink ]]">[[- author ]]</a> </h1> - <h2>Last modified [[- date ]]</h2> + <h2> + Last modified [[- date ]] + [[ if (canEdit) { ]] + · <a href="[[- editlink ]]" class="editlink">Edit</a> + [[ } ]] + </h2> <span>[[- description ]]</span> </div> |
