This repository has been archived on 2024-08-27. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
redstoner.com/app/views/layouts/application.html.erb
jomo 560f83ce88 use Subresource Integrity for externally hosted javascript
browsers will calculate the sha256 hash of the script and compare it to the value of the integrity attribute
if the values do not match, the browser will refuse to execute it.

note: the shasum is written in base64 encoding, not the (more common) hex format!
2015-12-03 23:12:04 +01:00

24 lines
1.1 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!DOCTYPE html>
<html>
<head>
<title><%= yield(:site_title).present? ? "#{yield(:site_title)} " : "" %>Redstoner</title>
<meta name="viewport" content="initial-scale=1,maximum-scale=1">
<meta name="description" content="Redstoner is a creative minecraft server made for redstoners">
<%= stylesheet_link_tag "application", :media => "all" %>
<%= csrf_meta_tags %>
<%= favicon_link_tag "favicon.ico" %>
<%= javascript_include_tag "https://cdn.rawgit.com/jomo/ago.js/master/ago.min.js", crossorigin: :anonymous, integrity: "sha256-xw0JUUdbuZQCVO+QScoxrlEsD4nZGCjMRh9PP8GLhcY=" %>
<%= javascript_include_tag "application" %>
<link type="application/atom+xml" rel="alternate" href="<%= blogposts_path(:atom) %>">
<%= yield(:site_headers) %>
</head>
<body>
<%= render partial: "/layouts/head" %>
<div id="main-content" class="<%= yield(:main_class) %>">
<%= "<div class='flash alert'>#{alert}</div>".html_safe if alert %>
<%= "<div class='flash notice'>#{notice}</div>".html_safe if notice %>
<%= yield %>
</div>
<%= render partial: "/layouts/footer" %>
</body>
</html>