Skip to content

Commit

Permalink
Refactor #972: Use Haml style for label instead of raw HTML
Browse files Browse the repository at this point in the history
  • Loading branch information
yasulab committed Oct 25, 2020
1 parent 64112fb commit 370d0ca
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions app/views/shared/_header.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,14 @@
%li= link_to '立ち上げる', '/kata#startup'
%li= link_to '支援', '/kata#support'
%li= link_to 'FAQ', '/kata#faq'

/ DocSearch: https://github.com/algolia/docsearch-configs/blob/master/configs/coderdojo.json
%li.search-li
<label for="search" class="search-label"><img src="/img/search.svg" alt="検索" class="search-icon" /></label>
%label.search-label{for: 'search'}
%img.search-icon{alt: '検索', src: '/img/search.svg'}
= check_box_tag :search, "検索アイコン", false, class: 'search-checkbox'
.search
%input#searchbox{ placeholder: "資料を検索", type: "text" }
%div.search
%input#searchbox{placeholder: "資料を検索", type: "text"}
#hits
#pagination
%li= link_to 'お問い合わせ', '/#contact'

0 comments on commit 370d0ca

Please sign in to comment.