Remove leftover sub-tag support.

This commit is contained in:
Robin Ward 2013-02-19 14:06:31 -05:00
parent b7e027cfd1
commit da59c15b72
3 changed files with 2 additions and 9 deletions

View file

@ -69,13 +69,6 @@ Discourse.Topic = Discourse.Model.extend Discourse.Presence,
).property('new_posts', 'id')
displayTitle: (->
return null unless @get('title')
return @get('title') unless @get('category')
matches = @get('title').match(/^([a-zA-Z0-9]+\: )?(.*)/)
return matches[2]
).property('title')
# The coldmap class for the age of the topic
ageCold: (->
return unless lastPost = @get('last_posted_at')

View file

@ -17,7 +17,7 @@
<h1>
{{#if view.topic.title}}
{{view Discourse.TopicStatusView topicBinding="view.topic"}}
<a href='{{unbound view.topic.url}}'>{{unbound view.topic.displayTitle}}</a>
<a href='{{unbound view.topic.url}}'>{{unbound view.topic.title}}</a>
{{else}}
{{#if view.topic.missing}}
{{i18n topic.not_found.title}}

View file

@ -5,7 +5,7 @@
<h1>
{{#if view.topic.title}}
{{view Discourse.TopicStatusView topicBinding="view.topic"}}
<a class='topic-link' href='{{unbound view.topic.url}}'>{{view Discourse.AutoSizedTextView tagName="span" class="auto-sizer" contentBinding="view.topic.displayTitle"}}</a>
<a class='topic-link' href='{{unbound view.topic.url}}'>{{view Discourse.AutoSizedTextView tagName="span" class="auto-sizer" contentBinding="view.topic.title"}}</a>
{{else}}
{{#if view.topic.missing}}
{{i18n topic.not_found.title}}