helpdesk 0.0.31 → 0.0.32
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: f5774eee15a747870a6764b6f08d56985013fda3
|
4
|
+
data.tar.gz: fce9ece3fa9b77a167aca6a79f8a66abe5c533df
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f8625606b2a2317649091cd778c8441688f0a235b6f30665831f54cbb31c751aef6bdf74b30203e0f2f5e654279f9e017af5b9cc35496b048b32cb7639f651ee
|
7
|
+
data.tar.gz: e37ef007f4afcaeac5012ebacd09b97cf0a86416fd10536f380fa6d322cbb14045c7c28f4f49c41ddead7726a97b10b300966bb3022105d52ddee991b70692cb
|
data/app/models/helpdesk/faq.rb
CHANGED
@@ -23,7 +23,7 @@ module Helpdesk
|
|
23
23
|
arel_faqs_t = Arel::Table.new(:helpdesk_faq_translations)
|
24
24
|
name_match = arel_faqs_t[:title].matches(query)
|
25
25
|
postal_match = arel_faqs_t[:text].matches(query)
|
26
|
-
with_translations.active.where(name_match.or(postal_match)).page(page)
|
26
|
+
with_translations.active.where(name_match.or(postal_match)).page(page)
|
27
27
|
end
|
28
28
|
|
29
29
|
def anchor
|
@@ -7,7 +7,7 @@
|
|
7
7
|
%div.pageContainer
|
8
8
|
- if params[:search]
|
9
9
|
.alert.alert-info
|
10
|
-
= t('helpdesk.faqs.search_count', count: @faqs.
|
10
|
+
= t('helpdesk.faqs.search_count', count: @faqs.total_count, query:params[:search])
|
11
11
|
|
12
12
|
%h1
|
13
13
|
= t('helpdesk.faqs.title_s')
|
@@ -25,3 +25,4 @@
|
|
25
25
|
|
26
26
|
= highlight("..."+faq.text[start_index,params[:search].length+40].strip+"...", params[:search], highlighter: '<strong>\1</strong>')
|
27
27
|
|
28
|
+
=paginate @faqs
|
data/lib/helpdesk/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: helpdesk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.32
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Beynon Wacław Łuczak
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-11-
|
11
|
+
date: 2014-11-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: launchy
|