Fixed settings page.

This commit is contained in:
Michael Zhang 2016-03-02 23:42:14 -06:00
parent bc7af104c4
commit 1b16b3d5e0
2 changed files with 9 additions and 2 deletions

View file

@ -4,7 +4,7 @@
<div class="panel panel-default">
<div class="panel-body">
<div style="width:100%;max-width:100%;">
<img src="/api/user/avatar/{{ user.uid }}" id="avatar" style="width:100%;" />
<img src="/api/user/avatar/{{ user.uid }}" id="avatar" style="width:100%;max-height:256px;" />
<small style="display:block;text-align:right;" ng-show="user['me']==true"><a href="/settings#profile">Edit Picture</a></small>
</div>
<h2 style="margin:0px;font-weight:bold;font-size:2em;">{{ user.name }}</h2>

View file

@ -21,9 +21,16 @@
<label>Profile Picture</label>
<div class="row">
<div class="col-sm-2">
<img src="/api/user/avatar/{{ user.uid }}" id="avatar" style="width:100%;max-height:256px;" />
</div>
<div class="col-sm-10">
<pre>{{ user }}</pre>
<p>
<a href="javascript:upload_new_picture();" class="btn btn-primary">Upload new picture</a>
<a href="javascript:remove_profile_picture();" class="btn btn-default">Remove profile picture</a>
</p>
<p>
<i>If you remove your picture, an automatically generated <a href="http://en.wikipedia.org/wiki/Identicon" target="_blank">identicon</a> will be used.</i>
</p>
</div>
</div>
</div>