bookends 4.1.1 → 4.2.0beta1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 230e2bda8214b3cdf47ef5a4cab66f43dc8dfb07
|
4
|
+
data.tar.gz: 806778f33d6e770c715b939825985dba4c30bdd6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 477015d269f48d3cd19e924c0f0a7e52cf30f7f0f76284a78f143d021f195c3d5b1bf13eb8548a1d5ce65eb05c1bddc0729f6024a162f6264fe27d56ba76e5ac
|
7
|
+
data.tar.gz: 5e55d8bf8e201328d7693e75d720709eb3d731bf951b99dee9b90cf216d09ec66c671fe209ebeb26c8fb1ab6ff985177dd0c455efd40ed8addf9643fc8e1fe7e
|
@@ -25,7 +25,12 @@ Heroku.SearchResultsRenderer = Heroku.SearchResultsRenderer || function () {
|
|
25
25
|
}, {
|
26
26
|
key: 'renderResult',
|
27
27
|
value: function renderResult(hit) {
|
28
|
-
|
28
|
+
result = '<li class="search-result"><h4 class="search-result-title"><a href="' + hit.url + '">' + hit.title + '</a></h4><p class="search-result-slug"><a href="' + hit.url + '">' + hit.url + '</a></p>'
|
29
|
+
if (hit.anchor) {
|
30
|
+
result += '<p class="search-result-desc">Jump to: <a href="' + hit.url + '#' + hit.anchor + '">' + hit.subtitle + '</a><br>'
|
31
|
+
}
|
32
|
+
result += hit.description + '</p></li>';
|
33
|
+
return result
|
29
34
|
}
|
30
35
|
}, {
|
31
36
|
key: 'renderPagination',
|
@@ -8,14 +8,16 @@
|
|
8
8
|
<%= hidden_field_tag :search_api_key, ENV['ALGOLIA_SEARCH_API_KEY'], id: 'search-api-key' %>
|
9
9
|
<%= hidden_field_tag :search_base_index, ENV['ALGOLIA_BASE_INDEX'], id: 'search-base-index' %>
|
10
10
|
|
11
|
-
|
12
|
-
<
|
13
|
-
<
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
11
|
+
<% if ENV['SEARCH_BASE_INDEX_ONLY'].nil? || ENV['SEARCH_BASE_INDEX_ONLY'].to_s == 'false' %>
|
12
|
+
<nav class="js-index-selector-container search-tabs">
|
13
|
+
<ul>
|
14
|
+
<li><a href="#" class="js-index-selector search-tab" data-index="www_page_idx">WWW</a></li>
|
15
|
+
<li><a href="#" class="js-index-selector search-tab" data-index="dev_center_article_idx">Dev Center</a></li>
|
16
|
+
<li><a href="#" class="js-index-selector search-tab" data-index="elements_resource_idx">Elements</a></li>
|
17
|
+
<li><a href="#" class="js-index-selector search-tab" data-index="blog_post_idx">Blog</a></li>
|
18
|
+
</ul>
|
19
|
+
</nav>
|
20
|
+
<% end %>
|
19
21
|
|
20
22
|
<section class="js-search-results">
|
21
23
|
<ul class="js-search-results-list search-results-list">
|
data/lib/bookends/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bookends
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.2.0beta1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marketing Web Ops at heroku
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-09-
|
11
|
+
date: 2017-09-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -362,9 +362,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
362
362
|
version: '0'
|
363
363
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
364
364
|
requirements:
|
365
|
-
- - '
|
365
|
+
- - '>'
|
366
366
|
- !ruby/object:Gem::Version
|
367
|
-
version:
|
367
|
+
version: 1.3.1
|
368
368
|
requirements: []
|
369
369
|
rubyforge_project:
|
370
370
|
rubygems_version: 2.0.14
|