Commit 940ab5143c8abf0c75733a040ebad927f641b1f8
Exists in
web_steps_improvements
and in
9 other branches
Merge branch 'some-bug-fixes' into 'master'
link block: shows default message for new blocks with no links Currently, link blocks are added with no links and no title which, depending on the theme, makes it hard to see where the block was added. This patch add a help message for the user as suggested in #144, following the behavior of other blocks like slideshow block. See merge request !724
Showing
2 changed files
with
7 additions
and
0 deletions
Show diff stats
app/views/blocks/link_list.html.erb
test/unit/link_list_block_test.rb
... | ... | @@ -134,4 +134,9 @@ class LinkListBlockTest < ActiveSupport::TestCase |
134 | 134 | assert_match /title="mytitle"/, render_block_content(l) |
135 | 135 | end |
136 | 136 | |
137 | + should 'display default message to brand new blocks with no links' do | |
138 | + l = LinkListBlock.new | |
139 | + assert_match /Please, edit this block to add links/, render_block_content(l) | |
140 | + end | |
141 | + | |
137 | 142 | end | ... | ... |