Remove leftover sub-tag support.
This commit is contained in:
parent
b7e027cfd1
commit
da59c15b72
|
@ -69,13 +69,6 @@ Discourse.Topic = Discourse.Model.extend Discourse.Presence,
|
||||||
|
|
||||||
).property('new_posts', 'id')
|
).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
|
# The coldmap class for the age of the topic
|
||||||
ageCold: (->
|
ageCold: (->
|
||||||
return unless lastPost = @get('last_posted_at')
|
return unless lastPost = @get('last_posted_at')
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
<h1>
|
<h1>
|
||||||
{{#if view.topic.title}}
|
{{#if view.topic.title}}
|
||||||
{{view Discourse.TopicStatusView topicBinding="view.topic"}}
|
{{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}}
|
{{else}}
|
||||||
{{#if view.topic.missing}}
|
{{#if view.topic.missing}}
|
||||||
{{i18n topic.not_found.title}}
|
{{i18n topic.not_found.title}}
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
<h1>
|
<h1>
|
||||||
{{#if view.topic.title}}
|
{{#if view.topic.title}}
|
||||||
{{view Discourse.TopicStatusView topicBinding="view.topic"}}
|
{{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}}
|
{{else}}
|
||||||
{{#if view.topic.missing}}
|
{{#if view.topic.missing}}
|
||||||
{{i18n topic.not_found.title}}
|
{{i18n topic.not_found.title}}
|
||||||
|
|
Loading…
Reference in New Issue