app/views/layouts/scrapbook/application.html.erb in scrapbook-0.2.2 vs app/views/layouts/scrapbook/application.html.erb in scrapbook-0.3.0
- old
+ new
@@ -4,11 +4,16 @@
<title><%= local_assigns[:scrapbook]&.name || 'Scrapbook' %>: <%= content_for?(:title) ? yield(:title) : local_assigns[:pathname]&.basename %></title>
<%= csrf_meta_tags %>
<%= csp_meta_tag %>
<%= stylesheet_link_tag "scrapbook/application", media: "all", "data-turbo-track": "reload" %>
+ <%= javascript_include_tag "scrapbook/application" %>
+ <meta name="scrapbook-root" content="<%= root_path %>">
</head>
<body class="flex">
- <nav class="flex-none min-w-[20ch] max-w-[50%] h-screen overflow-scroll children:px-4 py-2 border-solid border-sky-700 border-0 border-r"><%= render 'layouts/scrapbook/folder_listing', scrapbook: local_assigns[:scrapbook], pathname: local_assigns[:pathname] %></nav>
+ <nav id="folder_listing" class="flex-none min-w-[20ch] max-w-[50%] h-screen overflow-scroll border-solid border-sky-700 border-0 border-r"><%= render 'layouts/scrapbook/folder_listing', scrapbook: local_assigns[:scrapbook], pathname: local_assigns[:pathname], nav_depth: 0 %></nav>
<main class="py-2 px-4 h-screen w-screen overflow-scroll"><%= yield %></main>
+ <script type="text/javascript">
+
+ </script>
</body>
</html>