diaspora/app/views/layouts/application.html.haml
Denis Hovart bcace2def2 6840 : meta tags update (#6998)
* Adds a new metadata helper and methods to PostPresenter to have metas on post pages.

* Adds tests to post controller to check correctness of metas

* Add methods to PersonPresenter to have metas on profile pages

* Correct meta data helper test

* Update PersonPresenter, add test to PeopleController

* Creates TagPresenter. Display tag metas on tag index page

* Updata meta data helper spec

* Not displaying bio as the description meta on profile page for now. Privacy concerns to be cleared.

* Set meta info as hashes in presenters

* Move original hardcoded metas info to config/defaults.yml

* metas_tags include by default the general metas, update views

* Update code style, clean views

* Renames TagPresenter StreamTagPresenter, updates TagController spec

* Add a default_metas entry to diaspora.yml.example

* Align metas hash in presenters, refactor meta data helper

* Use bio as description meta if user has a public profile

* Rename StreamTagPresenter to TagStreamPresenter
2016-08-18 21:52:39 +02:00

73 lines
1.8 KiB
Text

-# Copyright (c) 2010-2011, Diaspora Inc. This file is
-# licensed under the Affero General Public License version 3 or later. See
-# the COPYRIGHT file.
!!!
%html{lang: I18n.locale.to_s, dir: (rtl?) ? 'rtl' : 'ltr'}
%head{prefix: og_prefix}
%title
= page_title yield(:page_title)
%meta{charset: 'utf-8'}/
%meta{"http-equiv" => "Content-Type", :content=>"text/html; charset=utf-8"}/
%meta{name: "viewport", content: "width=device-width, initial-scale=1"}/
= content_for?(:meta_data) ? yield(:meta_data) : metas_tags
%link{rel: 'shortcut icon', href: "#{image_path('favicon.png')}" }
= chartbeat_head_block
= include_mixpanel
= include_color_theme
- if rtl?
= stylesheet_link_tag :rtl, media: 'all'
- if Rails.env.test?
= stylesheet_link_tag :poltergeist_disable_transition, media: "all"
= old_browser_js_support
<!--[if IE]>
= javascript_include_tag :ie
<![endif]-->
= jquery_include_tag
= javascript_include_tag :main, :templates
= load_javascript_locales
= translation_missing_warnings
= current_user_atom_tag
= yield(:head)
= csrf_meta_tag
= include_gon(camel_case: true)
%body{ class: "page-#{controller_name} action-#{action_name}" }
= yield :before_content
%noscript
.noscript
%h3= t("error_messages.need_javascript")
= content_for?(:content) ? yield(:content) : yield
= yield :after_content
= include_chartbeat
= include_mixpanel_guid
.blueimp-gallery.blueimp-gallery-controls#blueimp-gallery
.slides
%h3.title
%a.prev
.entypo-chevron-small-left
%a.next
.entypo-chevron-small-right
%a.close
.entypo-cross
%a.play-pause
%ol.indicator
#flash-container= flash_messages