diff options
Diffstat (limited to 'app/views/users/edit.html.erb')
-rw-r--r-- | app/views/users/edit.html.erb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/app/views/users/edit.html.erb b/app/views/users/edit.html.erb index 24bdba8..97229de 100644 --- a/app/views/users/edit.html.erb +++ b/app/views/users/edit.html.erb @@ -56,10 +56,8 @@ </tr> <tr> <td>Mastodon</td> - <td style="display:inline;padding:0px"> - <% mstdn_array = @user.mastodon.split("@") if @user.mastodon %> - <%= f.text_field :mastodon, value: (mstdn_array[0] if mstdn_array), placeholder: "Mastodon username", disabled: !(@user.is?(current_user) && confirmed? || (mod? && current_user.role >= @user.role)), style: "width:49%;float:left;margin-right:2%" %> - <%= f.text_field :mastodon_instance, value: (mstdn_array[1] if mstdn_array), placeholder: "Mastodon instance", disabled: !(@user.is?(current_user) && confirmed? || (mod? && current_user.role >= @user.role)), style: "width:49%" %> + <td> + <%= f.text_field :mastodon, placeholder: "Mastodon username", disabled: !(@user.is?(current_user) && confirmed? || (mod? && current_user.role >= @user.role)) %> </td> </tr> <tr> |