Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added a message to indicate there are no widgets available

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@41492 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information...
commit 4301f7b29f5824ac4ef87e3b2e7b460e175d68f4 1 parent 0538bc2
@halkyon halkyon authored
Showing with 9 additions and 3 deletions.
  1. +9 −3 templates/WidgetAreaEditor.ss
View
12 templates/WidgetAreaEditor.ss
@@ -3,9 +3,15 @@
<div class="availableWidgetsHolder">
<h2>Available Widgets</h2>
<div class="availableWidgets" id="WidgetAreaEditor_availableWidgets">
- <% control AvailableWidgets %>
- $DescriptionSegment
- <% end_control %>
+ <% if AvailableWidgets %>
+ <% control AvailableWidgets %>
+ $DescriptionSegment
+ <% end_control %>
+ <% else %>
+ <div id="NoWidgets">
+ <p>There are currently no widgets available.</p>
+ </div>
+ <% end_if %>
</div>
</div>
<div class="usedWidgetsHolder">
Please sign in to comment.
Something went wrong with that request. Please try again.