contour 0.1.1 → 0.2.1

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.
Files changed (38) hide show
  1. data/CHANGELOG.rdoc +11 -0
  2. data/README.rdoc +1 -1
  3. data/app/controllers/contour/passwords_controller.rb +3 -0
  4. data/app/views/{devise → contour}/passwords/edit.html.erb +0 -0
  5. data/app/views/contour/passwords/new.html.erb +19 -0
  6. data/app/views/contour/registrations/new.html.erb +36 -32
  7. data/app/views/contour/sessions/new.html.erb +23 -21
  8. data/contour.gemspec +0 -1
  9. data/lib/contour/version.rb +1 -1
  10. data/vendor/assets/images/stock/addfile.png +0 -0
  11. data/vendor/assets/images/stock/blank.png +0 -0
  12. data/vendor/assets/images/stock/cross.png +0 -0
  13. data/vendor/assets/images/stock/delete.png +0 -0
  14. data/vendor/assets/images/stock/doc.png +0 -0
  15. data/vendor/assets/images/stock/download.png +0 -0
  16. data/vendor/assets/images/stock/edit.png +0 -0
  17. data/vendor/assets/images/stock/email.png +0 -0
  18. data/vendor/assets/images/stock/external.png +0 -0
  19. data/vendor/assets/images/stock/favorite_no.png +0 -0
  20. data/vendor/assets/images/stock/favorite_yes.png +0 -0
  21. data/vendor/assets/images/stock/feed.png +0 -0
  22. data/vendor/assets/images/stock/im.png +0 -0
  23. data/vendor/assets/images/stock/information.png +0 -0
  24. data/vendor/assets/images/stock/key.png +0 -0
  25. data/vendor/assets/images/stock/mydocuments.png +0 -0
  26. data/vendor/assets/images/stock/open.png +0 -0
  27. data/vendor/assets/images/stock/pdf.png +0 -0
  28. data/vendor/assets/images/stock/save.png +0 -0
  29. data/vendor/assets/images/stock/tag_blue.png +0 -0
  30. data/vendor/assets/images/stock/tag_green.png +0 -0
  31. data/vendor/assets/images/stock/tag_neutral.png +0 -0
  32. data/vendor/assets/images/stock/tag_red.png +0 -0
  33. data/vendor/assets/images/stock/tick.png +0 -0
  34. data/vendor/assets/images/stock/visited.png +0 -0
  35. data/vendor/assets/images/stock/xls.png +0 -0
  36. data/vendor/assets/stylesheets/bluetrip-screen.css +8 -8
  37. metadata +34 -7
  38. data/app/views/devise/passwords/new.html.erb +0 -12
data/CHANGELOG.rdoc CHANGED
@@ -1,3 +1,14 @@
1
+ == 0.2.1
2
+
3
+ * Bug Fix
4
+ * Apparently add_dependency doesn't work with (= ) signs either
5
+
6
+ == 0.2.0
7
+
8
+ * Enhancements
9
+ * Stock assets added
10
+ * Sign in, password reset, and registration pages redesigned
11
+
1
12
  == 0.1.1
2
13
 
3
14
  * Bug Fix
data/README.rdoc CHANGED
@@ -38,7 +38,7 @@ In order to get registration working, you can use the modified Contour Authentic
38
38
 
39
39
  resources :authentications, :controller => 'contour/authentications'
40
40
 
41
- devise_for :users, :controllers => {:registrations => 'contour/registrations'}, :path_names => { :sign_up => 'register', :sign_in => 'login' }
41
+ devise_for :users, :controllers => {:registrations => 'contour/registrations', :sessions => 'contour/sessions', :passwords => 'contour/passwords'}, :path_names => { :sign_up => 'register', :sign_in => 'login' }
42
42
 
43
43
  == Contributing to contour
44
44
 
@@ -0,0 +1,3 @@
1
+ class Contour::PasswordsController < Devise::SessionsController
2
+
3
+ end
@@ -0,0 +1,19 @@
1
+ <% @title = 'Forgot your password?' %>
2
+
3
+ <%= form_for(resource, :as => resource_name, :url => password_path(resource_name), :html => { :method => :post }) do |f| %>
4
+ <%= devise_error_messages! %>
5
+ <fieldset style="width:235px">
6
+ <legend><%= @title %></legend>
7
+
8
+ <div class="field">
9
+ <%= f.label :email %><br />
10
+ <%= f.text_field :email %>
11
+ </div>
12
+ </fieldset>
13
+ <div class="actions">
14
+ <% form_name = 'user_new' %>
15
+ <%= link_to_function image_tag('stock/tick.png', :alt => '') + "Send me reset password instructions", "$('##{form_name}').submit();", :class => "button positive" %>
16
+ <div style="clear:both"></div><br />
17
+ <%= link_to "Login here!", new_session_path(resource_name) %> or <%= link_to "Register here!", new_registration_path(resource_name) %>
18
+ </div>
19
+ <% end %>
@@ -1,37 +1,41 @@
1
- <% @title = 'Sign Up' %>
2
- <h2><%= @title %></h2>
1
+ <% @title = 'Register' %>
3
2
 
4
3
  <%= form_for(resource, :as => resource_name, :url => registration_path(resource_name)) do |f| %>
5
4
  <%= devise_error_messages! %>
6
-
7
- <p><%= f.label :first_name %><br />
8
- <%= f.text_field :first_name %>
9
- </p>
5
+ <fieldset style="width:235px">
6
+ <legend><%= @title %></legend>
7
+
8
+ <div class="field">
9
+ <%= f.label :first_name %><br />
10
+ <%= f.text_field :first_name %>
11
+ </div>
10
12
 
11
- <p><%= f.label :last_name %><br />
12
- <%= f.text_field :last_name %></p>
13
-
14
- <p><%= f.label :email %><br />
15
- <%= f.text_field :email %></p>
16
-
17
- <% if @user.password_required? %>
18
- <p><%= f.label :password %><br />
19
- <%= f.password_field :password %></p>
20
-
21
- <p><%= f.label :password_confirmation %><br />
22
- <%= f.password_field :password_confirmation %></p>
23
- <% end %>
24
-
25
- <p><%= f.submit "Sign up" %></p>
26
- <% end %>
27
-
28
- <%= render :partial => "devise/shared/links" %>
29
-
30
- <% if false %>
31
- <% if @user.password_required? %>
32
- <% unless PROVIDERS.blank? %>
33
- <h3>Don't want to remember a new login and password? Sign up using one of your existing accounts!</h3>
34
- <%= render :partial => 'contour/authentications/index' %>
35
- <% end %>
36
- <% end %>
13
+ <div class="field">
14
+ <%= f.label :last_name %><br />
15
+ <%= f.text_field :last_name %>
16
+ </div>
17
+
18
+ <div class="field">
19
+ <%= f.label :email %><br />
20
+ <%= f.text_field :email %>
21
+ </div>
22
+
23
+ <% if @user.password_required? %>
24
+ <div class="field">
25
+ <%= f.label :password %><br />
26
+ <%= f.password_field :password %>
27
+ </div>
28
+
29
+ <div class="field">
30
+ <%= f.label :password_confirmation %><br />
31
+ <%= f.password_field :password_confirmation %>
32
+ </div>
33
+ <% end %>
34
+ </fieldset>
35
+ <div class="actions">
36
+ <% form_name = 'user_new' %>
37
+ <%= link_to_function image_tag('stock/tick.png', :alt => '') + "Sign up", "$('##{form_name}').submit();", :class => "button positive" %>
38
+ <div style="clear:both"></div><br />
39
+ <%= link_to "Already signed up? Login here!", new_session_path(resource_name) %>
40
+ </div>
37
41
  <% end %>
@@ -1,25 +1,27 @@
1
1
  <% @title = 'Login' %>
2
- <h2><%= @title %></h2>
3
2
 
4
3
  <%= form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f| %>
