<% if version.description.present? && !meta_description? %> <% meta_description(version.description) unless meta_description? %> <% end %> <% if version.wiki_page && version.wiki_page.text.present? && !meta_keywords? %> <% text = strip_textile(version.wiki_page.text, :object => version.wiki_page.content, :project => version.project, :attachments => version.wiki_page.attachments) %> <% meta_keywords(extract_keywords(text)) unless meta_keywords? %> <% end %> <% settings = Setting.plugin_meta %> <% unless settings[:facebook_admins].blank? %> <% content_for(:header_tags) do %> <% end %> <% end %> <% unless settings[:facebook_app].blank? %> <% content_for(:header_tags) do %> <% end %> <% end %> <% if settings[:open_graph] %> <% content_for(:header_tags) do %> <% if meta_description? %> <% end %> <% meta_images do |image| %> <% end %> <% unless settings[:open_graph_site].blank? %> <% end %> <% end %> <% end %> <% if settings[:twitter_cards] %> <% content_for(:header_tags) do %> <% if meta_description? %> <% end %> <% catch :done do %> <% meta_images do |image| %> <% throw :done %> <% end %> <% end %> <% project_twitter = project_twitter(version.project) %> <% unless project_twitter.blank? %> <% end %> <% end %> <% end %>