woople-theme 0.3.02 → 0.3.03
Sign up to get free protection for your applications and to get access to all the features.
- data/app/assets/javascripts/{assessment_form.js.erb → woople-theme/assessment_form.js.erb} +0 -0
- data/app/assets/javascripts/{assessment_flipper.js → woople-theme/assessment_overview.js} +4 -0
- data/app/assets/javascripts/woople-theme/theme.js +1 -2
- data/app/presenters/outline_assessment_presenter.rb +17 -0
- data/app/views/woople-theme/_outline_assessment.html.erb +7 -5
- data/config/locales/en.yml +6 -1
- data/lib/woople-theme/version.rb +1 -1
- metadata +20 -20
File without changes
|
@@ -2,14 +2,13 @@
|
|
2
2
|
//= require jquery_ujs
|
3
3
|
//= require modernizr
|
4
4
|
//= require spin.min
|
5
|
+
//= require twitter/bootstrap/transition
|
5
6
|
//= require twitter/bootstrap/dropdown
|
6
7
|
//= require twitter/bootstrap/modal
|
7
8
|
//= require twitter/bootstrap/button
|
8
9
|
//= require twitter/bootstrap/alert
|
9
10
|
//= require fastclick.min_
|
10
11
|
//= require video.min
|
11
|
-
//= require assessment_flipper
|
12
|
-
//= require assessment_form
|
13
12
|
//= require_tree .
|
14
13
|
|
15
14
|
function resizeFix() {
|
@@ -36,6 +36,23 @@ class OutlineAssessmentPresenter < SimpleDelegator
|
|
36
36
|
end
|
37
37
|
end
|
38
38
|
|
39
|
+
def render_pass_fail_alert
|
40
|
+
return unless respond_to? :passed?
|
41
|
+
if passed?
|
42
|
+
yield OpenStruct.new(
|
43
|
+
css_class: 'alert-success',
|
44
|
+
heading: I18n.t('woople_theme.assessment.pass_alert.heading'),
|
45
|
+
message: I18n.t('woople_theme.assessment.pass_alert.message')
|
46
|
+
)
|
47
|
+
else
|
48
|
+
yield OpenStruct.new(
|
49
|
+
css_class: 'alert-error',
|
50
|
+
heading: I18n.t('woople_theme.assessment.fail_alert.heading'),
|
51
|
+
message: I18n.t('woople_theme.assessment.fail_alert.message')
|
52
|
+
)
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
39
56
|
private
|
40
57
|
|
41
58
|
def normalize history_item
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<% assessment.render do %>
|
2
|
-
<div class="assessment">
|
2
|
+
<div id="assessment-<%= assessment.assessment_id %>" class="assessment">
|
3
3
|
<div class="front">
|
4
4
|
<div class="assessment-pad">
|
5
5
|
<div class="flip-action pull-right">
|
@@ -14,10 +14,12 @@
|
|
14
14
|
<span class="badge"><%= t 'woople_theme.assessment.duration', count: assessment.estimated_duration %></span>
|
15
15
|
</p>
|
16
16
|
|
17
|
-
|
18
|
-
<
|
19
|
-
|
20
|
-
|
17
|
+
<% assessment.render_pass_fail_alert do |alert| %>
|
18
|
+
<div class="alert <%= alert.css_class %> fade in">
|
19
|
+
<button class="close" data-dismiss="alert">×</button>
|
20
|
+
<strong><%= alert.heading %></strong> <%= alert.message %>
|
21
|
+
</div>
|
22
|
+
<% end %>
|
21
23
|
|
22
24
|
<% assessment.render_relearnings do %>
|
23
25
|
<h4><%= t 'woople_theme.assessment.required_relearning' %></h4>
|
data/config/locales/en.yml
CHANGED
@@ -26,7 +26,6 @@ en:
|
|
26
26
|
duration:
|
27
27
|
one: 1 minute
|
28
28
|
other: '%{count} minutes'
|
29
|
-
fail_html: You failed! Please watch the <strong>Require Relearning</strong> before attempting the assessment again.
|
30
29
|
required_relearning: Required Relearning
|
31
30
|
name: Assessment
|
32
31
|
assessment_history: Assessment History
|
@@ -35,6 +34,12 @@ en:
|
|
35
34
|
result_title: Result
|
36
35
|
pass: Pass
|
37
36
|
fail: Fail
|
37
|
+
pass_alert:
|
38
|
+
heading: Passed!
|
39
|
+
message: Congratulations, you've passed! You may review your history to see your scores and results. You may also retake the assessment to achieve a better result.
|
40
|
+
fail_alert:
|
41
|
+
heading: Failed!
|
42
|
+
message: Thank you for completing the assessment. You may review your history to see your scores and results. You may also retake the assessment to achieve a better result. You must rewatch the required relearnings below before retaking the assessment.
|
38
43
|
assessment_form:
|
39
44
|
unanswered_questions:
|
40
45
|
one: 1 unanswered question
|
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.3.
|
4
|
+
version: 0.3.03
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2012-07-10 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
16
|
-
requirement: &
|
16
|
+
requirement: &70247223075560 !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: *70247223075560
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: less-rails-bootstrap
|
27
|
-
requirement: &
|
27
|
+
requirement: &70247223074880 !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: *70247223074880
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: therubyracer
|
38
|
-
requirement: &
|
38
|
+
requirement: &70247223074480 !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: *70247223074480
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: bundler
|
49
|
-
requirement: &
|
49
|
+
requirement: &70247223074000 !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: *70247223074000
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: sqlite3
|
60
|
-
requirement: &
|
60
|
+
requirement: &70247223073560 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ! '>='
|
@@ -65,21 +65,21 @@ dependencies:
|
|
65
65
|
version: '0'
|
66
66
|
type: :development
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *70247223073560
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rspec-rails
|
71
|
-
requirement: &
|
71
|
+
requirement: &70247223073000 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
|
-
- -
|
74
|
+
- - =
|
75
75
|
- !ruby/object:Gem::Version
|
76
|
-
version: 2.
|
76
|
+
version: 2.11.0
|
77
77
|
type: :development
|
78
78
|
prerelease: false
|
79
|
-
version_requirements: *
|
79
|
+
version_requirements: *70247223073000
|
80
80
|
- !ruby/object:Gem::Dependency
|
81
81
|
name: capybara
|
82
|
-
requirement: &
|
82
|
+
requirement: &70247223072540 !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: *70247223072540
|
91
91
|
description: All Front-End all the Time
|
92
92
|
email:
|
93
93
|
- developers@bigbangtechnology.com
|
@@ -124,8 +124,8 @@ files:
|
|
124
124
|
- app/assets/images/woople-theme/star-icon.png
|
125
125
|
- app/assets/images/woople-theme/star-icon2x.png
|
126
126
|
- app/assets/images/woople-theme/video-js.png
|
127
|
-
- app/assets/javascripts/
|
128
|
-
- app/assets/javascripts/
|
127
|
+
- app/assets/javascripts/woople-theme/assessment_form.js.erb
|
128
|
+
- app/assets/javascripts/woople-theme/assessment_overview.js
|
129
129
|
- app/assets/javascripts/woople-theme/theme.js
|
130
130
|
- app/assets/stylesheets/woople-theme/assessment.css.less
|
131
131
|
- app/assets/stylesheets/woople-theme/base.css.less
|
@@ -225,7 +225,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
225
225
|
version: '0'
|
226
226
|
requirements: []
|
227
227
|
rubyforge_project:
|
228
|
-
rubygems_version: 1.8.
|
228
|
+
rubygems_version: 1.8.15
|
229
229
|
signing_key:
|
230
230
|
specification_version: 3
|
231
231
|
summary: Our Front-End CSS Framework/Theme
|