Commit bdec164132c26d32d0f489f16cbfe0237de709ef
1 parent
e1382854
Exists in
master
and in
29 other branches
Better usability when adding a block.
* Reviewed all block desciptions; changed them to a single, short phrase describing the purpose of the block and removed the "term" block since it's not necessary in the context * Making better use of the space in "add block" popup
Showing
25 changed files
with
38 additions
and
31 deletions
Show diff stats
app/models/article_block.rb
app/models/blog_archives_block.rb
app/models/communities_block.rb
app/models/disabled_enterprise_message_block.rb
app/models/enterprises_block.rb
app/models/environment_statistics_block.rb
app/models/favorite_enterprises_block.rb
... | ... | @@ -5,11 +5,11 @@ class FavoriteEnterprisesBlock < ProfileListBlock |
5 | 5 | end |
6 | 6 | |
7 | 7 | def help |
8 | - __('This block lists the favorite enterprises of the user.') | |
8 | + __('This block lists your favorite enterprises.') | |
9 | 9 | end |
10 | 10 | |
11 | 11 | def self.description |
12 | - __('A block that displays your favorite enterprises') | |
12 | + __('Favorite enterprises') | |
13 | 13 | end |
14 | 14 | |
15 | 15 | def footer | ... | ... |
app/models/feed_reader_block.rb
app/models/friends_block.rb
app/models/link_list_block.rb
app/models/location_block.rb
app/models/login_block.rb
app/models/main_block.rb
app/models/members_block.rb
app/models/my_network_block.rb
app/models/people_block.rb
app/models/products_block.rb
app/models/profile_image_block.rb
... | ... | @@ -3,11 +3,11 @@ class ProfileImageBlock < Block |
3 | 3 | settings_items :show_name, :type => :boolean, :default => false |
4 | 4 | |
5 | 5 | def self.description |
6 | - _('A block that displays only image of profiles') | |
6 | + _('Picture') | |
7 | 7 | end |
8 | 8 | |
9 | 9 | def help |
10 | - _('This block presents the profile image.') | |
10 | + _('This block presents the profile image') | |
11 | 11 | end |
12 | 12 | |
13 | 13 | def content | ... | ... |
app/models/profile_info_block.rb
app/models/profile_list_block.rb
... | ... | @@ -3,7 +3,7 @@ class ProfileListBlock < Block |
3 | 3 | settings_items :limit, :type => :integer, :default => 6 |
4 | 4 | |
5 | 5 | def self.description |
6 | - _('A block that displays random profiles') | |
6 | + _('Random profiles') | |
7 | 7 | end |
8 | 8 | |
9 | 9 | # Override this method to make the block list specific types of profiles | ... | ... |
app/models/recent_documents_block.rb
1 | 1 | class RecentDocumentsBlock < Block |
2 | 2 | |
3 | 3 | def self.description |
4 | - _('List of recent content') | |
4 | + _('Last updates') | |
5 | 5 | end |
6 | 6 | |
7 | 7 | def default_title |
... | ... | @@ -9,7 +9,7 @@ class RecentDocumentsBlock < Block |
9 | 9 | end |
10 | 10 | |
11 | 11 | def help |
12 | - _('This block lists your recent content.') | |
12 | + _('This block lists your content most recently updated.') | |
13 | 13 | end |
14 | 14 | |
15 | 15 | settings_items :limit, :type => :integer, :default => 5 | ... | ... |
app/models/sellers_search_block.rb
app/models/slideshow_block.rb
app/models/tags_block.rb
app/views/box_organizer/add_block.rhtml
... | ... | @@ -7,12 +7,19 @@ |
7 | 7 | |
8 | 8 | <p><%= _('Select the type of block you want to add to your page.') %></p> |
9 | 9 | |
10 | - <% @block_types.each do |item| %> | |
11 | - <div> | |
12 | - <%= radio_button_tag('type', item.name) %> | |
13 | - <%= item.description %> | |
10 | + <% @block_types.in_groups_of(2) do |block1, block2| %> | |
11 | + <div style='float: left; width: 48%; padding-top: 2px;'> | |
12 | + <%= radio_button_tag('type', block1.name) %> | |
13 | + <%= label_tag "type_#{block1.name.downcase}", block1.description %> | |
14 | 14 | </div> |
15 | + <% if block2 %> | |
16 | + <div style='float: left; width: 48%; padding-top: 2px;'> | |
17 | + <%= radio_button_tag('type', block2.name) %> | |
18 | + <%= label_tag "type_#{block2.name.downcase}", block2.description %> | |
19 | + </div> | |
20 | + <% end %> | |
15 | 21 | <% end %> |
22 | + <br style='clear: both'/> | |
16 | 23 | |
17 | 24 | <% button_bar do %> |
18 | 25 | <%= submit_button(:add, _("Add")) %> | ... | ... |