<% if Setting.contact_us_enabled? && (!Setting.contact_form_requires_login? || User.current.logged?) %> <% contact = Redmine::MenuManager::MenuItem.new(:contact, { :controller => 'contact_form', :action => 'index', :id => nil }, :caption => Proc.new { Setting.contact_us_title }) %> <% end %>