aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorHumairAK <humair88@hotmail.com>2016-07-24 05:52:36 +0000
committerHumairAK <humair88@hotmail.com>2016-07-24 05:52:36 +0000
commit5061681d90297671a034310e01170b1357053257 (patch)
treeefb168108fc4c1ff66ce2c8add03b76e16495d87 /views
parentcba46a33d60a2ccb42745e6cf3ad5858f1bf98a3 (diff)
parent27dfe48c9d4f7cb224fe96082cfbe05be23c3a41 (diff)
resolved conflict
Diffstat (limited to 'views')
-rw-r--r--views/layouts/layout.hbs3
-rw-r--r--views/user_profile_alt.hbs58
2 files changed, 39 insertions, 22 deletions
diff --git a/views/layouts/layout.hbs b/views/layouts/layout.hbs
index ddfa945..62e9134 100644
--- a/views/layouts/layout.hbs
+++ b/views/layouts/layout.hbs
@@ -24,9 +24,6 @@
<script src="/assets/js/jquery-2.2.4.min.js"></script>
<script src="/assets/js/bootstrap.min.js"></script>
<script src="/assets/js/script.js"></script>
- <script>
- var socket = io();
- </script>
</head>
<body>
{{> header }}
diff --git a/views/user_profile_alt.hbs b/views/user_profile_alt.hbs
index bad6fe5..652cfee 100644
--- a/views/user_profile_alt.hbs
+++ b/views/user_profile_alt.hbs
@@ -20,8 +20,9 @@
<div class="collapse navbar-collapse" id="profile-nav">
<ul class="nav navbar-nav " >
<li><a href="#" class="prf-page">General</a></li>
- <li><a href="#" class="prf-page">Follows</a></li>
+ <li><a href="#" class="prf-page">Following</a></li>
<li><a href="#" class="prf-page">Friends</a></li>
+ <li><a href="#" class="prf-page">Send Message</a></li>
<li><a href="#" class="prf-page">Inbox</a></li>
<li><a href="#" class="prf-page">Comments</a></li>
</ul>
@@ -150,7 +151,36 @@
</table>
</div>
</div>
+ {{# if success }}
+ <section class="alert alert-success">
+ <!-- Change those to banners later -->
+ <h2>{{ success }}</h2>
+ </section>
+ {{ else }}
+ {{# if error }}
+ <section class="alert alert-danger">
+ <h2>{{ error }}</h2>
+ </section>
+ {{/if}}
+ {{/if}}
+ <div class="row" id="profile-send-message">
+ <h3>Send Message</h3>
+ <div class="col-xs-offset-1 col-sm-offset-3 col-xs-10 col-sm-6">
+ <form action="/user_profile/send_message" method="GET">
+ <div class="form-group">
+ <label for="receiver">Send To:</label>
+ <input type="text" class="form-control" placeholder="Username" name="receiver_username">
+ </div>
+ <div class="form-group">
+ <label for="sending-message">Message:</label>
+ <textarea class="form-control" rows="3" name="message"></textarea>
+ </div>
+ <button class="btn btn-primary">Send Message</button>
+ </form>
+ </div>
+ </div>
<div class="row" id="profile-inbox">
+ {{# if inbox }}
<h3>Inbox</h3>
<div class="col-sm-10 col-sm-offset-1 prf-tables">
<table class="table">
@@ -162,29 +192,19 @@
</tr>
</thead>
<tbody>
+ {{# each inbox }}
<tr>
- <td>2016-05-01</td>
- <td>Great Solution!1</td>
- <td>The Dude</td>
- </tr>
- <tr>
- <td>2016-04-05</td>
- <td>Woah look at this</td>
- <td>Lady Lips</td>
- </tr>
- <tr>
- <td>2016-02-30</td>
- <td>I don't get this, help!</td>
- <td>The Dude</td>
- </tr>
- <tr>
- <td>2016-01-15</td>
- <td>I solved your problem</td>
- <td>Lisa</td>
+ <td>{{ this.date }}</td>
+ <td>{{ this.message }}</td>
+ <td>{{ this.sender }}</td>
</tr>
+ {{/each}}
</tbody>
</table>
</div>
+ {{ else }}
+ <h3>No Messages.</h3>
+ {{/if}}
</div>
<div class="row" id="profile-comments">