diff options
| author | Fredrik Nygren <frny@valteo.net> | 2013-08-20 21:55:31 +0200 |
|---|---|---|
| committer | Christian Weiske <cweiske@cweiske.de> | 2013-08-20 21:55:31 +0200 |
| commit | 79c1bd43280da948530b75e0036e181a39d1e5f1 (patch) | |
| tree | 71562242c821da364e0e078dc83072d17fb9664f /data | |
| parent | bc5dc89cb33243ff64064875b4bc2c629d812bb9 (diff) | |
| download | phorkie-79c1bd43280da948530b75e0036e181a39d1e5f1.tar.gz phorkie-79c1bd43280da948530b75e0036e181a39d1e5f1.zip | |
Implement #37: Add avatar to navbar and profile page.
Diffstat (limited to 'data')
| -rw-r--r-- | data/templates/base.htm | 2 | ||||
| -rw-r--r-- | data/templates/display-sidebar-history.htm | 2 | ||||
| -rw-r--r-- | data/templates/display-sidebar-owner.htm | 6 | ||||
| -rw-r--r-- | data/templates/user.htm | 7 |
4 files changed, 11 insertions, 6 deletions
diff --git a/data/templates/base.htm b/data/templates/base.htm index 1dcf0fc..75f9d18 100644 --- a/data/templates/base.htm +++ b/data/templates/base.htm @@ -45,7 +45,7 @@ <ul class="nav pull-right"> {% if identity %} <li> - <a href="user">{{name}}</a> + <a href="user"><img class="avatar-tiny" src="{{htmlhelper.getIconUrl(email, 20)}}" width="20" height="20" /> {{name}}</a> </li> {% endif %} {% if db.adapter %} diff --git a/data/templates/display-sidebar-history.htm b/data/templates/display-sidebar-history.htm index 6dda7e0..0e99b2f 100644 --- a/data/templates/display-sidebar-history.htm +++ b/data/templates/display-sidebar-history.htm @@ -9,7 +9,7 @@ {% endfor %} {% endspaceless %} <a class="hash" href="{{repo.getLink('revision', commit.hash)}}">{{commit.hash|slice(0, 6)}}</a> - <img src="{{commit.getIconUrl}}" alt="{{commit.committerName}}" title="{{commit.committerName}}" width="20"/> + <img class="avatar-tiny" src="{{commit.getIconUrl}}" alt="{{commit.committerName}}" title="{{commit.committerName}}" width="20" height="20"/> <span class="nobr" title="{{commit.committerTime|date('c')}}"> <span class="indent visible-tablet"></span> {{dh.get(commit.committerTime)}} diff --git a/data/templates/display-sidebar-owner.htm b/data/templates/display-sidebar-owner.htm index f84a5fa..032488d 100644 --- a/data/templates/display-sidebar-owner.htm +++ b/data/templates/display-sidebar-owner.htm @@ -1,9 +1,9 @@ {% set owner = repo.getOwner %} <div class="well well-small vcard"> <img src="{{htmlhelper.getIconUrl(owner.email, 48)}}" alt="{{owner.name}}" - width="48" height="48" class="photo" - style="float: left; padding-right: 1ex;"/> + width="48" height="48" class="photo avatar-small pull-left" + style="margin-right: 1em;" /> <span class="fn">{{owner.name}}</span> <br/><span class="muted">owner</span> <span class="clearfix"/> -</div>
\ No newline at end of file +</div> diff --git a/data/templates/user.htm b/data/templates/user.htm index ab55b59..0856a6d 100644 --- a/data/templates/user.htm +++ b/data/templates/user.htm @@ -10,16 +10,21 @@ <h3>User profile</h3> <dl> <dt>OpenID</dt> - <dd><code>{{ identity }}</code> + <dd><code>{{ identity }}</code></dd> <dt>Name</dt> <dd><code>{{ name }}</code></dd> <dt>Email</dt> <dd><code>{{ email }}</code></dd> + + <dt>Avatar image</dt> + <dd><img class="avatar-large" src="{{htmlhelper.getIconUrl(email, 92)}}"></dd> </dl> <p> You may change this data with your OpenID provider. + The avatar image is loaded from <a href="http://libravatar.org/">libravatar.org</a>, + or perhaps from your own avatar server. </p> {% endblock %} |