5
- <p><%= f.label :email %><br />
6
- <%= f.text_field :email %></p>
7
-
8
- <p><%= f.label :password %><br />
9
- <%= f.password_field :password %></p>
10
-
11
- <% if devise_mapping.rememberable? -%>
12
- <p><%= f.check_box :remember_me %> <%= f.label :remember_me %></p>
13
- <% end -%>
14
-
15
- <p><%= f.submit "Sign in" %></p>
16
- <% end %>
17
-
18
- <%= render :partial => "devise/shared/links" %>
19
-
20
- <% if false %>
21
- <% unless PROVIDERS.blank? %>
22
- <h3>Don't want to remember a new login and password? Sign in using one of your existing accounts!</h3>
23
- <%= render :partial => 'contour/authentications/index' %>
24
- <% end %>
4
+ <fieldset style="width:235px">
5
+ <legend><%= @title %></legend>
6
+
7
+ <div class="field">
8
+ <%= f.label :email %><br />
9
+ <%= f.text_field :email %>
10
+ </div>
11
+ <div class="field">
12
+ <%= f.label :password %><br />
13
+ <%= f.password_field :password %>
14
+ </div>
15
+ </fieldset>
16
+ <div class="actions">
17
+ <% form_name = 'user_new' %>
18
+ <%= link_to_function image_tag('stock/tick.png', :alt => '') + "Login", "$('##{form_name}').submit();", :class => "button positive" %>
19
+ <% if devise_mapping.rememberable? -%>
20
+ <div style="padding-top:5px;padding-bottom:4px;"><%= f.check_box :remember_me %> <%= f.label :remember_me %></div>
21
+ <% end -%>
22
+ <% if devise_mapping.recoverable? && controller_name != 'passwords' %>
23
+ <div style="clear:both"></div><br />
24
+ <%= link_to "Forgot your password?", new_password_path(resource_name) %> or <%= link_to "Register here!", new_registration_path(resource_name) %>
25
+ <% end %>
26
+ </div>
25
27
  <% end %>
data/contour.gemspec CHANGED
@@ -19,7 +19,6 @@ Gem::Specification.new do |s|
19
19
  s.authors = ["Remo Mueller"]
20
20
  s.description = "Basic Rails Framework files and assets for layout and authentication"
21
21
 
22
- # s.add_development_dependency "rails", "~> 3.0"
23
22
  s.add_dependency("devise", "~> 1.3.4")
24
23
  s.add_dependency("omniauth", "~> 0.2.6")
25
24
 
@@ -1,3 +1,3 @@
1
1
  module Contour
2
- VERSION = "0.1.1"
2
+ VERSION = "0.2.1"
3
3
  end
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -250,20 +250,20 @@ a[href$=".rdf"],
250
250
  a[href^="aim:"] { padding:2px 22px 2px 0; margin:-2px 0; background-repeat: no-repeat; background-position: right center; }
251
251
 
252
252
  /*** EXTERNAL LINK ICONS ***/
253
- a[href^="http:"] { background-image: url(../assets/icons/external.png); padding-right: 14px; }
254
- a[href^="mailto:"] { background-image: url(../assets/icons/email.png); }
255
- a[href^="http:"]:visited { background-image: url(../assets/icons/visited.png); }
253
+ a[href^="http:"] { background-image: url(../assets/stock/external.png); padding-right: 14px; }
254
+ a[href^="mailto:"] { background-image: url(../assets/stock/email.png); }
255
+ a[href^="http:"]:visited { background-image: url(../assets/stock/visited.png); }
256
256
 
257
257
  /*** FILE LINK ICONS ***/
258
- a[href$=".pdf"] { background-image: url(../assets/icons/pdf.png); }
258
+ a[href$=".pdf"] { background-image: url(../assets/stock/pdf.png); }
259
259
  a[href$=".doc"],
260
- a[href$=".docx"] { background-image: url(../assets/icons/doc.png); }
261
- a[href$=".xls"] { background-image: url(../assets/icons/xls.png); }
260
+ a[href$=".docx"] { background-image: url(../assets/stock/doc.png); }
261
+ a[href$=".xls"] { background-image: url(../assets/stock/xls.png); }
262
262
 
263
263
  /*** MISCELLANEOUS LINK ICONS ***/
264
264
  a[href$=".rss"],
265
- a[href$=".rdf"] { background-image: url(../assets/icons/feed.png); }
266
- a[href^="aim:"] { background-image: url(../assets/icons/im.png); }
265
+ a[href$=".rdf"] { background-image: url(../assets/stock/feed.png); }
266
+ a[href^="aim:"] { background-image: url(../assets/stock/im.png); }
267
267
  a[href^="http://yourwebsite.com"] { background:none; padding:0; margin:0; }
268
268
 
