app/views/layouts/components/backend/sidebars/_left_sidebar.html.erb in phcmemberspro-13.4.0 vs app/views/layouts/components/backend/sidebars/_left_sidebar.html.erb in phcmemberspro-13.4.1

- old
+ new

@@ -19,21 +19,23 @@ </div> <div class="logo-element"> PHC </div> </li> - <li class="<%= is_active_controller('phcmemberspro/member/profiles') %>"> - <a href=""><i class="fa fa-users"></i> <span class="nav-label">Member Information</span> <span class="fa arrow"></span></a> - <ul class="nav nav-second-level collapse"> - <li class=""><%= link_to "Members List", phcmemberspro.member_profiles_path %></li> - <li class=""><%= link_to "Add a Memmber", phcmemberspro.new_member_profile_path %></li> - </ul> - </li> - <li class="<%= is_active_controller('phcmemberspro/directory/categories') %>"> - <a href=""><i class="fa fa-sitemap"></i> <span class="nav-label">Directories &amp; Listings</span> <span class="fa arrow"></span></a> - <ul class="nav nav-second-level collapse"> - <li class=""><%= link_to "Category List", phcmemberspro.directory_categories_path %></li> - <li class=""><%= link_to "Add a Category", phcmemberspro.new_directory_category_path %></li> - </ul> - </li> + <% if defined?(phcmemberspro) %> + <li class="<%= is_active_controller('phcmemberspro/member/profiles') %>"> + <a href=""><i class="fa fa-users"></i> <span class="nav-label">Member Information</span> <span class="fa arrow"></span></a> + <ul class="nav nav-second-level collapse"> + <li class=""><%= link_to "Members List", phcmemberspro.member_profiles_path %></li> + <li class=""><%= link_to "Add a Memmber", phcmemberspro.new_member_profile_path %></li> + </ul> + </li> + <li class="<%= is_active_controller('phcmemberspro/directory/categories') %>"> + <a href=""><i class="fa fa-sitemap"></i> <span class="nav-label">Directories &amp; Listings</span> <span class="fa arrow"></span></a> + <ul class="nav nav-second-level collapse"> + <li class=""><%= link_to "Category List", phcmemberspro.directory_categories_path %></li> + <li class=""><%= link_to "Add a Category", phcmemberspro.new_directory_category_path %></li> + </ul> + </li> + <% end %> </ul> </div>