Skip to content
Extraits de code Groupes Projets
Valider b52afdd9 rédigé par danielvincent's avatar danielvincent
Parcourir les fichiers

changed account and profile partials to better reflect styling changes

parent 31713d95
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -3,39 +3,40 @@ ...@@ -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
:confirm => "Are you sure?", :method => :delete, .description
:class => "button" 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,
:class => "button"
...@@ -3,56 +3,56 @@ ...@@ -3,56 +3,56 @@
-# 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
= f.fields_for :profile do |p| This info will be available to whomever you connect with on Diaspora.
%h3="#{t('.picture')}" = user.error_messages
%div#image_picker
= p.hidden_field :image_url, :value => (@profile.image_url if @profile.image_url), :id => 'image_url_field' = user.fields_for :profile do |profile|
%h4
- unless @photos.nil? || @photos.empty? Your name
- for photo in @photos = profile.text_field :first_name, :value => @profile.first_name, :placeholder => "First name"
- if @profile.image_url && @profile.image_url.include?(photo.url(:thumb_medium)) = profile.text_field :last_name, :value => @profile.last_name, :placeholder => "Last name"
%div.small_photo{:id => photo.url(:thumb_medium), :class=>'selected'}
= check_box_tag 'checked_photo', true, true %h4
= link_to image_tag(photo.url(:thumb_medium)), "#" Your birthday
- else %br
%div.small_photo{:id => photo.url(:thumb_medium)} = select_date
= check_box_tag 'checked_photo'
= link_to image_tag(photo.url(:thumb_medium)), "#" %h4
Your bio
- else = text_area_tag :bio, nil, :placeholder => "Fill me out"
=t('.you_dont_have_any_photos')
= link_to t('.albums'), albums_path(:aspect => 'all') %h4
=t('.page_to_upload_some') Your photo
%div#image_picker
=will_paginate @photos = profile.hidden_field :image_url, :value => (@profile.image_url if @profile.image_url), :id => 'image_url_field'
%br - unless @photos.nil? || @photos.empty?
- for photo in @photos
%h3="#{t('.info')}" - if @profile.image_url && @profile.image_url.include?(photo.url(:thumb_medium))
%div.small_photo{:id => photo.url(:thumb_medium), :class=>'selected'}
%p = check_box_tag 'checked_photo', true, true
%b = link_to image_tag(photo.url(:thumb_medium)), "#"
="#{t('.diaspora_username')}:" - else
= @user.diaspora_handle %div.small_photo{:id => photo.url(:thumb_medium)}
= check_box_tag 'checked_photo'
%p = link_to image_tag(photo.url(:thumb_medium)), "#"
= p.label :first_name
= p.text_field :first_name, :value => @profile.first_name - else
%p =t('.you_dont_have_any_photos')
= p.label :last_name = link_to t('.albums'), albums_path(:aspect => 'all')
= p.text_field :last_name, :value => @profile.last_name =t('.page_to_upload_some')
=will_paginate @photos
.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
...@@ -393,10 +393,6 @@ li.message ...@@ -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 ...@@ -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 ...@@ -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 ...@@ -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%
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter