woople-theme 0.5.2 → 0.5.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,13 +1,24 @@
1
1
  @import "woople-theme/variables.css.less";
2
2
 
3
3
  #essentials-section {
4
- padding-left:@contentPadding;
5
- padding-right:@contentPadding;
6
- margin-top:0;
7
- margin-bottom:0;
8
- padding-top:@contentPadding;
9
4
 
10
5
  h2 {
6
+ padding-left:@contentPadding;
7
+ padding-right:@contentPadding;
8
+ margin-top:0;
9
+ margin-bottom:0;
10
+ padding-top:@contentPadding;
11
11
  .section-title();
12
12
  }
13
+
14
+ .tab-pane {
15
+ background-color: white;
16
+ }
17
+ .nav-tabs li:first-child {
18
+ margin-left: 10px;
19
+ }
20
+ .nav {
21
+ margin-bottom: 0;
22
+ }
23
+
13
24
  }
@@ -1,6 +1,12 @@
1
+ require 'action_view'
1
2
  module WoopleTheme
2
3
  module Dashboard
3
4
  class EssentialsSectionPresenter < SectionPresenter
5
+ enforce_definitions :essentials_remaining
6
+
7
+ def render_remaining
8
+ yield if section.essentials_remaining.size > 0
9
+ end
4
10
 
5
11
  end
6
12
  end
@@ -1,6 +1,17 @@
1
1
  <% essentials_section.render do %>
2
2
  <section id="<%= essentials_section.css_id %>">
3
3
  <h2><%= essentials_section.title %></h2>
4
- <% yield %>
4
+ <ul class="nav nav-tabs">
5
+ <% essentials_section.render_remaining do %>
6
+ <li class="active"><a href="#" data-toggle="tab"><%=t('woople_theme.dashboard.essentials.remaining')%></a></li>
7
+ <% end %>
8
+ </ul>
9
+ <div class="tab-content">
10
+ <% essentials_section.render_remaining do %>
11
+ <div class="tab-pane active" id="essentials_remaining">
12
+ <%= content_items(essentials_section.essentials_remaining) %>
13
+ </div>
14
+ <% end %>
15
+ </div>
5
16
  </section>
6
17
  <% end %>
@@ -54,6 +54,9 @@ 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
57
60
  search_results_more: See All >
58
61
  logged_in_as: Logged in as
59
62
  impersonating: impersonating
@@ -1,3 +1,3 @@
1
1
  module WoopleTheme
2
- VERSION = '0.5.2'
2
+ VERSION = '0.5.3'
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.5.2
4
+ version: 0.5.3
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-08-27 00:00:00.000000000 Z
12
+ date: 2012-08-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails