convert erb to haml
This commit is contained in:
parent
e41dadcb33
commit
a61ccd4ad2
|
@ -1,34 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Doorkeeper</title>
|
||||
<%= stylesheet_link_tag "doorkeeper/admin/application" %>
|
||||
<%= csrf_meta_tags %>
|
||||
</head>
|
||||
<body>
|
||||
<div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
|
||||
<div class="container">
|
||||
<div class="navbar-header">
|
||||
<%= link_to 'OAuth2 Provider', oauth_applications_path, class: 'navbar-brand' %>
|
||||
</div>
|
||||
<ul class="nav navbar-nav">
|
||||
<%= content_tag :li, class: "#{'active' if request.path == oauth_applications_path}" do %>
|
||||
<%= link_to 'Applications', oauth_applications_path %>
|
||||
<% end %>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="container">
|
||||
<%- if flash[:notice].present? %>
|
||||
<div class="alert alert-info">
|
||||
<%= flash[:notice] %>
|
||||
</div>
|
||||
<% end -%>
|
||||
|
||||
<%= yield %>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,22 @@
|
|||
!!!
|
||||
%html
|
||||
%head
|
||||
%meta{:charset => "utf-8"}
|
||||
%meta{:content => "IE=edge", "http-equiv" => "X-UA-Compatible"}
|
||||
%meta{:content => "width=device-width, initial-scale=1.0", :name => "viewport"}
|
||||
%title Doorkeeper
|
||||
= stylesheet_link_tag "doorkeeper/admin/application"
|
||||
= csrf_meta_tags
|
||||
%body
|
||||
.navbar.navbar-inverse.navbar-fixed-top{:role => "navigation"}
|
||||
.container
|
||||
.navbar-header
|
||||
= link_to 'OAuth2 Provider', oauth_applications_path, class: 'navbar-brand'
|
||||
%ul.nav.navbar-nav
|
||||
= content_tag :li, class: "#{'active' if request.path == oauth_applications_path}" do
|
||||
= link_to 'Applications', oauth_applications_path
|
||||
.container
|
||||
- if flash[:notice].present?
|
||||
.alert.alert-info
|
||||
= flash[:notice]
|
||||
= yield
|
|
@ -1,23 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>OAuth authorize required</title>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<%= stylesheet_link_tag "doorkeeper/application" %>
|
||||
<%= csrf_meta_tags %>
|
||||
</head>
|
||||
<body>
|
||||
<div id="container">
|
||||
<%- if flash[:notice].present? %>
|
||||
<div class="alert alert-info">
|
||||
<%= flash[:notice] %>
|
||||
</div>
|
||||
<% end -%>
|
||||
|
||||
<%= yield %>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,15 @@
|
|||
!!!
|
||||
%html
|
||||
%head
|
||||
%title OAuth authorize required
|
||||
%meta{:charset => "utf-8"}
|
||||
%meta{:content => "IE=edge", "http-equiv" => "X-UA-Compatible"}
|
||||
%meta{:content => "width=device-width, initial-scale=1.0", :name => "viewport"}
|
||||
= stylesheet_link_tag "doorkeeper/application"
|
||||
= csrf_meta_tags
|
||||
%body
|
||||
#container
|
||||
- if flash[:notice].present?
|
||||
.alert.alert-info
|
||||
= flash[:notice]
|
||||
= yield
|
Loading…
Reference in New Issue