Merge branch 'master' into vdom

This commit is contained in:
Sam 2016-02-12 18:21:03 +11:00
commit f02e035f94
3 changed files with 4 additions and 4 deletions

View File

@ -134,7 +134,7 @@
{{#if model.details.suggested_topics.length}}
<div id="suggested-topics">
<h3>{{unbound view.suggestedTitle}}</h3>
<h3>{{{unbound view.suggestedTitle}}}</h3>
<div class="topics">
{{#if model.isPrivateMessage}}
{{basic-topic-list

View File

@ -167,7 +167,7 @@ const TopicView = Ember.View.extend(AddCategoryClass, AddArchetypeClass, Scrolli
suggestedTitle: function(){
return this.get('controller.model.isPrivateMessage') ?
I18n.t("suggested_topics.pm_title") :
"<i class='private-message-glyph fa fa-envelope'></i> " + I18n.t("suggested_topics.pm_title") :
I18n.t("suggested_topics.title");
}.property()
});

View File

@ -22,12 +22,12 @@ class PostgreSQLFallbackHandler
Thread.new do
begin
logger.info "#{self.class}: Checking master server..."
logger.warn "#{self.class}: Checking master server..."
connection = ActiveRecord::Base.postgresql_connection(config)
if connection.active?
connection.disconnect!
logger.info "#{self.class}: Master server is active. Reconnecting..."
logger.warn "#{self.class}: Master server is active. Reconnecting..."
ActiveRecord::Base.establish_connection(config)
Discourse.disable_readonly_mode
@master = true