Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: includes/layout/header.tmpl

Issue 29485575: Issue 5385 - Create Site Header Component for Help Center (Closed)
Patch Set: Fix svgs, Implement search, Show searchbar for no-js Created July 17, 2017, 9:24 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | includes/searchform.tmpl » ('j') | includes/searchform.tmpl » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: includes/layout/header.tmpl
===================================================================
new file mode 100644
--- /dev/null
+++ b/includes/layout/header.tmpl
@@ -0,0 +1,16 @@
+<header id="site-header" class="navbar">
+ <div class="navbar-wrapper clearfix">
juliandoucette 2017/07/19 18:03:33 I don't think we need clearfix here? --- (Unless
ire 2017/07/21 10:23:26 You're right it's not needed. I must have added it
+ <h1 class="site-title">
+ {{ "index" | linkify() }}
+ <img src="/img/png/eyeo-help.png" srcset="/img/png/eyeo-help.png, /img/svg/eyeo-help.svg 2x" alt="{{ "eyeo Help" | translate("site-title", "Image alt text") }}">
juliandoucette 2017/07/19 18:03:33 I don't think we need the first /img/png/eyeo-help
ire 2017/07/21 10:23:25 Done.
+ </a>
+ </h1>
+ <button id="toggle-searchform" class="unstyled tablet-and-mobile-only">
juliandoucette 2017/07/19 18:03:32 I think this control is misleading. This button to
+ <img src="/img/png/searchIcon.png" srcset="/img/png/searchIcon.png, /img/svg/searchIcon.svg 2x" alt="{{ "Toggle Search Bar" | translate("search-toggle-alt", "Image alt text") }}">
juliandoucette 2017/07/19 18:03:32 NIT: Please use dashes in image names.
juliandoucette 2017/07/19 18:03:33 1x image is poor quality on low DPI screens. I thi
ire 2017/07/21 10:23:25 Done.
+ </button>
+ <div id="site-search">
+ <? include searchform ?>
+ <a id="product-website-link" href="https://adblockplus.org/">{{ "Adblock Plus" | translate("abp-product-link", "Link") }}</a>
juliandoucette 2017/07/19 18:03:32 NIT: I think this should have a `nav` around it; t
juliandoucette 2017/07/19 18:03:33 Missing icon.
ire 2017/07/21 10:23:25 Done.
+ </div>
+ </div>
+</header>
« no previous file with comments | « no previous file | includes/searchform.tmpl » ('j') | includes/searchform.tmpl » ('J')

Powered by Google App Engine
This is Rietveld