mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-08 22:56:06 +00:00
Merge pull request #10320 from dacook/remove-ie-warning
Remove unnecessary IE warning
This commit is contained in:
@@ -1,5 +0,0 @@
|
||||
$( document ).ready(function() {
|
||||
$("#closeie").click(function() {
|
||||
$("#ie-warning").hide();
|
||||
});
|
||||
})
|
||||
@@ -36,10 +36,6 @@
|
||||
= action_cable_meta_tag
|
||||
|
||||
%body{ class: body_classes, "body-scroll": "true", "data-turbo": "false" }
|
||||
/ [if lte IE 8]
|
||||
= render partial: "shared/ie_warning"
|
||||
= javascript_include_tag "iehack"
|
||||
|
||||
.off-canvas-wrap{ offcanvas: true }
|
||||
.fixed.off-canvas-fixed
|
||||
= render "shared/menu/menu" unless @hide_menu
|
||||
|
||||
@@ -19,10 +19,6 @@
|
||||
= csrf_meta_tags
|
||||
|
||||
%body.off-canvas{ style: "background-image: url(#{image_pack_path('tile-wide.png')})", "data-turbo": "false" }
|
||||
/ [if lte IE 8]
|
||||
= render partial: "shared/ie_warning"
|
||||
= javascript_include_tag "iehack"
|
||||
|
||||
.off-canvas-wrap{offcanvas: true}
|
||||
.inner-wrap
|
||||
|
||||
|
||||
@@ -1,31 +0,0 @@
|
||||
.alert-box.alert#ie-warning{"data-alert" => ""}
|
||||
.row.ie-msg
|
||||
.small-4.large-2.columns
|
||||
%i.ofn-i_012-warning
|
||||
.small-8.large-10.columns
|
||||
%h3
|
||||
= t :ie_warning_headline
|
||||
%p
|
||||
= t :ie_warning_text
|
||||
.row
|
||||
.small-4.columns.browserbtn
|
||||
%a.browserlogo{href: "https://www.google.com/intl/en_au/chrome/browser/", target: "_blank"}
|
||||
%img{src: image_pack_path("browser-logos/chrome.png") }
|
||||
%a{href: "https://www.google.com/intl/en_au/chrome/browser/", target: "_blank"}
|
||||
= t :ie_warning_chrome
|
||||
.small-4.columns.browserbtn
|
||||
%a.browserlogo{href: "http://www.mozilla.org/en-US/firefox/new/", target: "_blank"}
|
||||
%img{src: image_pack_path("browser-logos/firefox.png") }
|
||||
%a{href: "http://www.mozilla.org/en-US/firefox/new/", target: "_blank"}
|
||||
= t :ie_warning_firefox
|
||||
.small-4.columns.browserbtn
|
||||
%a.browserlogo{href: "http://windows.microsoft.com/en-AU/internet-explorer/download-ie", target: "_blank"}
|
||||
%img{src: image_pack_path("browser-logos/internet-explorer.png") }
|
||||
%a{href: "http://windows.microsoft.com/en-AU/internet-explorer/download-ie", target: "_blank"}
|
||||
= t :ie_warning_ie
|
||||
.row.ie-msg
|
||||
.small-12.large-12.columns
|
||||
.text-center
|
||||
%em
|
||||
= t :ie_warning_other
|
||||
%a#closeie.close{href: "#"} ×
|
||||
@@ -39,7 +39,6 @@
|
||||
@import 'home_tagline';
|
||||
@import 'hub_node';
|
||||
@import 'hubs';
|
||||
@import 'ie_warning';
|
||||
@import 'images';
|
||||
@import 'lists';
|
||||
@import 'loading';
|
||||
|
||||
@@ -1,40 +0,0 @@
|
||||
#ie-warning {
|
||||
margin-bottom: 0;
|
||||
padding-bottom: 2rem;
|
||||
|
||||
.ie-msg {
|
||||
background: rgba(255, 255, 255, 0.15);
|
||||
padding: 0.5rem;
|
||||
margin-bottom: 1rem;
|
||||
margin-top: 1rem;
|
||||
}
|
||||
|
||||
.browserbtn {
|
||||
text-align: center;
|
||||
margin-bottom: 1rem;
|
||||
|
||||
a {
|
||||
color: white;
|
||||
font-size: 1rem;
|
||||
filter: alpha(opacity = 70);
|
||||
opacity: 0.7;
|
||||
|
||||
&:hover, &:active, &:focus {
|
||||
filter: alpha(opacity = 100);
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
a.browserlogo {
|
||||
display: block;
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
i {
|
||||
font-size: 5rem;
|
||||
color: white;
|
||||
text-align: center;
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 9.1 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 16 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 11 KiB |
@@ -215,7 +215,6 @@ module Openfoodnetwork
|
||||
# Instead, they must be explicitly included below
|
||||
# http://stackoverflow.com/questions/8012434/what-is-the-purpose-of-config-assets-precompile
|
||||
config.assets.initialize_on_precompile = true
|
||||
config.assets.precompile += ['iehack.js']
|
||||
config.assets.precompile += ['admin/*.js', 'admin/**/*.js']
|
||||
config.assets.precompile += ['web/all.js']
|
||||
config.assets.precompile += ['darkswarm/all.js']
|
||||
|
||||
@@ -1824,12 +1824,6 @@ en:
|
||||
card_could_not_be_removed: Sorry, the card could not be removed
|
||||
invalid_credit_card: "Invalid credit card"
|
||||
|
||||
ie_warning_headline: "Your browser is out of date :-("
|
||||
ie_warning_text: "For the best Open Food Network experience, we strongly recommend upgrading your browser:"
|
||||
ie_warning_chrome: Download Chrome
|
||||
ie_warning_firefox: Download Firefox
|
||||
ie_warning_ie: Upgrade Internet Explorer
|
||||
ie_warning_other: "Can't upgrade your browser? Try Open Food Network on your smartphone :-)"
|
||||
legal:
|
||||
cookies_policy:
|
||||
header: "How We Use Cookies"
|
||||
|
||||
Reference in New Issue
Block a user