mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 09:36:19 -05:00
Remove leftover sub-tag support.
This commit is contained in:
parent
b7e027cfd1
commit
da59c15b72
3 changed files with 2 additions and 9 deletions
|
@ -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')
|
||||
|
|
|
@ -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}}
|
||||
|
|
|
@ -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}}
|
||||
|
|
Loading…
Reference in a new issue