woople-theme 0.2.28 → 0.2.29

Sign up to get free protection for your applications and to get access to all the features.
@@ -11,6 +11,7 @@
11
11
  *= require woople-theme/grid
12
12
  *= require woople-theme/buttons
13
13
  *= require woople-theme/content-item
14
+ *= require woople-theme/search-results
14
15
  *= require woople-theme/pagination
15
16
  *= require woople-theme/modal
16
17
  *= require woople-theme/legacy
@@ -0,0 +1,16 @@
1
+ @import "woople-theme/variables.css.less";
2
+ @import "woople-theme/colours.css.less";
3
+
4
+ h2.results-header {
5
+ .content-title();
6
+ background-color:@highlight;
7
+ color: #fff;
8
+ display: inline-block;
9
+ margin-right: 10px;
10
+ padding: 0.5em 20px;
11
+ text-shadow:0 1px 0 rgba(0,0,0,0.5);
12
+ }
13
+
14
+ .content-item + h2 {
15
+ margin-top: 40px;
16
+ }
@@ -43,4 +43,11 @@ module ThemeHelper
43
43
  model = ThemePresentation.wrap(send(WoopleTheme.configuration.menu_helper), MenuPresenter)
44
44
  render 'woople-theme/menu', menu: model
45
45
  end
46
+
47
+ def results_header(title, path = nil)
48
+ output = ""
49
+ output << content_tag(:h2, title, class: 'results-header')
50
+ output << content_tag(:a, I18n.t('woople_theme.search_results_more'), href: path) unless path.nil?
51
+ output.html_safe
52
+ end
46
53
  end
@@ -1,7 +1,7 @@
1
1
  <div class="profile">
2
- <form class="search">
2
+ <form class="search" action="/search">
3
3
  <a href="#" class='search-page'><i class="icon-search"></i></a>
4
- <input type="text" class="search-query" placeholder="<%=t 'woople_theme.profile.search' %>">
4
+ <input name="q" type="text" class="search-query" placeholder="<%=t 'woople_theme.profile.search' %>" value="<%= params[:q] %>">
5
5
  </form>
6
6
  <ul class="nav nav-pills profile-link">
7
7
  <li class="dropdown">
@@ -33,6 +33,7 @@ en:
33
33
  result_title: Result
34
34
  pass: Pass
35
35
  fail: Fail
36
+ search_results_more: See All >
36
37
  date:
37
38
  formats:
38
39
  default: ! '%b %d %Y'
@@ -1,3 +1,3 @@
1
1
  module WoopleTheme
2
- VERSION = "0.2.28"
2
+ VERSION = "0.2.29"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: woople-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.28
4
+ version: 0.2.29
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-05-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
- requirement: &70182673496440 !ruby/object:Gem::Requirement
16
+ requirement: &70185030717620 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 3.2.2
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70182673496440
24
+ version_requirements: *70185030717620
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: less-rails-bootstrap
27
- requirement: &70182673495920 !ruby/object:Gem::Requirement
27
+ requirement: &70185030716260 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - =
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 2.0.8
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70182673495920
35
+ version_requirements: *70185030716260
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: bundler
38
- requirement: &70182673483220 !ruby/object:Gem::Requirement
38
+ requirement: &70185030715640 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70182673483220
46
+ version_requirements: *70185030715640
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: sqlite3
49
- requirement: &70182673482700 !ruby/object:Gem::Requirement
49
+ requirement: &70185030714860 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70182673482700
57
+ version_requirements: *70185030714860
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: rspec-rails
60
- requirement: &70182673482100 !ruby/object:Gem::Requirement
60
+ requirement: &70185030713720 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ~>
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: 2.9.0
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *70182673482100
68
+ version_requirements: *70185030713720
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: capybara
71
- requirement: &70182673481600 !ruby/object:Gem::Requirement
71
+ requirement: &70185030713280 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,7 +76,7 @@ dependencies:
76
76
  version: '0'
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *70182673481600
79
+ version_requirements: *70185030713280
80
80
  description: All Front-End all the Time
81
81
  email:
82
82
  - developers@bigbangtechnology.com
@@ -131,6 +131,7 @@ files:
131
131
  - app/assets/stylesheets/woople-theme/pagination.css.less
132
132
  - app/assets/stylesheets/woople-theme/profile.css.less
133
133
  - app/assets/stylesheets/woople-theme/responsive.css.less
134
+ - app/assets/stylesheets/woople-theme/search-results.css.less
134
135
  - app/assets/stylesheets/woople-theme/theme-retina.css
135
136
  - app/assets/stylesheets/woople-theme/theme.css
136
137
  - app/assets/stylesheets/woople-theme/variables.css.less
@@ -198,7 +199,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
198
199
  version: '0'
199
200
  requirements: []
200
201
  rubyforge_project:
201
- rubygems_version: 1.8.15
202
+ rubygems_version: 1.8.10
202
203
  signing_key:
203
204
  specification_version: 3
204
205
  summary: Our Front-End CSS Framework/Theme