Merge pull request #2452 from techAPJ/patch-glyph

remove computed property for progress bar glyph
This commit is contained in:
Neil Lalonde 2014-06-18 15:46:55 -04:00
commit 8f2d1f7020
2 changed files with 1 additions and 5 deletions

View File

@ -40,10 +40,6 @@ export default Ember.ObjectController.extend({
Discourse.URL.routeTo(url); Discourse.URL.routeTo(url);
}, },
chevronClass: function() {
return this.get('expanded') ? '' : 'fa-sort';
}.property('expanded'),
streamPercentage: function() { streamPercentage: function() {
if (!this.get('postStream.loaded')) { return 0; } if (!this.get('postStream.loaded')) { return 0; }
if (this.get('postStream.highest_post_number') === 0) { return 0; } if (this.get('postStream.highest_post_number') === 0) { return 0; }

View File

@ -17,6 +17,6 @@
<div class='nums'> <div class='nums'>
<h4>{{progressPosition}}</h4><span {{bind-attr class="hugeNumberOfPosts:hidden"}}> <span>{{i18n of_value}}</span> <h4>{{postStream.filteredPostsCount}}</h4></span> <h4>{{progressPosition}}</h4><span {{bind-attr class="hugeNumberOfPosts:hidden"}}> <span>{{i18n of_value}}</span> <h4>{{postStream.filteredPostsCount}}</h4></span>
</div> </div>
<i {{bind-attr class=":fa chevronClass"}}></i> <i {{bind-attr class=":fa expanded::fa-sort"}}></i>
<div class='bg'>&nbsp;</div> <div class='bg'>&nbsp;</div>
</nav> </nav>