a/an universe

This commit is contained in:
Andrew Brown 2019-06-12 02:14:23 -05:00
parent ecbad780ea
commit e5844b341e

View File

@ -41,7 +41,7 @@
<%= link_to new_polymorphic_path(content_type), class: "btn-floating btn-large hoverable halfway-fab waves-effect waves-light #{content_type_class.color} tooltipped #{'grey' unless current_user.can_create?(content_type_class)}",
data: {
position: 'bottom',
tooltip: current_user.can_create?(content_type_class) ? "Create a#{'n' if %w(a e i o u).include?(content_type.to_s[0])} #{content_type.to_s}"
tooltip: current_user.can_create?(content_type_class) ? "Create a#{'n' if %w(a e i o u).include?(content_type.to_s[0]) && content_type.to_s != 'universe'} #{content_type.to_s}"
: "#{content_type.to_s.pluralize.titleize} require a Premium subscription to create.",
enterDelay: 50
} do %>