remove hard-coded avatar url

This commit is contained in:
Neil Lalonde 2016-08-17 16:57:31 -04:00
parent 2654060c14
commit 36f0bd36f4
3 changed files with 9 additions and 1 deletions

View File

@ -36,6 +36,10 @@ export default Ember.Controller.extend({
];
}.property(),
demoAvatarUrl: function() {
return Discourse.getURL('/images/avatar.png');
}.property(),
flairPreviewStyle: function() {
var style = '';
if (this.get('model.flair_url')) {

View File

@ -121,7 +121,7 @@
<label>{{i18n 'admin.groups.flair_preview'}}</label>
<div class="avatar-flair-preview">
<div class="avatar-wrapper">
<img alt width="45" height="45" src="https://avatars.discourse.org/v3/letter/a/a3d4f5/45.png" class="avatar actor" title="demo">
<img alt width="45" height="45" src="{{demoAvatarUrl}}" class="avatar actor">
</div>
<div class="avatar-flair demo {{flairPreviewClasses}}" style={{flairPreviewStyle}}></div>
</div>

View File

@ -688,6 +688,10 @@ section.details {
position: relative;
width: 45px;
.avatar-wrapper {
background-color: #f4f4f4;
}
.avatar-flair.demo {
top: 25px;
&.rounded {