woople-theme 0.5.6 → 0.5.7
Sign up to get free protection for your applications and to get access to all the features.
@@ -3,21 +3,12 @@ require 'explicit_delegator'
|
|
3
3
|
module WoopleTheme
|
4
4
|
module Dashboard
|
5
5
|
class SectionPresenter < ExplicitDelegator
|
6
|
-
enforce_definitions :
|
7
|
-
:enabled?
|
6
|
+
enforce_definitions :enabled?
|
8
7
|
|
9
8
|
def render
|
10
9
|
yield if section.enabled?
|
11
10
|
end
|
12
11
|
|
13
|
-
def title
|
14
|
-
section.title.titleize
|
15
|
-
end
|
16
|
-
|
17
|
-
def css_id
|
18
|
-
section.title.parameterize + "-section"
|
19
|
-
end
|
20
|
-
|
21
12
|
private
|
22
13
|
|
23
14
|
def section
|
@@ -1,12 +1,12 @@
|
|
1
1
|
<% essentials_section.render do %>
|
2
|
-
<section id="
|
3
|
-
|
2
|
+
<section id="essentials-section">
|
3
|
+
<h2><%= t 'woople_theme.dashboards.member.essentials_section.title' %></h2>
|
4
4
|
<ul class="nav nav-tabs" id="essentials_tab_nav">
|
5
5
|
<% essentials_section.render_remaining do %>
|
6
|
-
<li><a href="#essentials_remaining" data-toggle="tab"><%=t
|
6
|
+
<li><a href="#essentials_remaining" data-toggle="tab"><%= t 'woople_theme.dashboards.member.essentials_section.remaining_tab_name' %></a></li>
|
7
7
|
<% end %>
|
8
8
|
<% essentials_section.render_completed do %>
|
9
|
-
<li><a href="#essentials_completed" data-toggle="tab"><%=t
|
9
|
+
<li><a href="#essentials_completed" data-toggle="tab"><%= t 'woople_theme.dashboards.member.essentials_section.completed_tab_name' %></a></li>
|
10
10
|
<% end %>
|
11
11
|
</ul>
|
12
12
|
<div class="tab-content">
|
data/config/locales/en.yml
CHANGED
@@ -54,18 +54,22 @@ en:
|
|
54
54
|
one: 1 unanswered question
|
55
55
|
other: '%{count} unanswered questions'
|
56
56
|
submit_assessment: Submit Assessment
|
57
|
-
dashboard:
|
58
|
-
essentials:
|
59
|
-
remaining: Remaining
|
60
|
-
completed: Completed
|
61
|
-
courses:
|
62
|
-
one: 1 Course
|
63
|
-
other: '%{count} Courses'
|
64
57
|
search_results_more: See All >
|
65
58
|
logged_in_as: Logged in as
|
66
59
|
impersonating: impersonating
|
67
60
|
cancel: Cancel
|
68
61
|
return_to_course: Return to Course
|
62
|
+
|
63
|
+
dashboards:
|
64
|
+
member:
|
65
|
+
essentials_section:
|
66
|
+
title: Essentials
|
67
|
+
remaining_tab_name: Remaining
|
68
|
+
completed_tab_name: Completed
|
69
|
+
courses:
|
70
|
+
one: 1 course
|
71
|
+
other: '%{count} courses'
|
72
|
+
|
69
73
|
date:
|
70
74
|
formats:
|
71
75
|
default: ! '%b %d %Y'
|
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.5.
|
4
|
+
version: 0.5.7
|
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-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|