Commit 2a250870f05e18d46d3ae13e9e8b017fd54e978f
Committed by
Antonio Terceiro
1 parent
21196194
Exists in
master
and in
29 other branches
ActionItem1170: adding environment name as description
Showing
3 changed files
with
7 additions
and
1 deletions
Show diff stats
app/views/layouts/application-ng.rhtml
... | ... | @@ -5,6 +5,7 @@ |
5 | 5 | <%= meta_tags_for_article(@page) %> |
6 | 6 | <!--<meta http-equiv="refresh" content="1"/>--> |
7 | 7 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> |
8 | + <meta name="description" content="<%= @environment.name %>" /> | |
8 | 9 | <link rel="shortcut icon" href="<%= '/designs/themes/' + current_theme + '/imgs/favicon.ico' %>" type="image/x-icon" /> |
9 | 10 | <%= noosfero_javascript %> |
10 | 11 | <%= import_blocks_stylesheets %> | ... | ... |
app/views/layouts/application.rhtml
... | ... | @@ -3,7 +3,7 @@ |
3 | 3 | <head> |
4 | 4 | <title><%= page_title %></title> |
5 | 5 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
6 | - <meta name="description" content="FIXME: Descriptions of Noosfero" /> | |
6 | + <meta name="description" content="<%= @environment.name %>" /> | |
7 | 7 | <meta name="keywords" content="Noosfero, Community, Open Source" /> |
8 | 8 | <link rel="shortcut icon" href="<%= '/designs/themes/' + current_theme + '/images/favicon.ico' %>" type="image/x-icon" /> |
9 | 9 | <!-- ok --><%= meta_tags_for_article(@page) %> | ... | ... |
test/functional/application_controller_test.rb
... | ... | @@ -427,4 +427,9 @@ class ApplicationControllerTest < Test::Unit::TestCase |
427 | 427 | assert_equal false, @controller.avoid_ssl |
428 | 428 | end |
429 | 429 | |
430 | + should 'diplay name of environment in description' do | |
431 | + get :index | |
432 | + assert_tag :tag => 'meta', :attributes => { :name => 'description', :content => assigns(:environment).name } | |
433 | + end | |
434 | + | |
430 | 435 | end | ... | ... |