# HG changeset patch # User luisf # Date 1290519699 0 # Node ID 8032b626953b7c279bcab900455b821f10a3ebbd # Parent 22ae926000f9e3b7e4fb0b7e22582148f16e6a17 Both the Tip of the Day and the Notifications area only appear if they have content diff -r 22ae926000f9 -r 8032b626953b app/views/welcome/index.rhtml --- 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 @@ -
+<% if not Setting.notifications_text.empty? %> +
<%= textilizable Setting.notifications_text %> -
+
+<% end %>

<%= l(:label_home) %>

<%= textilizable Setting.welcome_text %> +<% if not Setting.tipoftheday_text.empty? %>

<%=l(:label_tipoftheday)%>

<%= textilizable Setting.tipoftheday_text %>
+<% end %> <% if @news.any? %>