<% if ((Setting.users_contact_form? && user.pref.contact_form) || User.current.admin?) && (!Setting.contact_form_requires_login? || User.current.logged?) %> <% content_for(:header_tags) do %> <%= stylesheet_link_tag('contact', :plugin => 'contact_form') %> <% if defined? observe_field %> <%= javascript_include_tag('contact_prototype', :plugin => 'contact_form') %> <% else %> <%= javascript_include_tag('contact_jquery', :plugin => 'contact_form') %> <% end %> <% end %> <%= link_to(l(:button_contact), { :controller => 'contact_form', :action => 'index', :id => user }, :id => 'contact_form', :class => 'icon icon-contact', :style => 'display: none;') %> <%= javascript_tag("fix_contact_button_position();") %> <% end %>