diff --git a/app/assets/javascripts/discourse/mixins/has_current_user.js b/app/assets/javascripts/discourse/mixins/has_current_user.js index b23d3a28761..92d5461a1f4 100644 --- a/app/assets/javascripts/discourse/mixins/has_current_user.js +++ b/app/assets/javascripts/discourse/mixins/has_current_user.js @@ -2,30 +2,11 @@ This mixin provides a `currentUser` property that can be used to retrieve information about the currently logged in user. It is mostly useful to controllers so it can be exposted to templates. - - Outside of templates, code should probably use `Discourse.User.current()` instead of - this property. - - @class Discourse.HasCurrentUser - @extends Ember.Mixin - @namespace Discourse - @module HasCurrentUser **/ Discourse.HasCurrentUser = Em.Mixin.create({ - /** - Returns a reference to the currently logged in user. - - @method currentUser - @return {Discourse.User} the currently logged in user if present. - */ currentUser: function() { return Discourse.User.current(); }.property().volatile() }); - - - - - diff --git a/app/views/list/list.erb b/app/views/list/list.erb index 669b8f9eb4b..966c863f5fa 100644 --- a/app/views/list/list.erb +++ b/app/views/list/list.erb @@ -9,7 +9,7 @@ -<% if @list.topics.length > 0 %> +<% if @list.topics.length > 0 && @list.more_topics_url %>
<% if params[:page].to_i > 0 %>
<%= t 'prev_page'%>
diff --git a/app/views/list/list.rss.erb b/app/views/list/list.rss.erb
index eb041a96862..5116a167561 100644
--- a/app/views/list/list.rss.erb
+++ b/app/views/list/list.rss.erb
@@ -17,7 +17,7 @@
<%= t('author_wrote', author: link_to("@#{topic.user.username}", "#{Discourse.base_url}/users/#{topic.user.username_lower}")).html_safe %>
<%= topic.posts.first.cooked.html_safe %>diff --git a/lib/topic_list_responder.rb b/lib/topic_list_responder.rb index f1f1af0dbf2..05133300855 100644 --- a/lib/topic_list_responder.rb +++ b/lib/topic_list_responder.rb @@ -12,7 +12,7 @@ module TopicListResponder format.html do @list = list store_preloaded(list.preload_key, MultiJson.dump(TopicListSerializer.new(list, scope: guardian))) - render 'list' + render 'list/list' end format.json do render_serialized(list, TopicListSerializer)