woople-theme 0.2.46 → 0.2.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/app/assets/stylesheets/woople-theme/base.css.less +22 -2
- data/app/assets/stylesheets/woople-theme/menu.css.less +2 -3
- data/app/assets/stylesheets/woople-theme/profile.css.less +0 -8
- data/app/assets/stylesheets/woople-theme/variables.css.less +6 -0
- data/app/helpers/theme_helper.rb +13 -1
- data/app/views/layouts/theme.html.erb +2 -0
- data/app/views/woople-theme/_impersonation_banner.html.erb +8 -0
- data/config/locales/en.yml +2 -0
- data/lib/woople-theme/configuration.rb +5 -1
- data/lib/woople-theme/version.rb +1 -1
- metadata +18 -17
|
@@ -32,7 +32,6 @@ a:hover {
|
|
|
32
32
|
.masthead-logo {
|
|
33
33
|
width:140px;
|
|
34
34
|
}
|
|
35
|
-
|
|
36
35
|
}
|
|
37
36
|
|
|
38
37
|
.copyright {
|
|
@@ -84,7 +83,6 @@ a:hover {
|
|
|
84
83
|
margin-right:0;
|
|
85
84
|
margin-bottom:0;
|
|
86
85
|
width:50%;
|
|
87
|
-
top:0;
|
|
88
86
|
line-height:@logoWithPadding;
|
|
89
87
|
text-indent:@phoneMargin;
|
|
90
88
|
}
|
|
@@ -115,3 +113,25 @@ a.loading_indicator {
|
|
|
115
113
|
}
|
|
116
114
|
}
|
|
117
115
|
}
|
|
116
|
+
|
|
117
|
+
.impersonation-banner {
|
|
118
|
+
background: @contentBackground;
|
|
119
|
+
line-height: 24px;
|
|
120
|
+
padding: 4px 1em;
|
|
121
|
+
margin: 0 auto;
|
|
122
|
+
width: 80%;
|
|
123
|
+
text-align: center;
|
|
124
|
+
.box-shadow(@default-shadow);
|
|
125
|
+
.hanging-border-radius(8px);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
@media (min-width: 768px) {
|
|
129
|
+
.impersonation-banner {
|
|
130
|
+
.span6:first-child {
|
|
131
|
+
text-align: right;
|
|
132
|
+
}
|
|
133
|
+
.span6:last-child {
|
|
134
|
+
text-align: left;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
@@ -105,7 +105,6 @@
|
|
|
105
105
|
position:absolute;
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
|
-
|
|
109
108
|
}
|
|
110
109
|
|
|
111
110
|
@media (max-width: 768px) {
|
|
@@ -132,9 +131,9 @@
|
|
|
132
131
|
.menu {
|
|
133
132
|
padding-right:0;
|
|
134
133
|
position:absolute;
|
|
135
|
-
|
|
134
|
+
|
|
136
135
|
margin:0;
|
|
137
136
|
.translate(-250px, 0);
|
|
138
137
|
}
|
|
139
138
|
}
|
|
140
|
-
}
|
|
139
|
+
}
|
|
@@ -111,10 +111,6 @@
|
|
|
111
111
|
height: 24px;
|
|
112
112
|
}
|
|
113
113
|
|
|
114
|
-
.container .menu.mobile-search-visible {
|
|
115
|
-
top: 120px;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
114
|
.mobile-search {
|
|
119
115
|
display: none;
|
|
120
116
|
overflow: hidden;
|
|
@@ -130,10 +126,6 @@
|
|
|
130
126
|
height: 72px;
|
|
131
127
|
}
|
|
132
128
|
|
|
133
|
-
.container .menu.mobile-search-visible {
|
|
134
|
-
top: 120px;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
129
|
.profile {
|
|
138
130
|
right:5px;
|
|
139
131
|
width:auto;
|
data/app/helpers/theme_helper.rb
CHANGED
|
@@ -54,4 +54,16 @@ module ThemeHelper
|
|
|
54
54
|
def assessment_form assessment_form
|
|
55
55
|
render partial: 'woople-theme/assessment_form', object: ThemePresentation.wrap(assessment_form, AssessmentFormPresenter)
|
|
56
56
|
end
|
|
57
|
-
|
|
57
|
+
|
|
58
|
+
def impersonation_banner
|
|
59
|
+
if !respond_to?(WoopleTheme.configuration.impersonation_banner_helper)
|
|
60
|
+
raise "#{WoopleTheme.configuration.impersonation_banner_helper} helper_method does not exist. WoopleTheme.configuration.impersonation_banner_helper must point to a valid helper_method."
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
model = ThemePresentation.wrap(send(WoopleTheme.configuration.impersonation_banner_helper))
|
|
64
|
+
|
|
65
|
+
return unless model.impersonating?
|
|
66
|
+
|
|
67
|
+
render 'woople-theme/impersonation_banner', impersonation: model
|
|
68
|
+
end
|
|
69
|
+
end
|
|
@@ -18,6 +18,8 @@
|
|
|
18
18
|
<%= yield :body_content %>
|
|
19
19
|
|
|
20
20
|
<div class="container" id="navigation">
|
|
21
|
+
<%= impersonation_banner %>
|
|
22
|
+
|
|
21
23
|
<div class="row">
|
|
22
24
|
<a href="#" class="close-navigation close">×</a>
|
|
23
25
|
<a href="#navigation" class="navigation"><i class="icon-th-list"></i></a>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<div class="row-fluid impersonation-banner">
|
|
2
|
+
<div class="span6">
|
|
3
|
+
<%=t 'woople_theme.logged_in_as' %> <span class="badge"><i class="icon-user icon-white"></i> <%= impersonation.logged_in_as %></span>
|
|
4
|
+
</div>
|
|
5
|
+
<div class="span6">
|
|
6
|
+
<%=t 'woople_theme.impersonating' %> <span class="badge badge-info"><i class="icon-user icon-white"></i> <%= impersonation.impersonating %></span>
|
|
7
|
+
</div>
|
|
8
|
+
</div>
|
data/config/locales/en.yml
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
module WoopleTheme
|
|
2
2
|
class Configuration
|
|
3
|
-
attr_accessor :profile_helper, :menu_helper, :layout_javascript
|
|
3
|
+
attr_accessor :profile_helper, :menu_helper, :impersonation_banner_helper, :layout_javascript
|
|
4
4
|
|
|
5
5
|
def profile_helper
|
|
6
6
|
@profile_helper || :profile_helper
|
|
@@ -9,6 +9,10 @@ module WoopleTheme
|
|
|
9
9
|
def menu_helper
|
|
10
10
|
@menu_helper || :menu_helper
|
|
11
11
|
end
|
|
12
|
+
|
|
13
|
+
def impersonation_banner_helper
|
|
14
|
+
@impersonation_banner_helper || :impersonation_banner_helper
|
|
15
|
+
end
|
|
12
16
|
end
|
|
13
17
|
|
|
14
18
|
class << self
|
data/lib/woople-theme/version.rb
CHANGED
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.
|
|
4
|
+
version: 0.2.47
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,11 +9,11 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2012-
|
|
12
|
+
date: 2012-07-04 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rails
|
|
16
|
-
requirement: &
|
|
16
|
+
requirement: &70166974359260 !ruby/object:Gem::Requirement
|
|
17
17
|
none: false
|
|
18
18
|
requirements:
|
|
19
19
|
- - ~>
|
|
@@ -21,10 +21,10 @@ dependencies:
|
|
|
21
21
|
version: 3.2.5
|
|
22
22
|
type: :runtime
|
|
23
23
|
prerelease: false
|
|
24
|
-
version_requirements: *
|
|
24
|
+
version_requirements: *70166974359260
|
|
25
25
|
- !ruby/object:Gem::Dependency
|
|
26
26
|
name: less-rails-bootstrap
|
|
27
|
-
requirement: &
|
|
27
|
+
requirement: &70166974358740 !ruby/object:Gem::Requirement
|
|
28
28
|
none: false
|
|
29
29
|
requirements:
|
|
30
30
|
- - =
|
|
@@ -32,10 +32,10 @@ dependencies:
|
|
|
32
32
|
version: 2.0.13
|
|
33
33
|
type: :runtime
|
|
34
34
|
prerelease: false
|
|
35
|
-
version_requirements: *
|
|
35
|
+
version_requirements: *70166974358740
|
|
36
36
|
- !ruby/object:Gem::Dependency
|
|
37
37
|
name: therubyracer
|
|
38
|
-
requirement: &
|
|
38
|
+
requirement: &70166974358360 !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: :runtime
|
|
45
45
|
prerelease: false
|
|
46
|
-
version_requirements: *
|
|
46
|
+
version_requirements: *70166974358360
|
|
47
47
|
- !ruby/object:Gem::Dependency
|
|
48
48
|
name: bundler
|
|
49
|
-
requirement: &
|
|
49
|
+
requirement: &70166974357880 !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: *
|
|
57
|
+
version_requirements: *70166974357880
|
|
58
58
|
- !ruby/object:Gem::Dependency
|
|
59
59
|
name: sqlite3
|
|
60
|
-
requirement: &
|
|
60
|
+
requirement: &70166974357460 !ruby/object:Gem::Requirement
|
|
61
61
|
none: false
|
|
62
62
|
requirements:
|
|
63
63
|
- - ! '>='
|
|
@@ -65,10 +65,10 @@ dependencies:
|
|
|
65
65
|
version: '0'
|
|
66
66
|
type: :development
|
|
67
67
|
prerelease: false
|
|
68
|
-
version_requirements: *
|
|
68
|
+
version_requirements: *70166974357460
|
|
69
69
|
- !ruby/object:Gem::Dependency
|
|
70
70
|
name: rspec-rails
|
|
71
|
-
requirement: &
|
|
71
|
+
requirement: &70166974356960 !ruby/object:Gem::Requirement
|
|
72
72
|
none: false
|
|
73
73
|
requirements:
|
|
74
74
|
- - ~>
|
|
@@ -76,10 +76,10 @@ dependencies:
|
|
|
76
76
|
version: 2.9.0
|
|
77
77
|
type: :development
|
|
78
78
|
prerelease: false
|
|
79
|
-
version_requirements: *
|
|
79
|
+
version_requirements: *70166974356960
|
|
80
80
|
- !ruby/object:Gem::Dependency
|
|
81
81
|
name: capybara
|
|
82
|
-
requirement: &
|
|
82
|
+
requirement: &70166974356540 !ruby/object:Gem::Requirement
|
|
83
83
|
none: false
|
|
84
84
|
requirements:
|
|
85
85
|
- - ! '>='
|
|
@@ -87,7 +87,7 @@ dependencies:
|
|
|
87
87
|
version: '0'
|
|
88
88
|
type: :development
|
|
89
89
|
prerelease: false
|
|
90
|
-
version_requirements: *
|
|
90
|
+
version_requirements: *70166974356540
|
|
91
91
|
description: All Front-End all the Time
|
|
92
92
|
email:
|
|
93
93
|
- developers@bigbangtechnology.com
|
|
@@ -173,6 +173,7 @@ files:
|
|
|
173
173
|
- app/views/woople-theme/_assessment_form_question.html.erb
|
|
174
174
|
- app/views/woople-theme/_content_item.html.erb
|
|
175
175
|
- app/views/woople-theme/_content_item_header.html.erb
|
|
176
|
+
- app/views/woople-theme/_impersonation_banner.html.erb
|
|
176
177
|
- app/views/woople-theme/_menu.html.erb
|
|
177
178
|
- app/views/woople-theme/_outline.html.erb
|
|
178
179
|
- app/views/woople-theme/_outline_assessment.html.erb
|
|
@@ -220,7 +221,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
220
221
|
version: '0'
|
|
221
222
|
requirements: []
|
|
222
223
|
rubyforge_project:
|
|
223
|
-
rubygems_version: 1.8.
|
|
224
|
+
rubygems_version: 1.8.16
|
|
224
225
|
signing_key:
|
|
225
226
|
specification_version: 3
|
|
226
227
|
summary: Our Front-End CSS Framework/Theme
|