app/views/layouts/madmin/application.html.erb in madmin-0.1.0 vs app/views/layouts/madmin/application.html.erb in madmin-0.1.1

- old
+ new

@@ -1,30 +1,29 @@ <!DOCTYPE html> -<html> -<head> - <title>Madmin</title> - <%= csrf_meta_tags %> - <%= csp_meta_tag %> - - <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous"> - - <%= stylesheet_link_tag "madmin/application", media: "all" %> -</head> -<body> - <div class="container-fluid"> - <div class="row"> - <%= render 'application/navigation' %> - <div class="col-10 ml-sm-auto mt-4"> - <div class="container"> - <%= yield %> - </div> +<html lang="<%= I18n.locale %>"> + <head> + <meta charset="utf-8"> + <meta name="ROBOTS" content="NOODP"> + <meta name="viewport" content="initial-scale=1"> + <title> + Madmin: <%= Rails.application.class %> + </title> + <link href="https://unpkg.com/tailwindcss@^2.0/dist/tailwind.min.css" rel="stylesheet" /> + <link href="https://unpkg.com/@tailwindcss/forms/dist/forms.min.css" rel="stylesheet" /> + <link href="https://unpkg.com/@tailwindcss/typography/dist/typography.min.css" rel="stylesheet" /> + <%= stylesheet_link_tag "application", "data-turbo-track": "reload" %> + <%= javascript_pack_tag "madmin", "data-turbo-track": "reload" %> + <%= csrf_meta_tags %> + </head> + <body class="prose" style="max-width:none"> + <div class="flex w-full p-4"> + <div id="sidebar" class="w-64 flex-shrink-0"> + <%= render "navigation" -%> </div> + <main class="w-full" role="main"> + <%#= render "flashes" -%> + <%= yield %> + </main> </div> - </div> - - <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script> - <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script> - <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script> - <script src="https://unpkg.com/axios/dist/axios.min.js"></script> - <%= javascript_include_tag "madmin/application" %> -</body> + <%#= render "javascript" %> + </body> </html>