public
Description: OneBody is web-based software that connects community members, especially churches, on the web.
Homepage: http://beonebody.com
Clone URL: git://github.com/seven1m/onebody.git
Fixed bug in layout when Groups are unlimited.
Tim Morgan (author)
Thu Aug 14 06:14:00 -0700 2008
commit  baf41c2abb250813246e6f3e4dd4ee96035ebba5
tree    99a94a3d851b2078e26051c898b700f1ddb16c9e
parent  f4794ec8d4dc217ea765ab353751f6664cefe856
...
74
75
76
77
 
78
79
80
...
74
75
76
 
77
78
79
80
0
@@ -74,7 +74,7 @@
0
             <% if Setting.get(:features, :content_management_system) %><li style="padding-right:8px;border-right:1px dotted #fff;"><%= link_to 'Home', '/', :class => (params[:controller] == 'pages' and @page and @page.home? ? 'active' : nil) %></li><% end %>
0
             <li><%= link_to 'Profile', people_path, :class => (params[:controller] == 'people' and @person == @logged_in ? 'active' : nil) %></li>
0
             <li><%= link_to 'Directory', new_search_path, :class => (%w(searches printable_directories).include?(params[:controller]) ? 'active' : nil) %></li>
0
-            <% if Setting.get(:features, :groups) and Site.current.max_groups > 0 %><li><%= link_to 'Groups', groups_path, :class => (params[:controller] == 'groups' ? 'active' : nil) %></li><% end %>
0
+            <% if Setting.get(:features, :groups) and (Site.current.max_groups.nil? or Site.current.max_groups > 0) %><li><%= link_to 'Groups', groups_path, :class => (params[:controller] == 'groups' ? 'active' : nil) %></li><% end %>
0
             <li><%= link_to 'More', shares_path, :class => (['shares', 'events', 'pictures', 'verses', 'recipes'].include?(params[:controller]) ? 'active' : nil) %></li>
0
 
0
         </ul>

Comments