Sha256: 359389a5ff3aca850aebeaea927619512dd2111f6eb93b98d50a8e579598eaf4

Contents?: true

Size: 619 Bytes

Versions: 14

Compression:

Stored size: 619 Bytes

Contents

<h1>User</h1>

<div class="btn-toolbar" role="toolbar">
  <% if can? :edit, @user %>
    <%= link_to "Edit", edit_user_path(@user), class: "btn btn-default" %>
  <% end %>
  <% if can? :destroy, @user %>
    <%= link_to "Destroy", user_path(@user), method: :delete, data: { confirm: 'Are you sure?' }, class: "btn btn-danger" %>
  <% end %>
</div>

<p>
  <strong>Super User:</strong>
  <%= @user.is_admin ? "Yes" : "No" %>
</p>

<p>
  <strong>Email:</strong>
  <%= @user.email %>
</p>

<p>
  <strong>Roles:</strong>
  <%= @user.user_roles.all.map { |role| role.role_class_name.demodulize.titleize }.to_sentence %>
</p>

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
think_feel_do_dashboard-1.2.1 app/views/think_feel_do_dashboard/users/show.html.erb
think_feel_do_dashboard-1.2.0.beta1 app/views/think_feel_do_dashboard/users/show.html.erb
think_feel_do_dashboard-1.1.21 app/views/think_feel_do_dashboard/users/show.html.erb
think_feel_do_dashboard-1.1.20 app/views/think_feel_do_dashboard/users/show.html.erb
think_feel_do_dashboard-1.1.19 app/views/think_feel_do_dashboard/users/show.html.erb
think_feel_do_dashboard-1.1.18 app/views/think_feel_do_dashboard/users/show.html.erb
think_feel_do_dashboard-1.1.17 app/views/think_feel_do_dashboard/users/show.html.erb
think_feel_do_dashboard-1.1.16 app/views/think_feel_do_dashboard/users/show.html.erb
think_feel_do_dashboard-1.1.15 app/views/think_feel_do_dashboard/users/show.html.erb
think_feel_do_dashboard-1.1.14 app/views/think_feel_do_dashboard/users/show.html.erb
think_feel_do_dashboard-1.1.13 app/views/think_feel_do_dashboard/users/show.html.erb
think_feel_do_dashboard-1.1.12 app/views/think_feel_do_dashboard/users/show.html.erb
think_feel_do_dashboard-1.1.11 app/views/think_feel_do_dashboard/users/show.html.erb
think_feel_do_dashboard-1.1.10 app/views/think_feel_do_dashboard/users/show.html.erb