Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

ERB->Slim(layout:minimal)

  • Loading branch information...
commit c3a302c8e5226dfc6f3b5188e0fd0421ca85f180 1 parent 35a5296
Hiroshi Shimoju authored
20 app/views/layouts/minimal.html.erb
View
@@ -1,20 +0,0 @@
-<!DOCTYPE html>
-<html id="<%= controller.controller_name %>">
-<head>
- <title><%= @title ? "Zoomix / #{@title}" : 'Zoomix' %></title>
- <%= stylesheet_link_tag "application", :media => "all" %>
- <%= javascript_include_tag "application" %>
- <%= csrf_meta_tags %>
-</head>
-<body>
-
-<%= yield %>
-
-<% if notice %>
- <p id="notice"><%= notice %></p>
-<% end %>
-<% if alert %>
- <p id="alert"><%= alert %></p>
-<% end %>
-</body>
-</html>
29 app/views/layouts/minimal.html.slim
View
@@ -0,0 +1,29 @@
+doctype html
+html
+ head
+ meta charset="utf-8"
+ meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1"
+ meta name="viewport" content="width=device-width, initial-scale=1.0"
+ title= @title ? "Zoomix / #{@title}" : 'Zoomix'
+ meta name="description" content="Zoomix : Always by your side."
+ = csrf_meta_tags
+
+ / Le HTML5 shim, for IE6-8 support of HTML elements
+ /[if lt IE 9]
+ = javascript_include_tag "//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.6.1/html5shiv.js"
+ = stylesheet_link_tag "application", :media => "all"
+
+ body class=controller.controller_name
+ = yield
+
+ - if notice
+ p#notice= notice
+ - if alert
+ p#alert= alert
+
+ /!
+ Javascripts
+ \==================================================
+ / Placed at the end of the document so the pages load faster
+ = javascript_include_tag "application"
+ = content_for :after_javascripts
Please sign in to comment.
Something went wrong with that request. Please try again.