FIX: Malformed HTML really screws with the renderer

This commit is contained in:
Robin Ward 2014-10-06 16:28:48 -04:00
parent 52298faaa0
commit 76a9eca5b0
2 changed files with 25 additions and 30 deletions

View file

@ -99,27 +99,27 @@
<a {{bind-attr class=":star topic.starred:starred"}} {{action "toggleStar"}} href='#' {{bind-attr title="topic.starTooltip"}}></a>
{{/if}}
<div class="title-wrapper">
<h1>
{{#if showPrivateMessageGlyph}}
<span class="private-message-glyph">{{fa-icon envelope}}</span>
{{/if}}
{{#if topic.details.loaded}}
{{topic-status topic=topic}}
<a class='topic-link' href='{{unbound topic.url}}' {{action "jumpToTopPost"}}>{{{topic.fancy_title}}}</a>
{{else}}
{{#if topic.errorLoading}}
{{topic.errorTitle}}
{{else}}
{{i18n topic.loading}}
<h1>
{{#if showPrivateMessageGlyph}}
<span class="private-message-glyph">{{fa-icon envelope}}</span>
{{/if}}
{{#if topic.details.loaded}}
{{topic-status topic=topic}}
<a class='topic-link' href='{{unbound topic.url}}' {{action "jumpToTopPost"}}>{{{topic.fancy_title}}}</a>
{{else}}
{{#if topic.errorLoading}}
{{topic.errorTitle}}
{{else}}
{{i18n topic.loading}}
{{/if}}
{{/if}}
</h1>
{{#if topic.category.parentCategory}}
{{bound-category-link topic.category.parentCategory onlyStripe="true"}}
{{/if}}
</h1>
{{#if topic.category.parentCategory}}
{{bound-category-link topic.category.parentCategory onlyStripe="true"}}
{{/if}}
{{bound-category-link topic.category onlyStripe="true"}}
</div>
{{bound-category-link topic.category onlyStripe="true"}}
</div>
</div>
</div>
{{/if}}

View file

@ -9,14 +9,11 @@
{{#if postStream.firstPostPresent}}
<div id='topic-title'>
<div class='container'>
{{#if showStarButton}}
<a {{bind-attr class=":star starred:starred"}} {{action "toggleStar"}} href='#' {{bind-attr title="starTooltip"}}></a>
{{/if}}
{{#if showStarButton}}
<a {{bind-attr class=":star starred:starred"}} {{action "toggleStar"}} href='#' {{bind-attr title="starTooltip"}}></a>
{{/if}}
<div class="title-wrapper">
<div class="title-wrapper">
{{#if editingTopic}}
{{#if isPrivateMessage}}
<span class="private-message-glyph">{{fa-icon envelope}}</span>
@ -56,12 +53,10 @@
{{/if}}
{{bound-category-link category}}
{{/unless}}
</div>
{{/if}}
{{plugin-outlet "topic-title"}}
</div>
{{plugin-outlet "topic-title"}}
</div>
</div>
{{/if}}