app/views/layouts/help_center.html.erb in help_center-0.0.9 vs app/views/layouts/help_center.html.erb in help_center-0.1.0
- old
+ new
@@ -1,40 +1,26 @@
- <!DOCTYPE html>
- <html class="h-full antialiased">
- <head>
- <style>
- [data-toggle-open-value="false"] .fa-sort-down {
- -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";
- -webkit-transform: rotate(270deg);
- transform: rotate(270deg);
- }
- </style>
- <link href="https://unpkg.com/tailwindcss@^2/dist/tailwind.min.css" rel="stylesheet">
- <script defer src="https://use.fontawesome.com/releases/v5.15.4/js/all.js" crossorigin="anonymous"></script>
- <script defer src="https://cdnjs.cloudflare.com/ajax/libs/trix/1.3.1/trix.js" crossorigin="anonymous"></script>
- <link href="https://cdnjs.cloudflare.com/ajax/libs/trix/1.3.1/trix.css" rel="stylesheet">
- </head>
-
-<body class="flex h-full overflow-x-hidden font-sans font-normal leading-normal bg-offwhite">
+
+ <style>
+ [data-toggle-open-value="false"] .fa-sort-down {
+ -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";
+ -webkit-transform: rotate(270deg);
+ transform: rotate(270deg);
+ }
+ </style>
+ <link href="https://unpkg.com/tailwindcss@^2/dist/tailwind.min.css" rel="stylesheet">
+ <script defer src="https://use.fontawesome.com/releases/v5.15.4/js/all.js" crossorigin="anonymous"></script>
+
<div class="flex flex-wrap flex-grow items-start justify-between main">
- <% if current_user && (current_user.admin? || current_user.moderator?) %>
- <div class="top-0 flex justify-between w-full z-50 bg-blue-600 text-purple-200 text-sm text-center font-brand-semibold px-4 py-3" role="alert">
- <span class="text-base font-normal text-white">Welcome moderators (<%= current_user.email %>)</span>
- <div>
- <%= link_to t('add_an_article'), help_center.new_support_thread_path, class: "text-gray-100 hover:text-gray-300 hover:no-underline font-semibold underline mr-4 ml-6" %>
- <%= link_to t('add_category'), help_center.new_support_category_path, class: "text-gray-100 hover:text-gray-300 hover:no-underline font-semibold underline" %>
- </div>
- </div>
-<% end %>
+ <%= render partial: "shared/admin_actions" %>
<div class="flex flex-col w-full px-4 pt-4 md:w-1/5 lg:px-8">
<div class="text-lg mb-4">
<%= link_to help_center_path do %>
- <%= render_svg "logo" %>
+ <h3 class="font-bold">Docs</h3>
<% end %>
</div>
<div>
- <%= render partial: "shared/sidebar" %>
+ <%= render partial: "shared/sidebar_actions" %>
</div>
</div>
<div class="flex flex-col w-full h-full bg-white border-l border-gray-300 md:w-4/5 docs-main">
<% if current_page?(help_center_path) %>
<% if SupportCategory.all.count > 0 %>
@@ -63,12 +49,10 @@
<% end %>
</div>
</div>
- <link rel="stylesheet"
- href="//unpkg.com/@highlightjs/cdn-assets@11.3.1/styles/default.min.css">
+ <link rel="stylesheet" href="//unpkg.com/@highlightjs/cdn-assets@11.3.1/styles/default.min.css">
<script src="//unpkg.com/@highlightjs/cdn-assets@11.3.1/highlight.min.js"></script>
<script>hljs.highlightAll();</script>
-</body>
-<html>
-
+
+ <% parent_layout("application") %>
\ No newline at end of file