Skip to content
Extraits de code Groupes Projets
Valider 6987baca rédigé par Jonne Haß's avatar Jonne Haß
Parcourir les fichiers

Merge pull request #4356 from Flaburgan/valid-meta-elements

Valid meta elements, add pod personalization
parents 554d0a93 ba886d12
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
* Refactor left bar side menu, improve tag autosuggestion design [#4271](https://github.com/diaspora/diaspora/issues/4271), [#4316](https://github.com/diaspora/diaspora/pull/4316) * Refactor left bar side menu, improve tag autosuggestion design [#4271](https://github.com/diaspora/diaspora/issues/4271), [#4316](https://github.com/diaspora/diaspora/pull/4316)
* Extract and factorize the header css in a new file, fix ugly header in registration [#4389](https://github.com/diaspora/diaspora/pull/4389) * Extract and factorize the header css in a new file, fix ugly header in registration [#4389](https://github.com/diaspora/diaspora/pull/4389)
* Move contact list on profile to profile information, show user his own contacts on profile [#4360](https://github.com/diaspora/diaspora/pull/4360) * Move contact list on profile to profile information, show user his own contacts on profile [#4360](https://github.com/diaspora/diaspora/pull/4360)
* Refactor metas, HTML is now valid [#4356](https://github.com/diaspora/diaspora/pull/4356)
## Bug fixes ## Bug fixes
* Check twitter write access before adding/authorizing it for a user. [#4124](https://github.com/diaspora/diaspora/issues/4124) * Check twitter write access before adding/authorizing it for a user. [#4124](https://github.com/diaspora/diaspora/issues/4124)
......
...@@ -17,10 +17,6 @@ module OpenGraphHelper ...@@ -17,10 +17,6 @@ module OpenGraphHelper
tags.join(' ') tags.join(' ')
end end
def og_site_name
meta_tag_with_property('og:site_name', 'Diaspora*')
end
def og_description(post) def og_description(post)
meta_tag_with_property('og:description', post_page_title(post, :length => 1000)) meta_tag_with_property('og:description', post_page_title(post, :length => 1000))
end end
......
...@@ -5,20 +5,18 @@ ...@@ -5,20 +5,18 @@
!!! !!!
%html{:lang => I18n.locale.to_s, :dir => (rtl?) ? 'rtl' : 'ltr'} %html{:lang => I18n.locale.to_s, :dir => (rtl?) ? 'rtl' : 'ltr'}
%head %head
%meta{:charset => 'utf-8'} %title
%meta{"http-equiv"=>"Content-Type", :content=>"text/html; charset=utf-8"} = page_title yield(:page_title)
%meta{:name => "description", :content => "Diaspora*"} %meta{:charset => 'utf-8'}/
%meta{:name => "author", :content => "Diaspora, Inc."} %meta{"http-equiv"=>"Content-Type", :content=>"text/html; charset=utf-8"}/
= og_site_name %meta{:name => "description", :content => "Diaspora*"}/
%meta{:name => "author", :content => "Diaspora, Inc."}/
%meta{:property => "og:site_name", :content => "#{AppConfig.settings.pod_name}"}/
%link{:rel => 'shortcut icon', :href => "#{image_path('favicon.png')}" } %link{:rel => 'shortcut icon', :href => "#{image_path('favicon.png')}" }
%link{:rel => 'apple-touch-icon', :href => "#{image_path('apple-touch-icon.png')}"} %link{:rel => 'apple-touch-icon', :href => "#{image_path('apple-touch-icon.png')}"}
%title
= page_title yield(:page_title)
= og_site_name
= chartbeat_head_block = chartbeat_head_block
= include_mixpanel = include_mixpanel
......
...@@ -8,17 +8,18 @@ ...@@ -8,17 +8,18 @@
%title %title
= pod_name = pod_name
%meta{:name => "description", :content => "Diaspora* Mobile"} %meta{:name => "description", :content => "Diaspora* Mobile"}/
%meta{:name => "author", :content => "Diaspora, Inc."} %meta{:name => "author", :content => "Diaspora, Inc."}/
%meta{:charset => 'utf-8'}/
%meta{"http-equiv"=>"Content-Type", :content=>"text/html; charset=utf-8"}/ %meta{:property => "og:site_name", :content => "#{AppConfig.settings.pod_name}"}/
/ Viewport scale / Viewport scale
%meta{:name =>'viewport', :content => "width=device-width, minimum-scale=1 maximum-scale=1"} %meta{:name =>'viewport', :content => "width=device-width, minimum-scale=1 maximum-scale=1"}/
%meta{:name => "HandheldFriendly", :content => "True"} %meta{:name => "HandheldFriendly", :content => "True"}/
%meta{:name => "MobileOptimized", :content => "320"} %meta{:name => "MobileOptimized", :content => "320"}/
/ Force cleartype on WP7 / Force cleartype on WP7
%meta{'http-equiv' => "cleartype", :content => 'on'} %meta{'http-equiv' => "cleartype", :content => 'on'}/
= og_site_name
/ Home screen icon (sized for retina displays) / Home screen icon (sized for retina displays)
%link{:rel => 'apple-touch-icon', :href => '/apple-touch-icon.png'} %link{:rel => 'apple-touch-icon', :href => '/apple-touch-icon.png'}
/ For Nokia devices / For Nokia devices
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter