added success to getting_started. fixed birthday selectors to display years down to 1930. made buttons rounder. all save and continue buttons step forward.

This commit is contained in:
danielvincent 2010-10-26 18:35:14 -07:00
parent 385e1673ab
commit f1fbb68fd8
11 changed files with 85 additions and 33 deletions

View file

@ -44,7 +44,12 @@ class RequestsController < ApplicationController
else else
raise e raise e
end end
respond_with :location => aspect
if params[:getting_started]
redirect_to getting_started_path(params[:getting_started])
else
respond_with :location => aspect
end
return return
end end

View file

@ -31,7 +31,6 @@ class ServicesController < ApplicationController
:uid => auth['uid']) :uid => auth['uid'])
end end
flash[:notice] = "Authentication successful." flash[:notice] = "Authentication successful."
redirect_to services_url redirect_to services_url
end end

View file

@ -61,8 +61,9 @@ class UsersController < ApplicationController
@person = @user.person @person = @user.person
@profile = current_user.profile @profile = current_user.profile
@photos = current_user.visible_posts(:person_id => current_user.person.id, :_type => 'Photo').paginate :page => params[:page], :order => 'created_at DESC' @photos = current_user.visible_posts(:person_id => current_user.person.id, :_type => 'Photo').paginate :page => params[:page], :order => 'created_at DESC'
@services = current_user.services
if params[:id].to_i < 4 if params[:id].to_i < 5
render "users/getting_started/#{params[:id]}" render "users/getting_started/#{params[:id]}"
else else
render "users/getting_started/1" render "users/getting_started/1"

View file

@ -29,7 +29,7 @@
%h4 %h4
Your birthday Your birthday
%br %br
= select_date Time.now, :order => [:month, :day, :year] = date_select person, :birthday, :order => [:month, :day, :year], :start_year => 1930, :end_year => Time.now.year
%h4 %h4
Your bio Your bio

View file

@ -11,10 +11,6 @@
- if @friends_not_in_aspect - if @friends_not_in_aspect
= render('shared/add_friend_dropdown', :aspect => aspect, :friends => @friends_not_in_aspect) = render('shared/add_friend_dropdown', :aspect => aspect, :friends => @friends_not_in_aspect)
= form_for Request.new do |fr_request| = form_for Request.new do |fr_request|
= fr_request.error_messages = fr_request.error_messages
@ -26,5 +22,9 @@
= fr_request.label :destination_url, t(".friends_username") = fr_request.label :destination_url, t(".friends_username")
= fr_request.text_field :destination_url = fr_request.text_field :destination_url
= fr_request.hidden_field :aspect_id, :value => aspect.id = fr_request.hidden_field :aspect_id, :value => aspect.id
- if defined?(getting_started)
= hidden_field_tag :getting_started, getting_started
= fr_request.submit = fr_request.submit

View file

@ -36,7 +36,7 @@
%h4 %h4
Your birthday Your birthday
%br %br
= select_date Time.now, :order => [:month, :day, :year] = date_select person, :birthday, :order => [:month, :day, :year], :start_year => 1930, :end_year => Time.now.year
%h4 %h4
Your bio Your bio
@ -71,3 +71,6 @@
.submit_block .submit_block
= person.submit "Save and continue →" = person.submit "Save and continue →"
/.bottom_notification
/ .blue_button
/ SKIP

View file

