Commit efcb99700185b5c9e14cb29fc4a4834d9462a540
1 parent
db0dabfe
Exists in
staging
and in
4 other branches
Pretty name for some blocks
Showing
7 changed files
with
28 additions
and
0 deletions
Show diff stats
app/models/featured_products_block.rb
app/models/feed_reader_block.rb
| ... | ... | @@ -40,6 +40,10 @@ class FeedReaderBlock < Block |
| 40 | 40 | _('Feed reader') |
| 41 | 41 | end |
| 42 | 42 | |
| 43 | + def self.pretty_name | |
| 44 | + _('Feed Reader') | |
| 45 | + end | |
| 46 | + | |
| 43 | 47 | def help |
| 44 | 48 | _('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.') |
| 45 | 49 | end | ... | ... |
app/models/link_list_block.rb
| ... | ... | @@ -55,6 +55,10 @@ class LinkListBlock < Block |
| 55 | 55 | _('This block can be used to create a menu of links. You can add, remove and update the links as you wish.') |
| 56 | 56 | end |
| 57 | 57 | |
| 58 | + def self.pretty_name | |
| 59 | + _('Link list') | |
| 60 | + end | |
| 61 | + | |
| 58 | 62 | def content(args={}) |
| 59 | 63 | block_title(title) + |
| 60 | 64 | content_tag('ul', | ... | ... |
app/models/raw_html_block.rb
app/models/sellers_search_block.rb
plugins/community_track/lib/community_track_plugin/track_card_list_block.rb
| ... | ... | @@ -8,6 +8,10 @@ class CommunityTrackPlugin::TrackCardListBlock < CommunityTrackPlugin::TrackList |
| 8 | 8 | _('This block displays a list of most relevant tracks as cards.') |
| 9 | 9 | end |
| 10 | 10 | |
| 11 | + def self.pretty_name | |
| 12 | + _('Track Card List') | |
| 13 | + end | |
| 14 | + | |
| 11 | 15 | def track_partial |
| 12 | 16 | 'track_card' |
| 13 | 17 | end | ... | ... |
plugins/community_track/lib/community_track_plugin/track_list_block.rb