Merge pull request #122 from jccrofty30/avatar_on_history

Add avatar to History page.
This commit is contained in:
Max Wu 2016-05-15 12:24:33 +08:00
commit 86b7304746
3 changed files with 8 additions and 0 deletions

View file

@ -247,6 +247,11 @@ input {
.sort.desc {
text-decoration: underline;
}
.ui-avatar {
border-radius: 15em;
height: auto;
width: 200px;
}
.ui-history-close {
position: absolute;
right: 14px;

View file

@ -32,6 +32,7 @@ function pageInit() {
$('.ui-signin').hide();
$('.ui-or').hide();
$('.ui-welcome').show();
$('.ui-avatar').prop('src',data.photo);
$('.ui-name').html(data.name);
$('.ui-signout').show();
$(".ui-history").click();
@ -41,6 +42,7 @@ function pageInit() {
$('.ui-signin').slideDown();
$('.ui-or').slideDown();
$('.ui-welcome').hide();
$('.ui-avatar').prop('src','');
$('.ui-name').html('');
$('.ui-signout').hide();
parseStorageToHistory(historyList, parseHistoryCallback);

View file

@ -80,6 +80,7 @@
<p>Below are history from browser</p>
</div>
<div class="ui-signout" style="display:none;">
<img class="ui-avatar" />
<h4 class="ui-welcome">Welcome! <span class="ui-name"></span></h4>
<a href="<%- url %>/new" class="btn btn-default">New note</a> Or
<a href="#" class="btn btn-danger ui-logout">Sign Out</a>