0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00

Ember cleanup: double quotes + removed bad tag

- All HTML / Handlebars should use double quotes
- Removed a tag I meant to remove earlier
This commit is contained in:
Hannah Wolfe 2014-06-01 21:29:25 +01:00
parent 787182db55
commit 7f3e9da168
7 changed files with 16 additions and 17 deletions

View file

@ -19,7 +19,7 @@
{{/gh-popover-button}} {{/gh-popover-button}}
{{!-- @TODO: add functionality to allow for dropdown to work --}} {{!-- @TODO: add functionality to allow for dropdown to work --}}
{{#gh-popover tagName="ul" classNames="overlay" name="user-menu" closeOnClick="true"}} {{#gh-popover tagName="ul" classNames="overlay" name="user-menu" closeOnClick="true"}}
<li class="usermenu-profile">{{#link-to 'settings.user'}}Your Profile{{/link-to}}</li> <li class="usermenu-profile">{{#link-to "settings.user"}}Your Profile{{/link-to}}</li>
<li class="divider"></li> <li class="divider"></li>
<li class="usermenu-help"><a href="http://ghost.org/forum/">Help / Support</a></li> <li class="usermenu-help"><a href="http://ghost.org/forum/">Help / Support</a></li>
<li class="divider"></li> <li class="divider"></li>

View file

@ -1,4 +1,3 @@
<section class="entry-container">
<header> <header>
<section class="box entry-title"> <section class="box entry-title">
{{input type="text" id="entry-title" placeholder="Your Post Title" value=title tabindex="1"}} {{input type="text" id="entry-title" placeholder="Your Post Title" value=title tabindex="1"}}
@ -24,4 +23,4 @@
</section> </section>
</section> </section>
{{partial 'publish-bar'}} {{partial "publish-bar"}}

View file

@ -29,4 +29,4 @@
</tbody> </tbody>
</table> </table>
</form> </form>
<a class="delete" {{action 'openModal' 'delete-post' post}}>Delete This Post</a> <a class="delete" {{action "openModal" "delete-post" post}}>Delete This Post</a>

View file

@ -6,11 +6,11 @@
</section> </section>
{{#link-to "new" class="button button-add" title="New Post"}}<span class="hidden">New Post</span>{{/link-to}} {{#link-to "new" class="button button-add" title="New Post"}}<span class="hidden">New Post</span>{{/link-to}}
</header> </header>
{{#view 'content-list-content-view' tagName="section"}} {{#view "content-list-content-view" tagName="section"}}
<ol class="posts-list"> <ol class="posts-list">
{{#each itemController="posts/post" itemView="post-item-view" itemTagName="li"}} {{#each itemController="posts/post" itemView="post-item-view" itemTagName="li"}}
{{!-- @TODO: Restore functionality where 'featured' and 'page' classes are added for proper posts --}} {{!-- @TODO: Restore functionality where 'featured' and 'page' classes are added for proper posts --}}
{{#link-to 'posts.post' this class="permalink" title="Edit this post"}} {{#link-to "posts.post" this class="permalink" title="Edit this post"}}
<h3 class="entry-title">{{title}}</h3> <h3 class="entry-title">{{title}}</h3>
<section class="entry-meta"> <section class="entry-meta">
<span class="status"> <span class="status">

View file

@ -14,7 +14,7 @@
<div class="no-posts-box"> <div class="no-posts-box">
<div class="no-posts"> <div class="no-posts">
<h3>You Haven't Written Any Posts Yet!</h3> <h3>You Haven't Written Any Posts Yet!</h3>
{{#link-to 'new'}}<button class="button-add large" title="New Post">Write a new Post</button>{{/link-to}} {{#link-to "new"}}<button class="button-add large" title="New Post">Write a new Post</button>{{/link-to}}
</div> </div>
</div> </div>

View file

@ -2,7 +2,7 @@
<button class="button-back">Back</button> <button class="button-back">Back</button>
<h2 class="title">General</h2> <h2 class="title">General</h2>
<section class="page-actions"> <section class="page-actions">
<button class="button-save" {{action 'save'}}>Save</button> <button class="button-save" {{action "save"}}>Save</button>
</section> </section>
</header> </header>
@ -29,9 +29,9 @@
<div class="form-group"> <div class="form-group">
<label for="blog-logo">Blog Logo</label> <label for="blog-logo">Blog Logo</label>
{{#if logo}} {{#if logo}}
<a class="js-modal-logo" href="#" {{action 'openModal' 'upload'}}><img id="blog-logo" {{bind-attr src=logo}} alt="logo"></a> <a class="js-modal-logo" href="#" {{action "openModal" "upload"}}><img id="blog-logo" {{bind-attr src=logo}} alt="logo"></a>
{{else}} {{else}}
<a class="button-add js-modal-logo" {{action 'openModal' 'upload'}}>Upload Image</a> <a class="button-add js-modal-logo" {{action "openModal" "upload"}}>Upload Image</a>
{{/if}} {{/if}}
<p>Display a sexy logo for your publication</p> <p>Display a sexy logo for your publication</p>
</div> </div>
@ -39,9 +39,9 @@
<div class="form-group"> <div class="form-group">
<label for="blog-cover">Blog Cover</label> <label for="blog-cover">Blog Cover</label>
{{#if cover}} {{#if cover}}
<a class="js-modal-cover" href="#" {{action 'openModal' 'upload'}}><img id="blog-cover" {{bind-attr src=logo}} alt="cover photo"></a> <a class="js-modal-cover" href="#" {{action "openModal" "upload"}}><img id="blog-cover" {{bind-attr src=logo}} alt="cover photo"></a>
{{else}} {{else}}
<a class="button-add js-modal-cover" {{action 'openModal' 'upload'}}>Upload Image</a> <a class="button-add js-modal-cover" {{action "openModal" "upload"}}>Upload Image</a>
{{/if}} {{/if}}
<p>Display a cover image on your site</p> <p>Display a cover image on your site</p>
</div> </div>

View file

@ -2,7 +2,7 @@
<button class="button-back">Back</button> <button class="button-back">Back</button>
<h2 class="title">Your Profile</h2> <h2 class="title">Your Profile</h2>
<section class="page-actions"> <section class="page-actions">
<button class="button-save" {{action 'save'}}>Save</button> <button class="button-save" {{action "save"}}>Save</button>
</section> </section>
</header> </header>
@ -11,7 +11,7 @@
<header class="user-profile-header"> <header class="user-profile-header">
<img id="user-cover" class="cover-image" {{bind-attr src=cover title=coverTitle}} /> <img id="user-cover" class="cover-image" {{bind-attr src=cover title=coverTitle}} />
<a class="edit-cover-image js-modal-cover button" {{action 'openModal' 'upload'}}>Change Cover</a> <a class="edit-cover-image js-modal-cover button" {{action "openModal" "upload"}}>Change Cover</a>
</header> </header>
<form class="user-profile" novalidate="novalidate"> <form class="user-profile" novalidate="novalidate">
@ -19,8 +19,8 @@
<fieldset class="user-details-top"> <fieldset class="user-details-top">
<figure class="user-image"> <figure class="user-image">
<div id="user-image" class="img" {{bind-attr style=image}} href="#"><span class="hidden">{{name}}'s Picture</span></div> <div id="user-image" class="img" {{bind-attr style=image}} href="#"><span class="hidden">{{name}}"s Picture</span></div>
<a href="" {{action 'openModal' 'upload'}} class="edit-user-image js-modal-image">Edit Picture</a> <a href="" {{action "openModal" "upload"}} class="edit-user-image js-modal-image">Edit Picture</a>
</figure> </figure>
<div class="form-group"> <div class="form-group">
@ -81,7 +81,7 @@
{{input value=ne2Password type="password" id="user-new-password-verification"}} {{input value=ne2Password type="password" id="user-new-password-verification"}}
</div> </div>
<div class="form-group"> <div class="form-group">
<button type="button" class="button-delete button-change-password" {{action 'password'}}>Change Password</button> <button type="button" class="button-delete button-change-password" {{action "password"}}>Change Password</button>
</div> </div>
</fieldset> </fieldset>