contour 0.1.1 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.rdoc +11 -0
- data/README.rdoc +1 -1
- data/app/controllers/contour/passwords_controller.rb +3 -0
- data/app/views/{devise → contour}/passwords/edit.html.erb +0 -0
- data/app/views/contour/passwords/new.html.erb +19 -0
- data/app/views/contour/registrations/new.html.erb +36 -32
- data/app/views/contour/sessions/new.html.erb +23 -21
- data/contour.gemspec +0 -1
- data/lib/contour/version.rb +1 -1
- data/vendor/assets/images/stock/addfile.png +0 -0
- data/vendor/assets/images/stock/blank.png +0 -0
- data/vendor/assets/images/stock/cross.png +0 -0
- data/vendor/assets/images/stock/delete.png +0 -0
- data/vendor/assets/images/stock/doc.png +0 -0
- data/vendor/assets/images/stock/download.png +0 -0
- data/vendor/assets/images/stock/edit.png +0 -0
- data/vendor/assets/images/stock/email.png +0 -0
- data/vendor/assets/images/stock/external.png +0 -0
- data/vendor/assets/images/stock/favorite_no.png +0 -0
- data/vendor/assets/images/stock/favorite_yes.png +0 -0
- data/vendor/assets/images/stock/feed.png +0 -0
- data/vendor/assets/images/stock/im.png +0 -0
- data/vendor/assets/images/stock/information.png +0 -0
- data/vendor/assets/images/stock/key.png +0 -0
- data/vendor/assets/images/stock/mydocuments.png +0 -0
- data/vendor/assets/images/stock/open.png +0 -0
- data/vendor/assets/images/stock/pdf.png +0 -0
- data/vendor/assets/images/stock/save.png +0 -0
- data/vendor/assets/images/stock/tag_blue.png +0 -0
- data/vendor/assets/images/stock/tag_green.png +0 -0
- data/vendor/assets/images/stock/tag_neutral.png +0 -0
- data/vendor/assets/images/stock/tag_red.png +0 -0
- data/vendor/assets/images/stock/tick.png +0 -0
- data/vendor/assets/images/stock/visited.png +0 -0
- data/vendor/assets/images/stock/xls.png +0 -0
- data/vendor/assets/stylesheets/bluetrip-screen.css +8 -8
- metadata +34 -7
- data/app/views/devise/passwords/new.html.erb +0 -12
data/CHANGELOG.rdoc
CHANGED
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
|
|
File without changes
|
@@ -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 = '
|
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
|
-
|
8
|
-
|
9
|
-
|
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
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
<%=
|
29
|
-
|
30
|
-
|
31
|
-
<%
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
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
|
-
<
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
<
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
<% if
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
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
|
|
data/lib/contour/version.rb
CHANGED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
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/
|
254
|
-
a[href^="mailto:"] { background-image: url(../assets/
|
255
|
-
a[href^="http:"]:visited { background-image: url(../assets/
|
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/
|
258
|
+
a[href$=".pdf"] { background-image: url(../assets/stock/pdf.png); }
|
259
259
|
a[href$=".doc"],
|
260
|
-
a[href$=".docx"] { background-image: url(../assets/
|
261
|
-
a[href$=".xls"] { background-image: url(../assets/
|
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/
|
266
|
-
a[href^="aim:"] { background-image: url(../assets/
|
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.
|
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: &
|
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: *
|
24
|
+
version_requirements: *70197105513840
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: omniauth
|
27
|
-
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: *
|
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" %>
|