269
269
  /*** TEXT CLASSES ***/
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: contour
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2011-09-01 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: devise
16
- requirement: &70141803093320 !ruby/object:Gem::Requirement
16
+ requirement: &70197105513840 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 1.3.4
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70141803093320
24
+ version_requirements: *70197105513840
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: omniauth
27
- requirement: &70141803091520 !ruby/object:Gem::Requirement
27
+ requirement: &70197105513340 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: 0.2.6
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70141803091520
35
+ version_requirements: *70197105513340
36
36
  description: Basic Rails Framework files and assets for layout and authentication
37
37
  email: remosm@gmail.com
38
38
  executables: []
@@ -44,6 +44,7 @@ files:
44
44
  - LICENSE
45
45
  - README.rdoc
46
46
  - app/controllers/contour/authentications_controller.rb
47
+ - app/controllers/contour/passwords_controller.rb
47
48
  - app/controllers/contour/registrations_controller.rb
48
49
  - app/controllers/contour/samples_controller.rb
49
50
  - app/controllers/contour/sessions_controller.rb
@@ -53,12 +54,12 @@ files:
53
54
  - app/views/contour/layouts/_menu.html.erb
54
55
  - app/views/contour/layouts/_message.html.erb
55
56
  - app/views/contour/layouts/application.html.erb
57
+ - app/views/contour/passwords/edit.html.erb
58
+ - app/views/contour/passwords/new.html.erb
56
59
  - app/views/contour/registrations/edit.html.erb
57
60
  - app/views/contour/registrations/new.html.erb
58
61
  - app/views/contour/samples/index.html.erb
59
62
  - app/views/contour/sessions/new.html.erb
60
- - app/views/devise/passwords/edit.html.erb
61
- - app/views/devise/passwords/new.html.erb
62
63
  - contour.gemspec
63
64
  - lib/contour.rb
64
65
  - lib/contour/engine.rb
@@ -98,6 +99,32 @@ files:
98
99
  - vendor/assets/images/redmond/ui-icons_cd0a0a_256x240.png
99
100
  - vendor/assets/images/redmond/ui-icons_d8e7f3_256x240.png
100
101
  - vendor/assets/images/redmond/ui-icons_f9bd01_256x240.png
102
+ - vendor/assets/images/stock/addfile.png
103
+ - vendor/assets/images/stock/blank.png
104
+ - vendor/assets/images/stock/cross.png
105
+ - vendor/assets/images/stock/delete.png
106
+ - vendor/assets/images/stock/doc.png
107
+ - vendor/assets/images/stock/download.png
108
+ - vendor/assets/images/stock/edit.png
109
+ - vendor/assets/images/stock/email.png
110
+ - vendor/assets/images/stock/external.png
111
+ - vendor/assets/images/stock/favorite_no.png
112
+ - vendor/assets/images/stock/favorite_yes.png
113
+ - vendor/assets/images/stock/feed.png
114
+ - vendor/assets/images/stock/im.png
115
+ - vendor/assets/images/stock/information.png
116
+ - vendor/assets/images/stock/key.png
117
+ - vendor/assets/images/stock/mydocuments.png
118
+ - vendor/assets/images/stock/open.png
119
+ - vendor/assets/images/stock/pdf.png
120
+ - vendor/assets/images/stock/save.png
121
+ - vendor/assets/images/stock/tag_blue.png
122
+ - vendor/assets/images/stock/tag_green.png
123
+ - vendor/assets/images/stock/tag_neutral.png
124
+ - vendor/assets/images/stock/tag_red.png
125
+ - vendor/assets/images/stock/tick.png
126
+ - vendor/assets/images/stock/visited.png
127
+ - vendor/assets/images/stock/xls.png
101
128
  - vendor/assets/javascripts/contour.js
102
129
  - vendor/assets/javascripts/errors.js.coffee
103
130
  - vendor/assets/javascripts/external/exporting-2.1.4.src.js
@@ -1,12 +0,0 @@
1
- <h2>Forgot your password?</h2>
2
-
3
- <%= form_for(resource, :as => resource_name, :url => password_path(resource_name), :html => { :method => :post }) do |f| %>
4
- <%= devise_error_messages! %>
5
-
6
- <p><%= f.label :email %><br />
7
- <%= f.text_field :email %></p>
8
-
9
- <p><%= f.submit "Send me reset password instructions" %></p>
10
- <% end %>
11
-
12
- <%= render :partial => "devise/shared/links" %>