diff --git a/app/assets/images/fb-image.png b/app/assets/images/fb-image.png new file mode 100644 index 000000000..c7b41f822 Binary files /dev/null and b/app/assets/images/fb-image.png differ diff --git a/app/helpers/facebook_helper.rb b/app/helpers/facebook_helper.rb index 063765683..25eeb607e 100644 --- a/app/helpers/facebook_helper.rb +++ b/app/helpers/facebook_helper.rb @@ -4,7 +4,7 @@ module FacebookHelper def facebook_meta_image resource = get_resource @fb_meta_image ||= avatar_url(resource, :big) if resource.respond_to?(:avatar) - @fb_meta_image ||= asset_url('logo-mini.png') + @fb_meta_image ||= asset_url('fb-image.png') @fb_meta_image end diff --git a/app/views/pages/tos.html.haml b/app/views/pages/tos.html.haml index 95650925a..106b6241f 100644 --- a/app/views/pages/tos.html.haml +++ b/app/views/pages/tos.html.haml @@ -1,3 +1,5 @@ +- set_meta_tags og: { description: 'Terms of Service' } + - render 'tos_sidebar' .tos diff --git a/app/views/pages/tour/abf-tour-project-description-1.html.slim b/app/views/pages/tour/abf-tour-project-description-1.html.slim index e4a7d80ab..8708f093b 100644 --- a/app/views/pages/tour/abf-tour-project-description-1.html.slim +++ b/app/views/pages/tour/abf-tour-project-description-1.html.slim @@ -1,3 +1,5 @@ +- set_meta_tags og: { description: t('tour.meta_description') } + .row .col-md-8.col-md-offset-2 .row diff --git a/app/views/pages/tour/tour-inside.html.slim b/app/views/pages/tour/tour-inside.html.slim index 7a906800b..acff0ee5f 100644 --- a/app/views/pages/tour/tour-inside.html.slim +++ b/app/views/pages/tour/tour-inside.html.slim @@ -1,3 +1,5 @@ +- set_meta_tags og: { description: t('tour.meta_description') } + .row .col-md-8.col-md-offset-2 .row diff --git a/app/views/projects/issues/show.html.slim b/app/views/projects/issues/show.html.slim index 7407d2abe..d50888211 100644 --- a/app/views/projects/issues/show.html.slim +++ b/app/views/projects/issues/show.html.slim @@ -1,4 +1,7 @@ --set_meta_tags title: [title_object(@project), @issue.title] +- set_meta_tags title: [title_object(@project), @issue.title] +- set_meta_tags og: { title: @issue.title, + description: truncate(@issue.body, length: 255) } + == render 'submenu' == render 'projects/comments/markdown_help' if current_user diff --git a/config/locales/tour.en.yml b/config/locales/tour.en.yml index 3a79d215c..6885af81c 100644 --- a/config/locales/tour.en.yml +++ b/config/locales/tour.en.yml @@ -1,5 +1,6 @@ en: tour: + meta_description: "A distributed environment to build distributions, supporting all steps from managing source code to create ISO images." read_more: more... projects: Project Management sources: Source Code diff --git a/config/locales/tour.ru.yml b/config/locales/tour.ru.yml index 8ae5eff72..31287a6ae 100644 --- a/config/locales/tour.ru.yml +++ b/config/locales/tour.ru.yml @@ -1,5 +1,6 @@ ru: tour: + meta_description: "Платформа разработки и управления жизненным циклом дистрибутивов: от исходного кода до ISO-образов." read_more: Читать далее... projects: Управление проектами sources: Исходный код