Commit 1e4cabef579e73664dc67e79ec4ce5370ee63a06
1 parent
997ef39a
Exists in
master
and in
21 other branches
Revert "layout: remove tag on metadata_plugin"
This reverts commit e99db083e4bb10047cc8b543bbc5151abbe36372.
Showing
2 changed files
with
8 additions
and
0 deletions
Show diff stats
app/views/layouts/application-ng.html.erb
| @@ -6,6 +6,10 @@ | @@ -6,6 +6,10 @@ | ||
| 6 | <!--<meta http-equiv="refresh" content="1"/>--> | 6 | <!--<meta http-equiv="refresh" content="1"/>--> |
| 7 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> | 7 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> |
| 8 | 8 | ||
| 9 | + <% unless defined? MetadataPlugin and environment.enabled_plugins.include? 'MetadataPlugin' %> | ||
| 10 | + <meta name="description" content="<%= @environment.name %>" /> | ||
| 11 | + <% end %> | ||
| 12 | + | ||
| 9 | <!-- site root --> | 13 | <!-- site root --> |
| 10 | <meta property="noosfero:root" content="<%= Noosfero.root %>"/> | 14 | <meta property="noosfero:root" content="<%= Noosfero.root %>"/> |
| 11 | 15 |
plugins/metadata/lib/ext/environment.rb
| @@ -2,6 +2,10 @@ require_dependency 'environment' | @@ -2,6 +2,10 @@ require_dependency 'environment' | ||
| 2 | 2 | ||
| 3 | class Environment | 3 | class Environment |
| 4 | 4 | ||
| 5 | + metadata_spec tags: { | ||
| 6 | + description: proc{ |e, plugin| e.name }, | ||
| 7 | + } | ||
| 8 | + | ||
| 5 | metadata_spec namespace: :og, tags: { | 9 | metadata_spec namespace: :og, tags: { |
| 6 | type: 'website', | 10 | type: 'website', |
| 7 | title: proc{ |e, plugin| e.name }, | 11 | title: proc{ |e, plugin| e.name }, |