DG MS; fixed a view bug in user edit page. page also displays diaspora username .
This commit is contained in:
parent
36730978ca
commit
edae8f1e66
3 changed files with 15 additions and 7 deletions
|
|
@ -261,6 +261,10 @@ class User
|
||||||
terse
|
terse
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def diaspora_handle
|
||||||
|
"#{self.username}@#{self.terse_url}"
|
||||||
|
end
|
||||||
|
|
||||||
def do_bad_things
|
def do_bad_things
|
||||||
self.password_confirmation = self.password
|
self.password_confirmation = self.password
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -5,9 +5,12 @@
|
||||||
= form_for Request.new do |f|
|
= form_for Request.new do |f|
|
||||||
= f.error_messages
|
= f.error_messages
|
||||||
|
|
||||||
Enter a Diaspora URL, Diaspora username, or random email address:
|
Enter a Diaspora username:
|
||||||
|
%br
|
||||||
|
%i= "Your Diaspora username is: #{current_user.diaspora_handle}"
|
||||||
|
|
||||||
%p
|
%p
|
||||||
= f.label :destination_url, "Your Diaspora URL is: #{current_user.username}@#{request.host}"
|
= f.label :destination_url, "Friend's username"
|
||||||
= f.text_field :destination_url
|
= f.text_field :destination_url
|
||||||
= f.hidden_field :group_id, :value => @group.id
|
= f.hidden_field :group_id, :value => @group.id
|
||||||
= f.submit
|
= f.submit
|
||||||
|
|
|
||||||
|
|
@ -25,8 +25,13 @@
|
||||||
= link_to image_tag(photo.url(:thumb_medium)), "#"
|
= link_to image_tag(photo.url(:thumb_medium)), "#"
|
||||||
=will_paginate @photos
|
=will_paginate @photos
|
||||||
|
|
||||||
|
|
||||||
%h3 Info
|
%h3 Info
|
||||||
|
|
||||||
|
%p
|
||||||
|
%b
|
||||||
|
DIASPORA USERNAME:
|
||||||
|
= @user.diaspora_handle
|
||||||
|
|
||||||
%p
|
%p
|
||||||
= p.label :first_name
|
= p.label :first_name
|
||||||
= p.text_field :first_name, :value => @profile.first_name
|
= p.text_field :first_name, :value => @profile.first_name
|
||||||
|
|
@ -38,10 +43,6 @@
|
||||||
= f.label :email
|
= f.label :email
|
||||||
= f.text_field :email
|
= f.text_field :email
|
||||||
|
|
||||||
%p
|
|
||||||
= f.label :url
|
|
||||||
= f.text_field :url
|
|
||||||
|
|
||||||
#submit_block
|
#submit_block
|
||||||
= link_to "Cancel", root_path
|
= link_to "Cancel", root_path
|
||||||
or
|
or
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue