diff --git a/app/views/profile_editor/_person.html.erb b/app/views/profile_editor/_person.html.erb index 604964d..0636f8a 100644 --- a/app/views/profile_editor/_person.html.erb +++ b/app/views/profile_editor/_person.html.erb @@ -18,6 +18,14 @@ <%= @plugins.dispatch(:profile_info_extra_contents).collect { |content| instance_exec(&content) }.join("") %> +
+ <%= label_tag("private_token", _("Private Token")) %> +
+ <%= text_field_tag("a", @profile.user.private_token, :size => 30) %> +
+
+ <%= link_to("Reset token", {:controller => :profile_editor, :action => :reset_private_token, :id => @profile.id}, :class => "button with-text") %> + <%= render :partial => 'person_form', :locals => {:f => f} %>

<%= _('Notification options') %>

diff --git a/app/views/profile_editor/_person_form.html.erb b/app/views/profile_editor/_person_form.html.erb index 0645334..19abfb0 100644 --- a/app/views/profile_editor/_person_form.html.erb +++ b/app/views/profile_editor/_person_form.html.erb @@ -1,14 +1,5 @@ <% @person ||= @profile %> -
- <%= label_tag("private_token", _("Private Token")) %> -
- <%= text_field_tag("a", @profile.user.private_token, :size => 30) %> -
-
- -<%= link_to("Reset token", {:controller => :profile_editor, :action => :reset_private_token, :id => @person.id}, :class => "button with-text") %> - <% optional_field(@person, 'nickname') do %> <%= f.text_field(:nickname, :maxlength => 16, :size => 30, :rel => _('Nickname')) %>
-- libgit2 0.21.2