diff options
| author | HumairAK <humair88@hotmail.com> | 2016-08-26 23:10:20 +0000 |
|---|---|---|
| committer | HumairAK <humair88@hotmail.com> | 2016-08-26 23:10:20 +0000 |
| commit | 17a4b5f57e0223b211ab8ff601e587920e6e1bef (patch) | |
| tree | 24db71046a122602ca53e9729a8d5385c5aca55c /views | |
| parent | 7deb83c56e680769ccc72527d719dbc411c20469 (diff) | |
added some user profile inbox functionality
Diffstat (limited to 'views')
| -rw-r--r-- | views/user_profile_alt.hbs | 52 |
1 files changed, 51 insertions, 1 deletions
diff --git a/views/user_profile_alt.hbs b/views/user_profile_alt.hbs index 8ca5597..8cc45b8 100644 --- a/views/user_profile_alt.hbs +++ b/views/user_profile_alt.hbs @@ -127,7 +127,57 @@ <h4>Inbox </h4> <hr> - <p>[PlaceHolder]</p> + {{# if inbox }} + <div class="col-sm-12"> + <table class="table table-striped u-table"> + <thead> + <tr> + <th>Date</th> + <th>Subject</th> + <th>Sender</th> + </tr> + </thead> + <tbody> + {{# each inbox }} + <tr class="u-table-row" data-toggle="modal" data-target=".{{ this.class }}"> + <td>{{ this.date }}</td> + <td>{{ this.subject }}</td> + <td>{{ this.sender }}</td> + </tr> + {{/each}} + </tbody> + </table> + + + + {{# each inbox}} + <article class="modal fade {{this.class}}"> + <div class="modal-dialog"> + <div class="modal-content"> + + <section class="modal-header"> + <button type="button" class="close" data-dismiss="modal">×</button> + <h4 class="modal-title"><em>Subject: </em>{{ this.subject }}</h4> + <h5><em>From: </em>{{ this.sender }}</h5> + <em>Date: </em> {{this.date}} + </section> + + <section class="modal-body"> + {{ this.message }} + </section> + + <div class="modal-footer"> + + </div> + + </div> + </div> + </article> + {{/each}} + </div> + {{ else }} + <h3>No Messages.</h3> + {{/if}} </section> |
