Added mastodon and mastodon_instance settings to user profiles

This commit is contained in:
MrYummy
2017-07-07 05:33:39 +02:00
parent 2819989b72
commit 668c9a2960
6 changed files with 65 additions and 40 deletions

View File

@@ -54,6 +54,13 @@
<%= f.select :skype_public, [["Staff only", false], ["All users", true]], {}, { disabled: !can_edit? } %>
</td>
</tr>
<tr>
<td>Mastodon</td>
<td style="display:inline;padding:0px">
<%= f.text_field :mastodon, 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, placeholder: "Mastodon instance", disabled: !(@user.is?(current_user) && confirmed? || (mod? && current_user.role >= @user.role)), style: "width:49%" %>
</td>
</tr>
<tr>
<td>YouTube Channel ID</td>
<td>