Extract partial with common <head> tags.
This commit is contained in:
8
app/views/layouts/_common_head.html.erb
Normal file
8
app/views/layouts/_common_head.html.erb
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
<meta charset="utf-8" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||||
|
<title><%= content_for?(:title) ? yield(:title) : default_title %></title>
|
||||||
|
<%= stylesheet_link_tag "application" %>
|
||||||
|
<%= javascript_include_tag "application", 'data-turbolinks-track' => true %>
|
||||||
|
<%= csrf_meta_tags %>
|
||||||
|
<%= favicon_link_tag "favicon.ico" %>
|
||||||
@@ -2,15 +2,8 @@
|
|||||||
<html lang="es">
|
<html lang="es">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<%= render "layouts/common_head", default_title: "Admin" %>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
||||||
<title><%= content_for?(:title) ? yield(:title) : "Admin" %></title>
|
|
||||||
<%= stylesheet_link_tag "application" %>
|
|
||||||
<%= javascript_include_tag "application", 'data-turbolinks-track' => true %>
|
|
||||||
<%= content_for :head %>
|
<%= content_for :head %>
|
||||||
<%= csrf_meta_tags %>
|
|
||||||
<%= favicon_link_tag "favicon.ico" %>
|
|
||||||
<%= javascript_tag "jQuery.fx.off = true" if Rails.env.test? %>
|
<%= javascript_tag "jQuery.fx.off = true" if Rails.env.test? %>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
|
|||||||
@@ -1,20 +1,13 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="<%= I18n.locale %>" data-current-user-id="<%= current_user.try(:id) %>">
|
<html lang="<%= I18n.locale %>" data-current-user-id="<%= current_user.try(:id) %>">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<%= render "layouts/common_head", default_title: setting['org_name'] %>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
||||||
<%= render "layouts/tracking_data" %>
|
<%= render "layouts/tracking_data" %>
|
||||||
<%= render "layouts/meta_tags" %>
|
<%= render "layouts/meta_tags" %>
|
||||||
<title><%= content_for?(:title) ? yield(:title) : setting['org_name'] %></title>
|
|
||||||
<%= content_for :canonical %>
|
<%= content_for :canonical %>
|
||||||
<%= stylesheet_link_tag "application" %>
|
|
||||||
<!--[if lt IE 9]>
|
<!--[if lt IE 9]>
|
||||||
<%= stylesheet_link_tag "ie" %>
|
<%= stylesheet_link_tag "ie" %>
|
||||||
<![endif]-->
|
<![endif]-->
|
||||||
<%= javascript_include_tag "application", 'data-turbolinks-track' => true %>
|
|
||||||
<%= csrf_meta_tags %>
|
|
||||||
<%= favicon_link_tag "favicon.ico" %>
|
|
||||||
<%= favicon_link_tag image_path_for("apple-touch-icon-200.png"),
|
<%= favicon_link_tag image_path_for("apple-touch-icon-200.png"),
|
||||||
rel: "icon apple-touch-icon",
|
rel: "icon apple-touch-icon",
|
||||||
sizes: "200x200",
|
sizes: "200x200",
|
||||||
|
|||||||
@@ -1,15 +1,8 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="es">
|
<html lang="es">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<%= render "layouts/common_head", default_title: "Gobierno abierto" %>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
||||||
<title><%= content_for?(:title) ? yield(:title) : "Gobierno abierto" %></title>
|
|
||||||
<%= render "layouts/meta_tags" %>
|
<%= render "layouts/meta_tags" %>
|
||||||
<%= stylesheet_link_tag "application" %>
|
|
||||||
<%= javascript_include_tag "application", 'data-turbolinks-track' => true %>
|
|
||||||
<%= csrf_meta_tags %>
|
|
||||||
<%= favicon_link_tag "favicon.ico" %>
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body class="auth-page">
|
<body class="auth-page">
|
||||||
|
|||||||
@@ -2,16 +2,9 @@
|
|||||||
<html lang="es">
|
<html lang="es">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<%= render "layouts/common_head", default_title: "Management" %>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
||||||
<title><%= content_for?(:title) ? yield(:title) : "Management" %></title>
|
|
||||||
<%= stylesheet_link_tag "application", media: "all" %>
|
|
||||||
<%= stylesheet_link_tag "print", media: "print" %>
|
<%= stylesheet_link_tag "print", media: "print" %>
|
||||||
<%= javascript_include_tag "application", 'data-turbolinks-track' => true %>
|
|
||||||
<%= content_for :head %>
|
<%= content_for :head %>
|
||||||
<%= csrf_meta_tags %>
|
|
||||||
<%= favicon_link_tag "favicon.ico" %>
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body class="admin">
|
<body class="admin">
|
||||||
|
|||||||
Reference in New Issue
Block a user