mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 22:53:50 +08:00
remove hard-coded avatar url
This commit is contained in:
parent
2654060c14
commit
36f0bd36f4
|
@ -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')) {
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -688,6 +688,10 @@ section.details {
|
|||
position: relative;
|
||||
width: 45px;
|
||||
|
||||
.avatar-wrapper {
|
||||
background-color: #f4f4f4;
|
||||
}
|
||||
|
||||
.avatar-flair.demo {
|
||||
top: 25px;
|
||||
&.rounded {
|
||||
|
|
Loading…
Reference in New Issue
Block a user