Commit ef7c2df9366c906d61b4c7b06d205d6b2cf8fd52
Committed by
Luciano Prestes
1 parent
7863adab
Exists in
staging
and in
41 other branches
Fix broken functional tests when dont have user.
Signed-off-by: Arthur Del Esposte <arthurmde@gmail.com> Signed-off-by: Luciano Prestes Cavalcanti <lucianopcbr@gmail.com> Signed-off-by: Marcos Ronaldo <marcos.rpj2@gmail.com> Signed-off-by: Thiago Ribeiro <thiagitosouza@gmail.com>
Showing
2 changed files
with
8 additions
and
9 deletions
Show diff stats
app/views/profile_editor/_person.html.erb
... | ... | @@ -18,6 +18,14 @@ |
18 | 18 | |
19 | 19 | <%= @plugins.dispatch(:profile_info_extra_contents).collect { |content| instance_exec(&content) }.join("") %> |
20 | 20 | |
21 | + <div class="formfieldline"> | |
22 | + <%= label_tag("private_token", _("Private Token")) %> | |
23 | + <div class="formfield type-text"> | |
24 | + <%= text_field_tag("a", @profile.user.private_token, :size => 30) %> | |
25 | + </div> | |
26 | + </div> | |
27 | + <%= link_to("Reset token", {:controller => :profile_editor, :action => :reset_private_token, :id => @profile.id}, :class => "button with-text") %> | |
28 | + | |
21 | 29 | <%= render :partial => 'person_form', :locals => {:f => f} %> |
22 | 30 | |
23 | 31 | <h2><%= _('Notification options') %></h2> | ... | ... |
app/views/profile_editor/_person_form.html.erb
1 | 1 | <% @person ||= @profile %> |
2 | 2 | |
3 | -<div class="formfieldline"> | |
4 | - <%= label_tag("private_token", _("Private Token")) %> | |
5 | - <div class="formfield type-text"> | |
6 | - <%= text_field_tag("a", @profile.user.private_token, :size => 30) %> | |
7 | - </div> | |
8 | -</div> | |
9 | - | |
10 | -<%= link_to("Reset token", {:controller => :profile_editor, :action => :reset_private_token, :id => @person.id}, :class => "button with-text") %> | |
11 | - | |
12 | 3 | <% optional_field(@person, 'nickname') do %> |
13 | 4 | <%= f.text_field(:nickname, :maxlength => 16, :size => 30, :rel => _('Nickname')) %> |
14 | 5 | <div> | ... | ... |