Added meta tags for tour and issue pages

This commit is contained in:
Vokhmin Alexey V 2015-02-27 01:39:51 +03:00
parent 9cc7191b12
commit b2a3fb5ff0
8 changed files with 13 additions and 2 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.7 KiB

View File

@ -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

View File

@ -1,3 +1,5 @@
- set_meta_tags og: { description: 'Terms of Service' }
- render 'tos_sidebar'
.tos

View File

@ -1,3 +1,5 @@
- set_meta_tags og: { description: t('tour.meta_description') }
.row
.col-md-8.col-md-offset-2
.row

View File

@ -1,3 +1,5 @@
- set_meta_tags og: { description: t('tour.meta_description') }
.row
.col-md-8.col-md-offset-2
.row

View File

@ -1,4 +1,7 @@
- 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

View File

@ -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

View File

@ -1,5 +1,6 @@
ru:
tour:
meta_description: "Платформа разработки и управления жизненным циклом дистрибутивов: от исходного кода до ISO-образов."
read_more: Читать далее...
projects: Управление проектами
sources: Исходный код