summaryrefslogtreecommitdiff
path: root/views/profile.ejs
diff options
context:
space:
mode:
Diffstat (limited to 'views/profile.ejs')
-rw-r--r--views/profile.ejs104
1 files changed, 69 insertions, 35 deletions
diff --git a/views/profile.ejs b/views/profile.ejs
index ada3d52..d3ae10e 100644
--- a/views/profile.ejs
+++ b/views/profile.ejs
@@ -1,52 +1,86 @@
<!doctype html>
<html>
<head>
- <title>vvalls</title>
+ <title>VValls | [[- profile.displayName ]]</title>
[[ include partials/meta ]]
</head>
<body class="loading">
<div class="rapper page">
[[- include partials/header ]]
- <table class="profilepage">
- <tr>
- [[ if (profile.photo && profile.photo.length) { ]]
- <td class="border profilePic" style="background-image:url([[- profile.photo ]])">
- </td>
- [[ } else { ]]
- <td class="border profilePic">
- <span class="icon-ios7-person-outline"></span>
- </td>
+ <div class="profilepage">
+ [[ if (profile.photo && profile.photo.length) { ]]
+ <div class="profilePic" style="background-image:url([[- profile.photo ]])">
+ </div>
+ [[ } else { ]]
+ <div class="profilePic noPic">
+ <span class="holder">
+ <span class="ion-ios-person-outline"></span>
+ [[ if (isOwnProfile) { ]]
+ <div>click to add profile pic</div>
+ <input id="profile_avatar" name="avatar" class="element file" type="file">
+ [[ } ]]
+ </span>
+ </div>
+ [[ } ]]
+ <div class="bio">
+ <div class="holder">
+ <h2>[[- profile.displayName ]]</h2>
+ [[ if (profile.location) { ]]
+ <span>
+ [[- profile.location ]]
+ </span>
+ [[ } ]]
+ [[ if (profile.website && profile.website.length) { ]]
+ <span>
+ <a href="[[- profile.website ]]" target="_blank">[[- profile.website ]]</a>
+ </span>
+ [[ } ]]
+ [[ if (profile.twitterName && profile.twitterName.length) { ]]
+ <span>
+ <a href="https://twitter.com/[[- profile.twitterName ]]" target="_blank">@[[- profile.twitterName ]]</a>
+ </span>
[[ } ]]
- <td class="bio">
- <h2>[[- profile.displayName ]]</h2>
- [[ if (profile.location) { ]]
- <span>
- [[- profile.location ]]
- </span>
- [[ } ]]
- [[ if (profile.website && profile.website.length) { ]]
- <span>
- <a href="[[- profile.website ]]">[[- profile.website ]]</a>
- </span>
- [[ } ]]
- [[ if (profile.twitterName && profile.twitterName.length) { ]]
- <span>
- <a href="https://twitter.com/[[- profile.twitterName ]]">@[[- profile.twitterName ]]</a>
- </span>
- [[ } ]]
- </td>
- </tr>
- </table>
+ [[ if (profile.plan_level == 1) { ]]
+ <span class="plan_level premium">PREMIUM</span>
+ [[ } else if (profile.plan_level == 2) { ]]
+ <span class="plan_level pro">PRO</span>
+ [[ } ]]
+ </div>
+ </div>
[[ if (projects.length) { ]]
- <h1>[[- profile.username ]] has [[- projects.length ]] project[[- projects.length != 1 ? "s" : "" ]]</h1>
+
+ <h1>[[- profile.username ]] has [[- projectCount ]] project[[- projectCount != 1 ? "s" : "" ]]</h1>
+ [[ include projects/list-projects ]]
+
+ [[ } else { ]]
+
+ <h1>Welcome to VVALLS</h1>
+ <div class="projectList about">
+ <h2>
+ 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>
+ [[ } else { ]]
+ <h2><a href="/" class="homeLink">Learn more about VValls</a></h2>
+ <h3>This person has no projects.</h3>
+ [[ } ]]
+ </div>
+
[[ } ]]
-
- [[ include projects/list-projects ]]
- <a href="#" data-role="new-project-modal" class="viewMore btn">create project</a>
-
+ </div>
+<!--
+ [[ include partials/edit-subscription ]]
+ -->
[[ include partials/edit-profile ]]
[[ include projects/layouts-modal ]]
[[ include projects/edit-project ]]