<%= label_tag('settings[facebook_admins]', l(:label_facebook_admins)) %> <%= text_field_tag('settings[facebook_admins]', @settings[:facebook_admins], :size => 50) %> <%= l(:text_facebook_admins) %>
<%= label_tag('settings[facebook_app]', l(:label_facebook_app)) %> <%= text_field_tag('settings[facebook_app]', @settings[:facebook_app], :size => 50) %> <%= l(:text_facebook_app) %>
<% unless defined? observe_field %> <% open_graph_onclick = 'if (this.checked) { $("#open_graph").show(); } else { $("#open_graph").hide(); }' %> <% else %> <% open_graph_onclick = 'if (this.checked) { Element.show("open_graph"); } else { Element.hide("open_graph"); }' %> <% end %> <%= label_tag('settings[open_graph]', l(:label_enable_open_graph)) %> <%= check_box_tag('settings[open_graph]', 1, @settings[:open_graph], :onclick => open_graph_onclick) %>
<%= label_tag('settings[open_graph_site]', l(:label_open_graph_site)) %> <%= text_field_tag('settings[open_graph_site]', @settings[:open_graph_site], :size => 30) %> <%= l(:text_open_graph_site) %>
<% unless defined? observe_field %> <% twitter_cards_onclick = 'if (this.checked) { $("#twitter_cards").show(); } else { $("#twitter_cards").hide(); }' %> <% else %> <% twitter_cards_onclick = 'if (this.checked) { Element.show("twitter_cards") } else { Element.hide("twitter_cards") }' %> <% end %> <%= label_tag('settings[twitter_cards]', l(:label_enable_twitter_cards)) %> <%= check_box_tag('settings[twitter_cards]', 1, @settings[:twitter_cards], :onclick => twitter_cards_onclick) %>
<%= label_tag('settings[twitter_site]', l(:label_twitter_site)) %> <%= text_field_tag('settings[twitter_site]', @settings[:twitter_site], :size => 30) %> <%= l(:text_twitter_site) %>
<%= label_tag('settings[twitter_user_custom_field]', l(:label_twitter_user_custom_field)) %> <%= select_tag('settings[twitter_user_custom_field]', content_tag(:option) + options_from_collection_for_select(user_custom_fields, :id, :name, @settings[:twitter_user_custom_field].to_i)) %> <%= l(:text_twitter_user_custom_field) %>
<%= label_tag('settings[twitter_project_custom_field]', l(:label_twitter_project_custom_field)) %> <%= select_tag('settings[twitter_project_custom_field]', content_tag(:option) + options_from_collection_for_select(project_custom_fields, :id, :name, @settings[:twitter_project_custom_field].to_i)) %> <%= l(:text_twitter_project_custom_field) %>