diff --git a/app/models/featured_products_block.rb b/app/models/featured_products_block.rb index 426cf3c..ae2b78f 100644 --- a/app/models/featured_products_block.rb +++ b/app/models/featured_products_block.rb @@ -20,6 +20,10 @@ class FeaturedProductsBlock < Block _('Featured Products') end + def self.pretty_name + _('Featured Products') + end + def products Product.find(self.product_ids) || [] end diff --git a/app/models/feed_reader_block.rb b/app/models/feed_reader_block.rb index 555feeb..62cd003 100644 --- a/app/models/feed_reader_block.rb +++ b/app/models/feed_reader_block.rb @@ -40,6 +40,10 @@ class FeedReaderBlock < Block _('Feed reader') end + def self.pretty_name + _('Feed Reader') + end + def help _('This block can be used to list the latest new from any site you want. You just need to inform the address of a RSS feed.') end diff --git a/app/models/link_list_block.rb b/app/models/link_list_block.rb index 4068a68..b714521 100644 --- a/app/models/link_list_block.rb +++ b/app/models/link_list_block.rb @@ -55,6 +55,10 @@ class LinkListBlock < Block _('This block can be used to create a menu of links. You can add, remove and update the links as you wish.') end + def self.pretty_name + _('Link list') + end + def content(args={}) block_title(title) + content_tag('ul', diff --git a/app/models/raw_html_block.rb b/app/models/raw_html_block.rb index 652f90c..8a4ac03 100644 --- a/app/models/raw_html_block.rb +++ b/app/models/raw_html_block.rb @@ -4,6 +4,10 @@ class RawHTMLBlock < Block _('Raw HTML') end + def self.pretty_name + _('Raw HTML') + end + settings_items :html, :type => :text attr_accessible :html diff --git a/app/models/sellers_search_block.rb b/app/models/sellers_search_block.rb index 6aff8ac..ae98ca6 100644 --- a/app/models/sellers_search_block.rb +++ b/app/models/sellers_search_block.rb @@ -10,6 +10,10 @@ class SellersSearchBlock < Block _('Products/Enterprises search') end + def self.pretty_name + _('Sellers Search') + end + def default_title _('Search for sellers') end diff --git a/plugins/community_track/lib/community_track_plugin/track_card_list_block.rb b/plugins/community_track/lib/community_track_plugin/track_card_list_block.rb index 21384e8..fe6362e 100644 --- a/plugins/community_track/lib/community_track_plugin/track_card_list_block.rb +++ b/plugins/community_track/lib/community_track_plugin/track_card_list_block.rb @@ -8,6 +8,10 @@ class CommunityTrackPlugin::TrackCardListBlock < CommunityTrackPlugin::TrackList _('This block displays a list of most relevant tracks as cards.') end + def self.pretty_name + _('Track Card List') + end + def track_partial 'track_card' end diff --git a/plugins/community_track/lib/community_track_plugin/track_list_block.rb b/plugins/community_track/lib/community_track_plugin/track_list_block.rb index 8cce31b..95bd73e 100644 --- a/plugins/community_track/lib/community_track_plugin/track_list_block.rb +++ b/plugins/community_track/lib/community_track_plugin/track_list_block.rb @@ -14,6 +14,10 @@ class CommunityTrackPlugin::TrackListBlock < Block _('This block displays a list of most relevant tracks.') end + def self.pretty_name + _('Track List') + end + def track_partial 'track' end -- libgit2 0.21.2