lalala 4.1.0.dev.389 → 4.1.0.dev.390
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/generators/lalala/install/templates/application.html.erb +1 -1
- data/lib/generators/lalala/install/templates/helpers/application_helper.rb +0 -13
- data/lib/generators/lalala/install/templates/helpers/html_helper.rb +42 -0
- data/lib/lalala/version.rb +1 -1
- metadata +2 -3
- data/lib/generators/lalala/install/templates/application.html.erb.orig +0 -64
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dfdb52b5dc9c54660630ef7bdd70e511bbecb2de
|
4
|
+
data.tar.gz: 747f630687e09134e7ecdf357b97a24a029839fe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b5b418eb403c559caf3a0988db3dae010f50b6c50d79567713c53edbcaff41e6aaf0ae4b6e4d3d07f196ee3ae859dcc02fb877bd124ed484f2dca4c8b9e08a90
|
7
|
+
data.tar.gz: 178d30c7bc1619a47e227c07b5339d87d83231f9fbdb6d1087a0acf51a248c0440f8c90122ecbbee0a8acb2f56b41dd9eaeda24e6aec5d8e99b631d118540059
|
@@ -19,7 +19,7 @@
|
|
19
19
|
<meta name="publisher" content="Mr. Henry" />
|
20
20
|
<meta name="copyright" content="" />
|
21
21
|
|
22
|
-
|
22
|
+
<%= favicons %>
|
23
23
|
<link rel="canonical" href="<%= canonical_url(request.original_fullpath) %>" />
|
24
24
|
|
25
25
|
<meta property="og:url" content="<%= canonical_url(request.original_fullpath) %>" />
|
@@ -1,16 +1,3 @@
|
|
1
1
|
module ApplicationHelper
|
2
2
|
|
3
|
-
# When on .mrhenry.eu domain, we don't want a search crawler to index
|
4
|
-
#
|
5
|
-
# @return {String}
|
6
|
-
def meta_name_robots
|
7
|
-
if request.host.match /.*\.a\.mrhenry\.eu.*/
|
8
|
-
tag("meta", name: "robots", content: "noindex, nofollow")
|
9
|
-
|
10
|
-
else
|
11
|
-
tag("meta", name: "robots", content: "index, follow")
|
12
|
-
|
13
|
-
end
|
14
|
-
end
|
15
|
-
|
16
3
|
end
|
@@ -39,6 +39,34 @@ module HtmlHelper
|
|
39
39
|
end
|
40
40
|
|
41
41
|
|
42
|
+
# Returns HTML for all favicons links
|
43
|
+
# Generate icons & code: http://iconogen.com/
|
44
|
+
#
|
45
|
+
# @return {String}
|
46
|
+
def favicons
|
47
|
+
raw <<-HEREDOC
|
48
|
+
<link rel="shortcut icon" href="/assets/favicon.ico" type="image/x-icon" />
|
49
|
+
<link rel="apple-touch-icon" sizes="57x57" href="/assets/apple-touch-icon-57x57.png">
|
50
|
+
<link rel="apple-touch-icon" sizes="60x60" href="/assets/apple-touch-icon-60x60.png">
|
51
|
+
<link rel="apple-touch-icon" sizes="72x72" href="/assets/apple-touch-icon-72x72.png">
|
52
|
+
<link rel="apple-touch-icon" sizes="76x76" href="/assets/apple-touch-icon-76x76.png">
|
53
|
+
<link rel="apple-touch-icon" sizes="114x114" href="/assets/apple-touch-icon-114x114.png">
|
54
|
+
<link rel="apple-touch-icon" sizes="120x120" href="/assets/apple-touch-icon-120x120.png">
|
55
|
+
<link rel="apple-touch-icon" sizes="144x144" href="/assets/apple-touch-icon-144x144.png">
|
56
|
+
<link rel="apple-touch-icon" sizes="152x152" href="/assets/apple-touch-icon-152x152.png">
|
57
|
+
<link rel="apple-touch-icon" sizes="180x180" href="/assets/apple-touch-icon-180x180.png">
|
58
|
+
<link rel="icon" type="image/png" href="/assets/favicon-16x16.png" sizes="16x16">
|
59
|
+
<link rel="icon" type="image/png" href="/assets/favicon-32x32.png" sizes="32x32">
|
60
|
+
<link rel="icon" type="image/png" href="/assets/favicon-96x96.png" sizes="96x96">
|
61
|
+
<link rel="icon" type="image/png" href="/assets/android-chrome-192x192.png" sizes="192x192">
|
62
|
+
<meta name="msapplication-square70x70logo" content="/assets/smalltile.png" />
|
63
|
+
<meta name="msapplication-square150x150logo" content="/assets/mediumtile.png" />
|
64
|
+
<meta name="msapplication-wide310x150logo" content="/assets/widetile.png" />
|
65
|
+
<meta name="msapplication-square310x310logo" content="/assets/largetile.png" />
|
66
|
+
HEREDOC
|
67
|
+
end
|
68
|
+
|
69
|
+
|
42
70
|
# Includes inline SVG
|
43
71
|
#
|
44
72
|
# @param {String} path
|
@@ -51,6 +79,20 @@ module HtmlHelper
|
|
51
79
|
end
|
52
80
|
|
53
81
|
|
82
|
+
# When on .mrhenry.eu domain, we don't want a search crawler to index
|
83
|
+
#
|
84
|
+
# @return {String}
|
85
|
+
def meta_name_robots
|
86
|
+
if request.host.match /.*\.a\.mrhenry\.eu.*/
|
87
|
+
tag("meta", name: "robots", content: "noindex, nofollow")
|
88
|
+
|
89
|
+
else
|
90
|
+
tag("meta", name: "robots", content: "index, follow")
|
91
|
+
|
92
|
+
end
|
93
|
+
end
|
94
|
+
|
95
|
+
|
54
96
|
# Render partial
|
55
97
|
#
|
56
98
|
def render_partial(partial_name, locals={}, &block)
|
data/lib/lalala/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lalala
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.1.0.dev.
|
4
|
+
version: 4.1.0.dev.390
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Simon Menke
|
@@ -13,7 +13,7 @@ authors:
|
|
13
13
|
autorequire:
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
|
-
date: 2015-
|
16
|
+
date: 2015-04-01 00:00:00.000000000 Z
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|
19
19
|
name: activeadmin
|
@@ -1410,7 +1410,6 @@ files:
|
|
1410
1410
|
- lib/generators/lalala/install/templates/admin_pages.rb
|
1411
1411
|
- lib/generators/lalala/install/templates/admin_users.rb
|
1412
1412
|
- lib/generators/lalala/install/templates/application.html.erb
|
1413
|
-
- lib/generators/lalala/install/templates/application.html.erb.orig
|
1414
1413
|
- lib/generators/lalala/install/templates/application_mailer.html.erb
|
1415
1414
|
- lib/generators/lalala/install/templates/dashboard.rb
|
1416
1415
|
- lib/generators/lalala/install/templates/devise.rb.erb
|
@@ -1,64 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
|
3
|
-
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
|
4
|
-
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
|
5
|
-
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
|
6
|
-
<head>
|
7
|
-
<meta charset="utf-8">
|
8
|
-
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
9
|
-
|
10
|
-
<title><%= og_title %></title>
|
11
|
-
|
12
|
-
<meta name="viewport" content="width=device-width, initial-scale=1, minimal-ui" />
|
13
|
-
|
14
|
-
<meta name="description" content="<%= og_description %>" />
|
15
|
-
<meta name="distribution" content="global" />
|
16
|
-
<%= meta_name_robots %>
|
17
|
-
<meta name="revisit-after" content="31 days" />
|
18
|
-
<meta name="author" content="" />
|
19
|
-
<meta name="publisher" content="Mr. Henry" />
|
20
|
-
<meta name="copyright" content="" />
|
21
|
-
|
22
|
-
<link rel="shortcut icon" href="/assets/favicon.ico"/>
|
23
|
-
<link rel="canonical" href="<%= canonical_url(request.original_fullpath) %>" />
|
24
|
-
|
25
|
-
<meta property="og:url" content="<%= canonical_url(request.original_fullpath) %>" />
|
26
|
-
<meta property="og:title" content="<%= og_title %>" />
|
27
|
-
<meta property="og:site_name" content="<%= site_name %>">
|
28
|
-
<meta property="og:description" content="<%= og_description %>" />
|
29
|
-
<%= meta_property_og_image %>
|
30
|
-
<meta property="og:image" content="<%= og_image_default_url %>" />
|
31
|
-
|
32
|
-
<%= javascript_include_tag "modernizr" %>
|
33
|
-
<%= stylesheet_link_tag "application", media: "all" %>
|
34
|
-
|
35
|
-
<%= csrf_meta_tags %>
|
36
|
-
</head>
|
37
|
-
<body class="<%= body_class %>">
|
38
|
-
|
39
|
-
<!--[if lt IE 9]>
|
40
|
-
<p class="chromeframe" style="background-color: rgb(255,65,45); color: white; font-size: 12px; margin: 0; padding: 7px; text-align: center;">
|
41
|
-
You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/" style="color: black;">upgrade your browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true" style="color: black;">activate Google Chrome Frame</a> to improve your experience.</p>
|
42
|
-
<![endif]-->
|
43
|
-
|
44
|
-
<%= yield %>
|
45
|
-
|
46
|
-
<script type="text/javascript">
|
47
|
-
// Bridge between I18n YAML & JS
|
48
|
-
window.translations = { };
|
49
|
-
</script>
|
50
|
-
|
51
|
-
<%= javascript_include_tag "application" %>
|
52
|
-
|
53
|
-
<script type="text/javascript">
|
54
|
-
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
55
|
-
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
56
|
-
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
57
|
-
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
|
58
|
-
|
59
|
-
ga('create', 'UA-XXXXXX-XX', 'auto');
|
60
|
-
ga('require', 'displayfeatures');
|
61
|
-
ga('send', 'pageview');
|
62
|
-
</script>
|
63
|
-
</body>
|
64
|
-
</html>
|