From 6c62f1842936aaef3d2498f887d90f2d25899ebf Mon Sep 17 00:00:00 2001 From: David O'Regan Date: Mon, 8 Feb 2021 00:11:51 +0000 Subject: feat(header): update header component --- layouts/cta.html | 2 +- layouts/cta_omnibus.html | 4 +- layouts/default.html | 2 +- layouts/header.html | 96 ++++++++++++++++++------------------- layouts/partials/versions_list.html | 8 +--- layouts/versions_dropdown.html | 47 ------------------ 6 files changed, 52 insertions(+), 107 deletions(-) delete mode 100644 layouts/versions_dropdown.html (limited to 'layouts') diff --git a/layouts/cta.html b/layouts/cta.html index b9cce835..54664e64 100644 --- a/layouts/cta.html +++ b/layouts/cta.html @@ -1,3 +1,3 @@ - + Get free trial diff --git a/layouts/cta_omnibus.html b/layouts/cta_omnibus.html index 2ff33d99..23a00fcd 100644 --- a/layouts/cta_omnibus.html +++ b/layouts/cta_omnibus.html @@ -1,3 +1,3 @@ - + Get free trial - + \ No newline at end of file diff --git a/layouts/default.html b/layouts/default.html index c636e864..69ff0243 100644 --- a/layouts/default.html +++ b/layouts/default.html @@ -34,7 +34,7 @@
-
+
| <%= render '/breadcrumbs.*' %>
diff --git a/layouts/header.html b/layouts/header.html index 5182fe98..0f5ea1fe 100644 --- a/layouts/header.html +++ b/layouts/header.html @@ -1,57 +1,53 @@ -
-
- - -

GitLab Docs

-
- <% if @item[:searchbar].nil? %> - <% unless @item.identifier.to_s.split('/')[1] == 'search' %> -
- - -
- <% end %> - <% end %> -
- -
+ diff --git a/layouts/partials/versions_list.html b/layouts/partials/versions_list.html index 549f1d13..d35023e7 100644 --- a/layouts/partials/versions_list.html +++ b/layouts/partials/versions_list.html @@ -6,15 +6,11 @@ contains all current versions and offline archives. --> <% if archives? %> -
  • - + <%= version %> -
  • <% else %> -
  • - href='/<%= version %><%= @item.identifier.without_ext + '.html' %>'> + href='/<%= version %><%= @item.identifier.without_ext + '.html' %>'> <%= version %> -
  • <% end %> diff --git a/layouts/versions_dropdown.html b/layouts/versions_dropdown.html deleted file mode 100644 index 74fac920..00000000 --- a/layouts/versions_dropdown.html +++ /dev/null @@ -1,47 +0,0 @@ - -
    Version
    - - - -- cgit v1.2.3