summaryrefslogtreecommitdiff
path: root/views/profile.ejs
diff options
context:
space:
mode:
Diffstat (limited to 'views/profile.ejs')
-rw-r--r--views/profile.ejs113
1 files changed, 25 insertions, 88 deletions
diff --git a/views/profile.ejs b/views/profile.ejs
index 5ac75c5..26f1ee1 100644
--- a/views/profile.ejs
+++ b/views/profile.ejs
@@ -6,109 +6,46 @@
</head>
<body class="loading">
<div class="rapper page">
- <a href="/" class="logo"><img src="assets/img/logo4.svg"></a>
- <a href="/edit-profile.html" class="topLink editProfile">edit profile <span class="icon-ios7-gear-outline"></span></a>
+ [[- 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">
- <!--IF NO PIC
<span class="icon-ios7-person-outline"></span>
- -->
</td>
+ [[ } ]]
<td class="bio">
- <h2>Ivan Sidorov</h2>
+ <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>
- New York City &middot; <a href="#">http://example.com/</a> &middot; <a href="#">@twitter</a>
+ <a href="https://twitter.com/[[- profile.twitterName ]]">@[[- profile.twitterName ]]</a>
</span>
+ [[ } ]]
</td>
</tr>
</table>
- <h1>Ivan has 4 projects</h1>
-
- <table>
- <tr>
- <td class="border room1">
- <div class="editBtn">edit</div>
- <div class="formHolder fixed animate">
- <span class="close">X</span>
- <div class="formInner">
- <form enctype="multipart/form-data" method="post">
- <ul>
- <li class="section_break">
- <h3>Edit Room</h3>
- </li>
- <li>
- <label class="description" for="element_3">Name:</label>
- <div>
- <input id="element_3_1" name= "element_3_1" class="element text" type="text" maxlength="255" value="Idea For Show"/>
- </div>
- </li>
- <li>
- <label class="description" for="element_2">Description:</label>
- <div>
- <textarea placeholder="short description"></textarea>
- </div>
- </li>
- <li>
- <label class="description" for="element_5">URL:</label>
- <div>
- <input id="element_5" name="element_5" class="element text medium" type="text" maxlength="255" value="http://vvalls.com/t987"/>
- </div>
- </li>
- <li>
- <label class="description" for="element_4">Privacy:</label>
- <div class="radio-group">
- <input id="opt_1" class="radio-group__option" type="radio" name="opt" checked="checked">
- <label class="radio-group__label" for="opt_1">
- Everyone
- </label>
-
- <input id="opt_2" class="radio-group__option" type="radio" name="opt">
- <label class="radio-group__label" for="opt_2">
- Just for me
- </label>
- </div>
- </li>
- <li class="buttons">
- <input type="hidden" name="form_id" value="795208" />
+ [[ include projects/list-projects ]]
- <input class="button_text" type="submit" name="submit" value="Submit" />
- </li>
- <hr>
- <li class="subButtons">
- <a href="#">Clone Project</a>
- <a href="#">Delete Project</a>
- </li>
- </ul>
- </form>
- </div>
- </div>
- <a href="/" class="roomName">Idea for Show</a>
- </td>
- <td class="border room1">
- <div class="editBtn">edit</div>
- <a href="/" class="roomName">Thing I'm Working On</a>
- </td>
- <td class="room1">
- <div class="editBtn">edit</div>
- <a href="/" class="roomName">Pace Gallery</a>
- </td>
- </tr>
- </table>
-
- <table>
- <tr>
- <td class="room1">
- <div class="editBtn">edit</div>
- <a href="/" class="roomName">Pace Gallery</a>
- </td>
- </tr>
- </table>
-
- <a href="#loadmore" class="viewMore" id="createProject">create project</a>
+ <a href="#" data-role="create-project-modal" class="viewMore" id="createProject">create project</a>
+ [[ include partials/edit-profile ]]
+ [[ include projects/create-project ]]
+ [[ include projects/edit-project ]]
[[ include partials/footer ]]
</div>