headstart 0.8.0 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.8.0
1
+ 0.9.0
@@ -7,6 +7,13 @@ class Headstart::UsersController < ApplicationController
7
7
  # Before Filter on *only* the 'uninstalled' method
8
8
  before_filter :verify_uninstall_signature, :only => [:facebook_remove]
9
9
 
10
+ def resend_welcome_email
11
+ HeadstartMailer.deliver_welcome(current_user)
12
+ flash[:notice] = 'Your confirmation email has been resent.'
13
+ @user = current_user
14
+ render :template => 'users/edit'
15
+ end
16
+
10
17
  def facebook_remove
11
18
  @fb_uid = params[:fb_sig_user]
12
19
  if @fb_uid.present?
@@ -41,6 +48,9 @@ class Headstart::UsersController < ApplicationController
41
48
 
42
49
  def edit
43
50
  @user = current_user
51
+ if !@user.email_confirmed?
52
+ flash[:notice] = 'Your account has not been confirmed yet. Please confirm using the link in the Welcome email sent to you. Click <a href="/resend_welcome_email">here</a> to resend confirmation email.'
53
+ end
44
54
  render :template => 'users/edit'
45
55
  end
46
56
 
@@ -1,7 +1,7 @@
1
- Someone, hopefully you, has requested that we send you a link to change your password.
1
+ <p>Someone, hopefully you, has requested that we send you a link to change your password.</p>
2
2
 
3
- Here's the link:
3
+ <p>Here's the link:</p>
4
4
 
5
- <%= @url %>
5
+ <p><%= @url %></p>
6
6
 
7
- If you didn't request this, ignore this email. Don't worry. Your password hasn't been changed.
7
+ <p>If you didn't request this, ignore this email. Don't worry. Your password hasn't been changed.</p>
@@ -1,7 +1,7 @@
1
- Welcome to <%= Settings.title %>. Thanks for registering and trying it out. Please <%= link_to "click here", new_user_confirmation_url(
1
+ <p>Welcome to <%= Settings.title %>. Thanks for registering and trying it out. Please <%= link_to "click here", new_user_confirmation_url(
2
2
  :user_id => @user,
3
3
  :token => @user.confirmation_token,
4
- :encode => false) %> to confirm you received this email and activate your account.
4
+ :encode => false) %> to confirm you received this email and activate your account.</p>
5
5
 
6
- Thank you,
7
- Team <%= Settings.title %>
6
+ <p>Thank you,<br/>
7
+ Team <%= Settings.title %></p>
@@ -1,7 +1,7 @@
1
1
  module UsersHelper
2
2
 
3
3
  def avatar_url(user)
4
- if user.facebook_uid.present?
4
+ if user.facebook_uid.present? && user.avatar_file_name.blank?
5
5
  return "http://graph.facebook.com/#{user.facebook_uid}/picture?type=square"
6
6
  else
7
7
  return user.avatar.url(:thumb)
@@ -43,7 +43,7 @@
43
43
  | <%= link_to 'Admin', "/admin" %>
44
44
  <% end %>
45
45
 
46
- | <%= link_to 'My Profile', user_path(current_user) %>
46
+ | <%= link_to 'My Profile', edit_user_path(current_user) %>
47
47
  <% else %>
48
48
  <%= link_to 'Sign in', sign_in_path %> |
49
49
  <%= link_to 'Sign up', sign_up_path %>
@@ -55,7 +55,7 @@
55
55
  <div id="content" class="container_12">
56
56
  <div id="flash">
57
57
  <%- flash.each do |key, value| -%>
58
- <div class="<%= key %>_flash"><%=h value %></div>
58
+ <div class="<%= key %>_flash"><%= value %></div>
59
59
  <%- end -%>
60
60
  </div>
61
61
  <%= yield %>
@@ -12,7 +12,7 @@ class HeadstartCreateUsers < ActiveRecord::Migration
12
12
  t.string :password_reset_token, :limit => 128
13
13
  t.string :confirmation_token, :limit => 128
14
14
  t.boolean :email_confirmed, :default => false, :null => false
15
- t.boolean :email_confirmation_sent_at, :datetime
15
+ t.datetime :email_confirmation_sent_at
16
16
 
17
17
  t.string :avatar_file_name
18
18
  t.string :avatar_content_type
@@ -40,6 +40,9 @@ module Headstart
40
40
  :controller => 'headstart/impersonations',
41
41
  :only => :index
42
42
 
43
+ map.resend_welcome_email 'resend_welcome_email',
44
+ :controller => 'headstart/users',
45
+ :action => 'resend_welcome_email'
43
46
  map.sign_up 'sign_up',
44
47
  :controller => 'headstart/users',
45
48
  :action => 'new'
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: headstart
3
3
  version: !ruby/object:Gem::Version
4
- hash: 63
4
+ hash: 59
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
- - 8
8
+ - 9
9
9
  - 0
10
- version: 0.8.0
10
+ version: 0.9.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Bran Burridge
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-10-11 00:00:00 -04:00
18
+ date: 2010-10-12 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency