Make it clear listed asciicasts are public

element
Marcin Kulik 10 years ago
parent 26be8c5227
commit e7e71644d4

@ -1,6 +1,6 @@
class BrowsePagePresenter
DEFAULT_CATEGORY = :all
DEFAULT_CATEGORY = :public
DEFAULT_ORDER = :recency
PER_PAGE = 12

@ -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"

@ -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

@ -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

Loading…
Cancel
Save