mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-17 23:44:39 -05: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
78036af5ca
commit
2ef6464700
3 changed files with 6 additions and 10 deletions
|
@ -104,7 +104,7 @@
|
|||
.user-last-seen {
|
||||
line-height: 1em;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
.user-role {
|
||||
|
@ -128,7 +128,7 @@
|
|||
|
||||
.user-profile-header {
|
||||
position: relative;
|
||||
|
||||
|
||||
// Gradient overlay
|
||||
&:after {
|
||||
content: "";
|
||||
|
@ -208,7 +208,7 @@
|
|||
display: block;
|
||||
width: 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-position: center center;
|
||||
}
|
||||
|
@ -236,7 +236,7 @@
|
|||
#user-name {
|
||||
border-color: #fff;
|
||||
}
|
||||
|
||||
|
||||
.user-details-bottom {
|
||||
padding: 0 40px;
|
||||
margin: -30px 0 0 0;
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
<section class="content no-padding">
|
||||
|
||||
<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>
|
||||
</header>
|
||||
|
||||
|
|
|
@ -180,8 +180,6 @@
|
|||
this.model.save({
|
||||
title: title,
|
||||
description: description,
|
||||
logo: this.$('#blog-logo').attr("src"),
|
||||
cover: this.$('#blog-cover').attr("src"),
|
||||
email: email,
|
||||
postsPerPage: postsPerPage,
|
||||
activeTheme: this.$('#activeTheme').val()
|
||||
|
@ -320,9 +318,7 @@
|
|||
'email': userEmail,
|
||||
'location': userLocation,
|
||||
'website': userWebsite,
|
||||
'bio': userBio,
|
||||
'image': this.$('#user-image').attr('src'),
|
||||
'cover': this.$('#user-cover').attr('src')
|
||||
'bio': userBio
|
||||
}, {
|
||||
success: this.saveSuccess,
|
||||
error: this.saveError
|
||||
|
|
Loading…
Add table
Reference in a new issue