diff --git a/app/presenters/browse_page_presenter.rb b/app/presenters/browse_page_presenter.rb index 3502a8e..d1fb81a 100644 --- a/app/presenters/browse_page_presenter.rb +++ b/app/presenters/browse_page_presenter.rb @@ -1,6 +1,6 @@ class BrowsePagePresenter - DEFAULT_CATEGORY = :all + DEFAULT_CATEGORY = :public DEFAULT_ORDER = :recency PER_PAGE = 12 diff --git a/app/presenters/user_page_presenter.rb b/app/presenters/user_page_presenter.rb index 820f1e5..f0fe0f8 100644 --- a/app/presenters/user_page_presenter.rb +++ b/app/presenters/user_page_presenter.rb @@ -49,7 +49,7 @@ class UserPagePresenter else count = user.public_asciicast_count if count > 0 - count = h.pluralize(count, 'asciicast') + count = h.pluralize(count, 'public asciicast') "#{count} by #{user.display_name}" else "#{user.display_name} hasn't recorded anything yet" diff --git a/app/views/home/show.html.slim b/app/views/home/show.html.slim index 70eaf02..4467784 100644 --- a/app/views/home/show.html.slim +++ b/app/views/home/show.html.slim @@ -65,7 +65,7 @@ a href=category_path(:featured) class="btn btn-success" Browse featured asciicasts .row .col-md-12 - h1 Latest asciicasts + h1 Latest public asciicasts .asciicast-list = render 'asciicasts/previews', asciicasts: page.latest_asciicasts, per_row: 3 p diff --git a/app/views/shared/_browse_categories.html.slim b/app/views/shared/_browse_categories.html.slim index 684f25d..700440c 100644 --- a/app/views/shared/_browse_categories.html.slim +++ b/app/views/shared/_browse_categories.html.slim @@ -1,5 +1,5 @@ h2 Browse = category_links current_category do |categories| + = categories.link_to 'All public', browse_path, :public = categories.link_to 'Featured', category_path(:featured), :featured - = categories.link_to 'All', browse_path, :all