woople-theme 0.6.5 → 0.6.6
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/javascripts/woople-theme/theme.js +1 -0
- data/app/assets/stylesheets/woople-theme/dashboard/organization-accounts.css.less +10 -0
- data/app/helpers/dashboard_helper.rb +10 -8
- data/app/presenters/woople_theme/dashboard/organization_account_presenter.rb +9 -0
- data/app/presenters/woople_theme/dashboard/organization_accounts_presenter.rb +11 -0
- data/app/views/{dashboard → woople-theme/dashboard}/_electives_section.html.erb +0 -0
- data/app/views/{dashboard → woople-theme/dashboard}/_essentials_section.html.erb +0 -0
- data/app/views/{dashboard → woople-theme/dashboard}/_exception.html.erb +0 -0
- data/app/views/woople-theme/dashboard/_organization_account.html.erb +12 -0
- data/app/views/woople-theme/dashboard/_organization_accounts.html.erb +3 -0
- data/app/views/{dashboard → woople-theme/dashboard}/_points.html.erb +0 -0
- data/app/views/{dashboard → woople-theme/dashboard}/_status_alert.html.erb +0 -0
- data/lib/woople-theme/version.rb +1 -1
- metadata +12 -7
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
module DashboardHelper
|
|
2
2
|
def status_alert(color, description)
|
|
3
|
-
render partial: 'dashboard/status_alert',
|
|
3
|
+
render partial: 'woople-theme/dashboard/status_alert',
|
|
4
4
|
object: ThemePresentation.wrap({ color: color, description: description }, WoopleTheme::Dashboard::StatusAlertPresenter)
|
|
5
5
|
end
|
|
6
6
|
|
|
7
7
|
def essentials_section(presenter)
|
|
8
|
-
render partial: 'dashboard/essentials_section',
|
|
8
|
+
render partial: 'woople-theme/dashboard/essentials_section',
|
|
9
9
|
object: ThemePresentation.wrap(presenter, WoopleTheme::Dashboard::EssentialsSectionPresenter)
|
|
10
10
|
end
|
|
11
11
|
|
|
@@ -14,16 +14,16 @@ module DashboardHelper
|
|
|
14
14
|
end
|
|
15
15
|
|
|
16
16
|
def essentials_exceptions(items)
|
|
17
|
-
render_collection_partial(items, WoopleTheme::Dashboard::EssentialExceptionPresenter, 'dashboard/exception')
|
|
17
|
+
render_collection_partial(items, WoopleTheme::Dashboard::EssentialExceptionPresenter, 'woople-theme/dashboard/exception')
|
|
18
18
|
end
|
|
19
19
|
|
|
20
20
|
def electives_section(presenter)
|
|
21
|
-
render partial: 'dashboard/electives_section',
|
|
21
|
+
render partial: 'woople-theme/dashboard/electives_section',
|
|
22
22
|
object: ThemePresentation.wrap(presenter, WoopleTheme::Dashboard::ElectivesSectionPresenter)
|
|
23
23
|
end
|
|
24
24
|
|
|
25
25
|
def electives_points(points_earned, points_total)
|
|
26
|
-
render partial: 'dashboard/points',
|
|
26
|
+
render partial: 'woople-theme/dashboard/points',
|
|
27
27
|
object: ThemePresentation.wrap({ earned: points_earned, total: points_total }, WoopleTheme::Dashboard::PointsPresenter)
|
|
28
28
|
end
|
|
29
29
|
|
|
@@ -32,13 +32,15 @@ module DashboardHelper
|
|
|
32
32
|
end
|
|
33
33
|
|
|
34
34
|
def electives_exceptions(items)
|
|
35
|
-
render_collection_partial(items, WoopleTheme::Dashboard::ElectiveExceptionPresenter, 'dashboard/exception')
|
|
35
|
+
render_collection_partial(items, WoopleTheme::Dashboard::ElectiveExceptionPresenter, 'woople-theme/dashboard/exception')
|
|
36
36
|
end
|
|
37
37
|
|
|
38
|
-
private
|
|
39
|
-
|
|
40
38
|
def render_collection_partial(items, presenter, partial)
|
|
41
39
|
collection = ThemePresentation.wrap_collection(items, presenter)
|
|
42
40
|
render partial: partial, collection: collection
|
|
43
41
|
end
|
|
42
|
+
|
|
43
|
+
def organization_accounts(accounts)
|
|
44
|
+
render partial: 'woople-theme/dashboard/organization_accounts', object: ThemePresentation.wrap(accounts, WoopleTheme::Dashboard::OrganizationAccountsPresenter)
|
|
45
|
+
end
|
|
44
46
|
end
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<% account_id = "organization-account-#{organization_account_counter}" %>
|
|
2
|
+
|
|
3
|
+
<div class="accordion-group">
|
|
4
|
+
<div class="accordion-heading">
|
|
5
|
+
<a href="#<%= account_id %>" class="accordion-toggle" data-toggle="collapse" data-parent="#organization-accounts"><%= organization_account.name %></a>
|
|
6
|
+
</div>
|
|
7
|
+
<div id="<%= account_id %>" class="accordion-body collapse <%= 'in' if organization_account_counter == 0 %>">
|
|
8
|
+
<div class="accordion-inner">
|
|
9
|
+
<!-- Hi mom! -->
|
|
10
|
+
</div>
|
|
11
|
+
</div>
|
|
12
|
+
</div>
|
|
File without changes
|
|
File without changes
|
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.6.
|
|
4
|
+
version: 0.6.6
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2012-09-
|
|
12
|
+
date: 2012-09-24 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rails
|
|
@@ -173,6 +173,7 @@ files:
|
|
|
173
173
|
- app/assets/stylesheets/woople-theme/content.css.less
|
|
174
174
|
- app/assets/stylesheets/woople-theme/course.css.less
|
|
175
175
|
- app/assets/stylesheets/woople-theme/dashboard/base.css.less
|
|
176
|
+
- app/assets/stylesheets/woople-theme/dashboard/organization-accounts.css.less
|
|
176
177
|
- app/assets/stylesheets/woople-theme/dashboard/status-alert.css.less
|
|
177
178
|
- app/assets/stylesheets/woople-theme/framework/index.css.less
|
|
178
179
|
- app/assets/stylesheets/woople-theme/framework/responsive.css.less
|
|
@@ -217,6 +218,8 @@ files:
|
|
|
217
218
|
- app/presenters/woople_theme/dashboard/essential_exception_presenter.rb
|
|
218
219
|
- app/presenters/woople_theme/dashboard/essentials_section_presenter.rb
|
|
219
220
|
- app/presenters/woople_theme/dashboard/exception_presenter.rb
|
|
221
|
+
- app/presenters/woople_theme/dashboard/organization_account_presenter.rb
|
|
222
|
+
- app/presenters/woople_theme/dashboard/organization_accounts_presenter.rb
|
|
220
223
|
- app/presenters/woople_theme/dashboard/points_presenter.rb
|
|
221
224
|
- app/presenters/woople_theme/dashboard/section_presenter.rb
|
|
222
225
|
- app/presenters/woople_theme/dashboard/status_alert_presenter.rb
|
|
@@ -224,11 +227,6 @@ files:
|
|
|
224
227
|
- app/presenters/woople_theme/submitted_answer_presenter.rb
|
|
225
228
|
- app/presenters/woople_theme/submitted_question_presenter.rb
|
|
226
229
|
- app/presenters/woople_theme/video_presenter.rb
|
|
227
|
-
- app/views/dashboard/_electives_section.html.erb
|
|
228
|
-
- app/views/dashboard/_essentials_section.html.erb
|
|
229
|
-
- app/views/dashboard/_exception.html.erb
|
|
230
|
-
- app/views/dashboard/_points.html.erb
|
|
231
|
-
- app/views/dashboard/_status_alert.html.erb
|
|
232
230
|
- app/views/layouts/theme.html.erb
|
|
233
231
|
- app/views/woople-theme/_assessment_form.html.erb
|
|
234
232
|
- app/views/woople-theme/_assessment_form_answer.html.erb
|
|
@@ -249,6 +247,13 @@ files:
|
|
|
249
247
|
- app/views/woople-theme/_profile.html.erb
|
|
250
248
|
- app/views/woople-theme/_results_header.html.erb
|
|
251
249
|
- app/views/woople-theme/_video_modal.html.erb
|
|
250
|
+
- app/views/woople-theme/dashboard/_electives_section.html.erb
|
|
251
|
+
- app/views/woople-theme/dashboard/_essentials_section.html.erb
|
|
252
|
+
- app/views/woople-theme/dashboard/_exception.html.erb
|
|
253
|
+
- app/views/woople-theme/dashboard/_organization_account.html.erb
|
|
254
|
+
- app/views/woople-theme/dashboard/_organization_accounts.html.erb
|
|
255
|
+
- app/views/woople-theme/dashboard/_points.html.erb
|
|
256
|
+
- app/views/woople-theme/dashboard/_status_alert.html.erb
|
|
252
257
|
- config/locales/en.yml
|
|
253
258
|
- config/routes.rb
|
|
254
259
|
- lib/duration.rb
|