diff options
-rw-r--r-- | layouts/404.html | 13 | ||||
-rw-r--r-- | layouts/default.html | 13 | ||||
-rw-r--r-- | layouts/header.html | 12 |
3 files changed, 14 insertions, 24 deletions
diff --git a/layouts/404.html b/layouts/404.html index 16810cc3..63d8d6b7 100644 --- a/layouts/404.html +++ b/layouts/404.html @@ -2,18 +2,7 @@ <html lang="en"> <%= render '/head.*' %> <body> - <div class="header"> - <a href="/"> - <img src="<%= @items['/assets/images/gitlab-logo.svg'].path %>"/> - <p>GitLab Documentation</p> - </a> - <ul> - <li><input type="text" class="st-default-search-input" placeholder="Search"></li> - <li><a href="<%= @items['/ce/README.*'].path %>">Community Edition</a></li> - <li><a href="<%= @items['/ee/README.*'].path %>">Enterprise Edition</a></li> - <li><a href="<%= @items['/omnibus/README.*'].path %>">Omnibus</a></li> - </ul> - </div> + <%= render '/header.*' %> <div class="main class"> <%= yield %> </div> diff --git a/layouts/default.html b/layouts/default.html index b383bff2..3b2df68d 100644 --- a/layouts/default.html +++ b/layouts/default.html @@ -2,18 +2,7 @@ <html lang="en"> <%= render '/head.*' %> <body> - <div class="header"> - <a href="/"> - <img src="<%= @items['/assets/images/gitlab-logo.svg'].path %>"/> - <p>GitLab Documentation</p> - </a> - <ul> - <li><input type="text" class="st-default-search-input" placeholder="Search"></li> - <li><a href="<%= @items['/ce/README.*'].path %>">Community Edition</a></li> - <li><a href="<%= @items['/ee/README.*'].path %>">Enterprise Edition</a></li> - <li><a href="<%= @items['/omnibus/README.*'].path %>">Omnibus</a></li> - </ul> - </div> + <%= render '/header.*' %> <div class="main class"> <% if @config[:breadcrumbs] %> <ul class="breadcrumbs"> diff --git a/layouts/header.html b/layouts/header.html new file mode 100644 index 00000000..70c8b173 --- /dev/null +++ b/layouts/header.html @@ -0,0 +1,12 @@ +<div class="header"> + <a href="/"> + <img src="<%= @items['/assets/images/gitlab-logo.svg'].path %>"/> + <p>GitLab Documentation</p> + </a> + <ul> + <li><input type="text" class="st-default-search-input" placeholder="Search"></li> + <li><a href="<%= @items['/ce/README.*'].path %>">Community Edition</a></li> + <li><a href="<%= @items['/ee/README.*'].path %>">Enterprise Edition</a></li> + <li><a href="<%= @items['/omnibus/README.*'].path %>">Omnibus</a></li> + </ul> +</div> |