docbrown/app/views/admin/users/show.html.erb
Julianna Tetreault aa44786ebd
Remove admin_member_view Feature Flag-Related Conditionals (#16764)
* Removes admin_member_view feature flags and refactors  conditionals

* Removes unused admin/users/_email_tools partial and user_email_tools_spec

* Actually remove the admin/user_email_tools_spec this time

* Removes the edit route from admin.rb users

* Adds a DUS (and spec) to disable and remove admin_member_view flag

* Fixes admin/users_spec.rb failures by updating spec with Member Detail changes

* Fixes spec failures within admin_bans_or_warns_user_spec.rb

* Refactors Admin::UsersController#credit_params due to failing specs

* Removes last traces of edit_admin_user_path and fixes buttons, specs, etc.
2022-03-10 08:29:05 -07:00

57 lines
1.8 KiB
Text

<%= render "admin/users/show/profile" %>
<%= render "admin/users/show/tabs" %>
<% if @current_tab == "overview" %>
<div class="crayons-card p-3 s:p-4 m:p-7">
<%= render "admin/users/show/overview/stats" if @user.registered %>
<div class="l:grid gap-8 grid-cols-2">
<div>
<section class="mb-7">
<%= render "admin/users/show/overview/roles" %>
</section>
<section class="mb-7">
<%= render "admin/users/show/overview/tag_moderation" %>
</section>
</div>
<div>
<section class="mb-7">
<%= render "admin/users/show/overview/organizations" %>
</section>
<section class="mb-7">
<%= render "admin/users/show/overview/credits" %>
</section>
</div>
</div>
</div>
<% elsif @current_tab == "notes" %>
<section class="flex flex-col m:flex-row gap-4">
<div class="crayons-card p-3 s:p-4 m:p-7 flex-1">
<%= render "admin/users/show/notes/form" %>
</div>
<div class="crayons-card p-3 s:p-4 m:p-7 flex-1">
<%= render "admin/users/show/notes/index" %>
</div>
</section>
<% elsif @current_tab == "emails" %>
<%= render "admin/users/show/emails/verification" %>
<section class="flex flex-col m:flex-row gap-4">
<div class="crayons-card p-3 s:p-4 m:p-7 flex-1">
<%= render "admin/users/show/emails/form" %>
</div>
<div class="crayons-card p-3 s:p-4 m:p-7 flex-1">
<%= render "admin/users/show/emails/index" %>
</div>
</section>
<% elsif @current_tab == "reports" %>
<section class="crayons-card p-3 s:p-4 m:p-7">
<%= render "admin/users/show/reports/index" %>
</section>
<% else @current_tab == "flags" %>
<section class="crayons-card p-3 s:p-4 m:p-7">
<%= render "admin/users/show/flags/index" %>
</section>
<% end %>