instedd-rails 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1 @@
1
+ <%= section 'Home', root_path, :home %>
@@ -19,44 +19,10 @@
19
19
  <ul id="instedd-pulldown"></ul>
20
20
  <div id="NavMenu">
21
21
  <ul>
22
- <%= section 'Home', root_path, :home %>
23
- <%= section 'Reminders', schedules_path, :schedules, [:schedules, :subscribers, :logs] unless current_user.nil? %>
24
- <%= section 'Tour', tour_path(:start), :tour %>
25
- <%= section 'Community', community_path, :community %>
26
- <%= section 'Help', help_path , :help %>
22
+ <%= yield(:navigation) %>
27
23
  </ul>
28
24
  </div>
29
-
30
- <ul class="RightMenu">
31
- <%- if !current_user.nil? %>
32
- <li>
33
- <div id="User">
34
- <%=current_user.email%><br><br>
35
- <div class="container">
36
- <ul>
37
- <li><%= link_to 'Reminders', schedules_path %></li>
38
- <li><%= link_to 'Settings', edit_user_registration_path %></li>
39
- </ul>
40
- <hr/>
41
- <ul>
42
- <li><a href="mailto:support@instedd.org?subject=[<%= application_name.underscore %>-bug]">Report a bug</a></li>
43
- <li><%= link_to "Sign Out", destroy_user_session_path %></li>
44
- </ul>
45
- </div>
46
- </div>
47
- </li>
48
- <li>
49
- <%= link_to '', edit_user_registration_path, :class => 'fsettings' %>
50
- </li>
51
- <% else %>
52
- <li>
53
- <%= link_to "Create account", new_user_registration_path, :class => 'fedit' %>
54
- </li>
55
- <li>
56
- <%= link_to "Log in", new_user_session_path, :class => 'fuser' %>
57
- </li>
58
- <% end %>
59
- </ul>
25
+ <%= yield(:right_menu) %>
60
26
  </div>
61
27
 
62
28
  <div id="header">
@@ -86,21 +52,18 @@
86
52
  </div>
87
53
  <div class="right">
88
54
  <a href="http://instedd.org/technologies/" class="more">Learn more</a>
89
- <div id="instedd-footer" data-app-name="remindem"></div>
55
+ <div id="instedd-footer" data-app-name="<%= application_name.underscore %>"></div>
90
56
  </div>
91
57
  <div class="clear"></div>
92
58
  </div>
93
59
  <div>
94
60
  <div class="left">
95
61
  <a href="http://instedd.org">&copy; 2011 InSTEDD</a>
96
- <a href="#TODO">Terms and conditions</a>
62
+ <a href="<%= terms_and_conditions_path %>">Terms and conditions</a>
97
63
  <a href="mailto:support@instedd.org?subject=[<%= application_name.titleize %>]">Contact us</a>
98
64
  </div>
99
65
  <div class="right">
100
- <a href="<%= root_path %>">Home</a>
101
- <a href="<%= tour_path(:start) %>">Tour</a>
102
- <a href="<%= community_path %>">Community</a>
103
- <a href="<%= help_path %>">Help</a>
66
+ <%= yield(:footer_links) %>
104
67
  <span class="VersionNumber">Version <%= version_name %></span>
105
68
  </div>
106
69
  <div class="clear">
@@ -1,3 +1,3 @@
1
1
  Rails.application.routes.draw do
2
- # get 'tour(/:page)', :action => :show, :controller => :tour, :as => 'tour'
2
+
3
3
  end
@@ -0,0 +1,13 @@
1
+ module InsteddRails
2
+ module Generators
3
+ class LayoutGenerator < ::Rails::Generators::Base
4
+ source_root File.expand_path(File.join(File.dirname(__FILE__), 'templates'))
5
+
6
+ desc "Copy layout files to your application."
7
+
8
+ def copy_initializer
9
+ copy_file "application.html.erb", "app/views/layouts/application.html.erb"
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,45 @@
1
+ <% content_for :navigation do %>
2
+ <%= section 'Home', root_path, :home %>
3
+ <%= section 'Tour', tour_path(:start), :tour %>
4
+ <%= section 'Community', community_path, :community %>
5
+ <%= section 'Help', help_path , :help %>
6
+ <% end %>
7
+ <% content_for :right_menu do %>
8
+ <ul class="RightMenu">
9
+ <%- if !current_user.nil? %>
10
+ <li>
11
+ <div id="User">
12
+ <%=current_user.email%><br><br>
13
+ <div class="container">
14
+ <ul>
15
+ <li><%= link_to 'Reminders', schedules_path %></li>
16
+ <li><%= link_to 'Settings', edit_user_registration_path %></li>
17
+ </ul>
18
+ <hr/>
19
+ <ul>
20
+ <li><a href="mailto:support@instedd.org?subject=[<%= application_name.underscore %>-bug]">Report a bug</a></li>
21
+ <li><%= link_to "Sign Out", destroy_user_session_path %></li>
22
+ </ul>
23
+ </div>
24
+ </div>
25
+ </li>
26
+ <li>
27
+ <%= link_to '', edit_user_registration_path, :class => 'fsettings' %>
28
+ </li>
29
+ <% else %>
30
+ <li>
31
+ <%= link_to "Create account", new_user_registration_path, :class => 'fedit' %>
32
+ </li>
33
+ <li>
34
+ <%= link_to "Log in", new_user_session_path, :class => 'fuser' %>
35
+ </li>
36
+ <% end %>
37
+ </ul>
38
+ <% end %>
39
+ <% content_for :footer_links do %>
40
+ <a href="<%= root_path %>">Home</a>
41
+ <a href="<%= tour_path(:start) %>">Tour</a>
42
+ <a href="<%= community_path %>">Community</a>
43
+ <a href="<%= help_path %>">Help</a>
44
+ <% end %>
45
+ <%= render :file => 'layouts/instedd_application' %>
@@ -1,3 +1,3 @@
1
1
  module InsteddRails
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: instedd-rails
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.2
5
+ version: 0.0.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - Instedd
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-11-16 00:00:00 Z
13
+ date: 2011-11-17 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails
@@ -59,7 +59,8 @@ files:
59
59
  - app/views/kaminari/_page.html.erb
60
60
  - app/views/kaminari/_paginator.html.erb
61
61
  - app/views/kaminari/_prev_page.html.erb
62
- - app/views/layouts/application.html.erb
62
+ - app/views/layouts/_navigation.html.erb
63
+ - app/views/layouts/instedd_application.html.erb
63
64
  - app/views/layouts/mail.html.erb
64
65
  - app/views/layouts/mail.text.erb
65
66
  - app/views/layouts/tour.html.erb
@@ -72,6 +73,8 @@ files:
72
73
  - config/routes.rb
73
74
  - instedd-rails.gemspec
74
75
  - lib/generators/instedd_rails/config_generator.rb
76
+ - lib/generators/instedd_rails/layout_generator.rb
77
+ - lib/generators/instedd_rails/templates/application.html.erb
75
78
  - lib/generators/instedd_rails/templates/instedd_rails_config.rb
76
79
  - lib/instedd-rails.rb
77
80
  - lib/instedd_rails/config.rb