@ -34,13 +34,13 @@
.floating .floating
%h3 %h3
Your aspects Your aspects
%p .description
Diaspora aspects are mappings of your real-life aspects. Diaspora aspects are mappings of your real-life aspects. You can manage these later by clicking the manage tab on the top right.
%h4 %h4
Aspect name Aspect name
- form_for Aspect.new, :remote => true do |aspect| - form_for Aspect.new, :remote => true do |aspect|
= aspect.text_field :name = aspect.text_field :name, :style => "display:inline;"
= aspect.submit "Add" = aspect.submit "Add"
%ul.aspects %ul.aspects
@ -55,7 +55,7 @@
.fancybox_content .fancybox_content
#add_request_pane #add_request_pane
= render "requests/new_request", :aspect => aspect = render "requests/new_request", :aspect => aspect, :getting_started => 2
= link_to "x", aspect_path(aspect), :confirm => "are you sure?", :method => :delete, :remote => true, :class => "delete right" = link_to "x", aspect_path(aspect), :confirm => "are you sure?", :method => :delete, :remote => true, :class => "delete right"

View file

@ -6,7 +6,7 @@
.span-8.append-1.last .span-8.append-1.last
%h1{:style => "text-align:right;"} %h1{:style => "text-align:right;"}
= "Welcome!" = "Welcome to Diaspora!"
.description .description
Do the stuff below to further complete some things. Do the stuff below to further complete some things.
@ -20,19 +20,18 @@
.span-15.last .span-15.last
.floating .floating
%h3 %h3 Your services
Your friends %ul#stream
.description - for service in @services
Find your friends on Diaspora, Facebook, or send them an invite via email. %h3
%b= service.provider
logged in as
%b
= service.nickname
= link_to "disconnect", service, :confirm => "disconnect #{service.provider}?", :method => :delete
%h4 %h4= link_to "Connect to twitter", "/auth/twitter" if SERVICES['twitter']['consumer_key']!= ""
On Diaspora %h4= link_to "Connect to facebook", "/auth/facebook" if SERVICES['facebook']['app_id'] !=""
= text_field_tag :diaspora_handle, nil, :placeholder => "Diaspora handle"
%h4 .submit_block
On Facebook = link_to "Save and continue →", getting_started_path(4), :class => "button"
= text_field_tag :facebook_handle, nil, :placeholder => "Name"
%h4
Invite
= text_field_tag :email, nil, :placeholder => "Email", :type => "email"

View file

@ -0,0 +1,27 @@
-# Copyright (c) 2010, Diaspora Inc. This file is
-# licensed under the Affero General Public License version 3 or later. See
-# the COPYRIGHT file.
.span-8.append-1.last
%h1{:style => "text-align:right;"}
= "Welcome to Diaspora!"
.description
Do the stuff below to further complete some things.
%h3{:style => "text-align:right;"}
= link_to "Edit your profile", getting_started_path(1)
%br
= link_to "Define your aspects", getting_started_path(2)
%br
= link_to "Connect your services", getting_started_path(3)
%br
.span-15.last
.floating
%h1
You're all set up!
%h3
= link_to "Continue on to your everyone page, an overview of all of your aspects.", root_path

View file

@ -1300,10 +1300,28 @@ ul.aspects
.floating .floating
:padding 12px :padding 12px
:background :background
:color rgb(254,254,254) :color rgb(255,255,255)
:-webkit-box-shadow 0 1px 3px #333 :-webkit-box-shadow 0 1px 3px #333
:border-radius 2px :border-radius 2px
:border :border
:bottom 1px solid #ccc :bottom 1px solid #ccc
:top 1px solid #fff :top 1px solid #fff
.bottom_notification
:position fixed
:bottom 0
:left 0
:width 100%
:background
:color rgba(16,127,201,0.8)
:text
:align center
:font
:size 16px
:weight bold
:color #fff
:padding 21px

View file

@ -10,7 +10,7 @@
:display inline :display inline
:padding 4px :padding 5px
:font-size 12px :font-size 12px
:line-height 100% :line-height 100%
@ -27,9 +27,9 @@
:left 1px solid #ccc :left 1px solid #ccc
:right 1px solid #ccc :right 1px solid #ccc
:border-radius 3px :border-radius 8px
:-moz-border-radius 3px :-moz-border-radius 8px
:-webkit-border-radius 3px :-webkit-border-radius 8px
:cursor pointer :cursor pointer