Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Defreyne <denis.defreyne@stoneship.org>2017-04-01 11:50:15 +0300
committerDenis Defreyne <denis.defreyne@stoneship.org>2017-04-01 11:50:17 +0300
commit506fe3a32b56aee946bf58108d1f49bbfc4c68c6 (patch)
treeec8b206d8c72c48942e906ce0b2e820abb83c667 /layouts/head.html
parent9dd5d4a7017ae2e430d5bb5c18b30a418bc3c8da (diff)
Avoid @item.attributes
@item.key?(x) creates a dependency on just the 'x' attribute, while @item.attributes creates a dependency on all attributes. The former makes incremental compilation a tad faster.
Diffstat (limited to 'layouts/head.html')
-rw-r--r--layouts/head.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/head.html b/layouts/head.html
index f17e7bda..dda1c297 100644
--- a/layouts/head.html
+++ b/layouts/head.html
@@ -1,6 +1,6 @@
<head>
<meta charset="utf-8">
- <title><%= @item.attributes.include?(:title) ? "#{item[:title]} - GitLab Documentation" : "GitLab Documentation" %></title>
+ <title><%= @item.key?(:title) ? "#{item[:title]} - GitLab Documentation" : "GitLab Documentation" %></title>
<meta name="description" content="Documentation for GitLab Community Edition, GitLab Enterprise Edition, Omnibus GitLab, and GitLab Runner.">
<link rel="stylesheet" href="<%= @items['/assets/stylesheets/stylesheet.*'].path %>">
<link rel="stylesheet" href="<%= @items['/assets/stylesheets/highlight.*'].path %>">