mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-25 03:44:29 +03:00
Default user image and cover
closes #812 - replace defaults with consistently named .png files - change the settings saving code so that it doesn't double-save images and save the defaults to the db
This commit is contained in:
parent
6fe4efe2bd
commit
7193f05376
@ -208,7 +208,7 @@
|
|||||||
display: block;
|
display: block;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
background-image: url(/shared/img/default-user-profile-picture.jpg);
|
background-image: url(/shared/img/user-image.png);
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
background-position: center center;
|
background-position: center center;
|
||||||
}
|
}
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
<section class="content no-padding">
|
<section class="content no-padding">
|
||||||
|
|
||||||
<header class="user-profile-header">
|
<header class="user-profile-header">
|
||||||
<img id="user-cover" class="cover-image" src="{{#if cover}}{{cover}}{{else}}/shared/img/cover.png{{/if}}" title="{{name}}'s Cover Image"/>
|
<img id="user-cover" class="cover-image" src="{{#if cover}}{{cover}}{{else}}/shared/img/user-cover.png{{/if}}" title="{{name}}'s Cover Image"/>
|
||||||
<button class="edit-cover-image js-modal-cover">Change Cover</button>
|
<button class="edit-cover-image js-modal-cover">Change Cover</button>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
|
@ -180,8 +180,6 @@
|
|||||||
this.model.save({
|
this.model.save({
|
||||||
title: title,
|
title: title,
|
||||||
description: description,
|
description: description,
|
||||||
logo: this.$('#blog-logo').attr("src"),
|
|
||||||
cover: this.$('#blog-cover').attr("src"),
|
|
||||||
email: email,
|
email: email,
|
||||||
postsPerPage: postsPerPage,
|
postsPerPage: postsPerPage,
|
||||||
activeTheme: this.$('#activeTheme').val()
|
activeTheme: this.$('#activeTheme').val()
|
||||||
@ -320,9 +318,7 @@
|
|||||||
'email': userEmail,
|
'email': userEmail,
|
||||||
'location': userLocation,
|
'location': userLocation,
|
||||||
'website': userWebsite,
|
'website': userWebsite,
|
||||||
'bio': userBio,
|
'bio': userBio
|
||||||
'image': this.$('#user-image').attr('src'),
|
|
||||||
'cover': this.$('#user-cover').attr('src')
|
|
||||||
}, {
|
}, {
|
||||||
success: this.saveSuccess,
|
success: this.saveSuccess,
|
||||||
error: this.saveError
|
error: this.saveError
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
<li id="usermenu" class="subnav">
|
<li id="usermenu" class="subnav">
|
||||||
<a href="#" data-toggle="ul" class="dropdown">
|
<a href="#" data-toggle="ul" class="dropdown">
|
||||||
<img class="avatar" src="{{#if currentUser.profile}}{{currentUser.profile}}{{else}}/shared/img/default-user-profile-picture.jpg{{/if}}" alt="Avatar" />
|
<img class="avatar" src="{{#if currentUser.profile}}{{currentUser.profile}}{{else}}/shared/img/user-image.png{{/if}}" alt="Avatar" />
|
||||||
<span class="name">{{#if currentUser.name}}{{currentUser.name}}{{else}}Ghost{{/if}} v{{version}}</span>
|
<span class="name">{{#if currentUser.name}}{{currentUser.name}}{{else}}Ghost{{/if}} v{{version}}</span>
|
||||||
</a>
|
</a>
|
||||||
<ul class="overlay">
|
<ul class="overlay">
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 23 KiB |
BIN
core/shared/img/user-image.png
Normal file
BIN
core/shared/img/user-image.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.8 KiB |
Loading…
Reference in New Issue
Block a user