mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-24 23:48:13 -05:00
Update Ember to 1.8.0.
Closes #4316 - Ember@1.8.0. - Ember-Data@1.0.0-beta.11. - Change templates to use new Ember.Select syntax and other minor cleanup. - Adjust functional tests.
This commit is contained in:
parent
1c7450bd04
commit
c2e35f9a9b
5 changed files with 10 additions and 4 deletions
|
@ -266,7 +266,7 @@ textarea {
|
|||
// Select Component
|
||||
// ---
|
||||
// <span class="gh-select">
|
||||
// {{view Ember.Select
|
||||
// {{view "select"
|
||||
// id="activeTheme"
|
||||
// name="general[activeTheme]"
|
||||
// content=themes
|
||||
|
|
|
@ -7,6 +7,12 @@ var ApplicationController = Ember.Controller.extend({
|
|||
showGlobalMobileNav: false,
|
||||
showSettingsMenu: false,
|
||||
|
||||
userImageAlt: Ember.computed('session.user.name', function () {
|
||||
var name = this.get('session.user.name');
|
||||
|
||||
return name + '\'s profile picture';
|
||||
}),
|
||||
|
||||
actions: {
|
||||
topNotificationChange: function (count) {
|
||||
this.set('topNotificationCount', count);
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
<div class="nav-item user-menu" data-href="#">
|
||||
{{#gh-dropdown-button dropdownName="user-menu" tagName="div" classNames="nav-label clearfix"}}
|
||||
{{#if session.user.image}}
|
||||
<div class="image"><img {{bind-attr src="session.user.image"}} alt="{{session.user.name}}'s profile picture" /></div>
|
||||
<div class="image"><img {{bind-attr src=session.user.image alt=userImageAlt}} /></div>
|
||||
{{else}}
|
||||
<div class="image"><img src="{{gh-path "blog" "shared/img/user-image.png"}}" alt="Profile picture" /></div>
|
||||
{{/if}}
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
<label for="author-list">Author</label>
|
||||
<span class="input-icon icon-user">
|
||||
<span class="gh-select" tabindex="0">
|
||||
{{view Ember.Select
|
||||
{{view "select"
|
||||
name="post-setting-author"
|
||||
id="author-list"
|
||||
content=authors
|
||||
|
|
|
@ -72,7 +72,7 @@
|
|||
<div class="form-group for-select">
|
||||
<label for="activeTheme">Theme</label>
|
||||
<span class="gh-select" {{bind-attr data-select-text=selectedTheme.label}} tabindex="0">
|
||||
{{view Ember.Select
|
||||
{{view "select"
|
||||
id="activeTheme"
|
||||
name="general[activeTheme]"
|
||||
content=themes
|
||||
|
|
Loading…
Add table
Reference in a new issue