Remove leftover sub-tag support.

This commit is contained in:
Robin Ward 2013-02-19 14:06:31 -05:00
parent 7ca57db97a
commit d87bced88a
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}}