changeset 48:8032b626953b luisf

Both the Tip of the Day and the Notifications area only appear if they have content
author luisf
date Tue, 23 Nov 2010 13:41:39 +0000
parents 22ae926000f9
children 158a59127bbe
files app/views/welcome/index.rhtml
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/app/views/welcome/index.rhtml	Tue Nov 23 12:47:15 2010 +0000
+++ b/app/views/welcome/index.rhtml	Tue Nov 23 13:41:39 2010 +0000
@@ -1,16 +1,20 @@
-<div class="notifications flash error">
+<% if not Setting.notifications_text.empty? %>
+  <div class="notifications flash error">
     <%= textilizable Setting.notifications_text %>
-</div>
+  </div>
+<% end %>
 
 <h2><%= l(:label_home) %></h2>
 
 <div class="splitcontentleft">
   <%= textilizable Setting.welcome_text %>
   
+<% if not Setting.tipoftheday_text.empty? %>
   <div class="newsoftheday box">
     <h3><%=l(:label_tipoftheday)%></h3>
     <%= textilizable Setting.tipoftheday_text %>
   </div>
+<% end %>
 
   <% if @news.any? %>
   <div class="news box">