diff options
| author | Jules Laplace <jules@okfoc.us> | 2014-10-10 15:59:50 -0400 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2014-10-10 15:59:50 -0400 |
| commit | e35d5df30c8106bc1f4bfcbd1ba0094d8e6bc642 (patch) | |
| tree | 3a08b1f98211f554aa6ab49aa986ab236601f810 /views | |
| parent | e75bf50727b3ebdd142953c09117de38d3a5b174 (diff) | |
change profile avatar
Diffstat (limited to 'views')
| -rw-r--r-- | views/profile.ejs | 8 | ||||
| -rw-r--r-- | views/projects/list-projects.ejs | 4 |
2 files changed, 8 insertions, 4 deletions
diff --git a/views/profile.ejs b/views/profile.ejs index 5ff2eb0..2909fb8 100644 --- a/views/profile.ejs +++ b/views/profile.ejs @@ -16,8 +16,10 @@ <div class="profilePic noPic"> <span class="holder"> <span class="ion-ios7-person-outline"></span> - <div>click to add profile pic</div> - <input id="profile_avatar" name="avatar" class="element file" type="file"> + [[ if (isOwnProfile) { ]] + <div>click to add profile pic</div> + <input id="profile_avatar" name="avatar" class="element file" type="file"> + [[ } ]] </span> </div> [[ } ]] @@ -57,12 +59,14 @@ VValls lets you create awesome 3D rooms. </h2> + [[ if (isOwnProfile) { ]] <h2> You don't have any projects yet. </h2> <h2> <a href="#"class="btn" data-role="new-project-modal">Create a New Project</a> </h2> + [[ } ]] </div> [[ } ]] diff --git a/views/projects/list-projects.ejs b/views/projects/list-projects.ejs index c47dee0..9dbd7d2 100644 --- a/views/projects/list-projects.ejs +++ b/views/projects/list-projects.ejs @@ -5,9 +5,9 @@ [[ projects.forEach(function(project, i) { ]] [[ if (String(user._id) == String(project.user_id)) { ]] - <a href="/project/[[- project.slug ]]/edit"> + <a href="/project/[[- project.slug ]]/edit" class="projectItem"> [[ } else { ]] - <a href="/project/[[- project.slug ]]" class="roomName"> + <a href="/project/[[- project.slug ]]" class="projectItem"> [[ } ]] <span class="room" style="background-color: rgb([[- project.color ]]);"> |
