changed account and profile partials to better reflect styling changes

This commit is contained in:
danielvincent 2010-10-15 15:04:59 -07:00
parent 31713d9597
commit b52afdd93c
3 changed files with 69 additions and 74 deletions

View file

@ -3,39 +3,40 @@
-# the COPYRIGHT file. -# the COPYRIGHT file.
%h2 Account %h3
Your Account
.description
Connect Diaspora to publish to other applications, export your data, or close your account.
= link_to "invite friends", new_user_invitation_path(current_user) = form_for @user do |user|
%h4
Change Password
= user.error_messages
%br = user.password_field :password, :placeholder => "New password"
%br = user.password_field :password_confirmation, :placeholder => "Password confirmation"
%br
%h3 Change Password
= form_for @user do |f|
= f.error_messages
%p
= f.label :password, "New Password"
= f.password_field :password
%p
= f.label :password_confirmation
= f.password_field :password_confirmation
.submit_block .submit_block
= link_to "Cancel", edit_user_path(current_user) = link_to "Cancel", edit_user_path(current_user)
or or
= f.submit 'Change password' = user.submit 'Change password'
%h3 Export Data %h4
= link_to "download my xml", users_export_path, :class => "button" Export Data
= link_to "download my photos", users_export_photos_path, :class => "button" %br
%br
= link_to "Download my account", users_export_path, :class => "button"
= link_to "Download my photos", users_export_photos_path, :class => "button"
%br %br
%br %br
%br %br
%h3 Close Account %h4
= link_to "Close Account", current_user, Close Account
.description
Closing your account will delete all of your posts, friends, and settings. You will be removed from this server.
%br
= link_to "Close Account", current_user,
:confirm => "Are you sure?", :method => :delete, :confirm => "Are you sure?", :method => :delete,
:class => "button" :class => "button"

View file

@ -3,15 +3,33 @@
-# the COPYRIGHT file. -# the COPYRIGHT file.
%h2 Profile = form_for @user do |user|
= form_for @user do |f| %h3
= f.error_messages Your Profile
.description
This info will be available to whomever you connect with on Diaspora.
= f.fields_for :profile do |p| = user.error_messages
%h3="#{t('.picture')}" = user.fields_for :profile do |profile|
%h4
Your name
= profile.text_field :first_name, :value => @profile.first_name, :placeholder => "First name"
= profile.text_field :last_name, :value => @profile.last_name, :placeholder => "Last name"
%h4
Your birthday
%br
= select_date
%h4
Your bio
= text_area_tag :bio, nil, :placeholder => "Fill me out"
%h4
Your photo
%div#image_picker %div#image_picker
= p.hidden_field :image_url, :value => (@profile.image_url if @profile.image_url), :id => 'image_url_field' = profile.hidden_field :image_url, :value => (@profile.image_url if @profile.image_url), :id => 'image_url_field'
- unless @photos.nil? || @photos.empty? - unless @photos.nil? || @photos.empty?
- for photo in @photos - for photo in @photos
@ -31,28 +49,10 @@
=will_paginate @photos =will_paginate @photos
%br
%h3="#{t('.info')}"
%p
%b
="#{t('.diaspora_username')}:"
= @user.diaspora_handle
%p
= p.label :first_name
= p.text_field :first_name, :value => @profile.first_name
%p
= p.label :last_name
= p.text_field :last_name, :value => @profile.last_name
.submit_block .submit_block
= link_to t('.cancel'), edit_user_path(current_user) = link_to t('.cancel'), edit_user_path(current_user)
= t('.or') = t('.or')
= f.submit t('.update_profile') = user.submit t('.update_profile')
#content_bottom
.back
= link_to "⇧ #{t('.home')}", root_path

View file

@ -393,10 +393,6 @@ li.message
form form
:position relative :position relative
:font
:size 120%
:margin 1em
:left 0em
#user_name #user_name
:margin :margin
@ -615,8 +611,6 @@ textarea
.submit_block .submit_block
:text :text
:align right :align right
:font
:size 12px
form p form p
:position relative :position relative
@ -694,6 +688,8 @@ label
:display inline :display inline
#image_picker #image_picker
:margin
:top 5px
.small_photo .small_photo
:height 100px :height 100px
:position relative :position relative
@ -1134,16 +1130,14 @@ ul#settings_nav
:size 80px :size 80px
:display inline-block :display inline-block
h1,h2,h3 h1,h2,h3,h4
.description .description
:font :font
:size 70% :size 70%
:weight 100 :weight 100
:color #ccc :color #ccc
:margin
:top 5px
h2,h3 h2,h3,h4
.description .description
:font :font
:size 80% :size 80%