diff options
author | Logan Fick <logaldeveloper@protonmail.com> | 2017-10-15 17:07:51 -0400 |
---|---|---|
committer | Logan Fick <logaldeveloper@protonmail.com> | 2017-10-15 17:07:51 -0400 |
commit | e0ca82324573a4340b4bf29e39fbd6e6fbcfab92 (patch) | |
tree | 482a4a40fd46b0a6092f70c50522583cecafff38 /app/views/users/edit.html.erb | |
parent | b07830fc7a84f683c7e19fc6d09e92222883a66d (diff) |
Combined Mastodon username and instance fields into one field.mastodon
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> |