Updated profile show
This commit is contained in:
@@ -1,4 +1,35 @@
|
||||
<div>
|
||||
<h1 class="font-bold text-4xl">Profiles#show</h1>
|
||||
<p>Find me in app/views/profiles/show.html.erb</p>
|
||||
<h1 class="font-bold text-4xl p-1 border-b-2 border-hsrm-red">Profile</h1>
|
||||
<ul>
|
||||
<li>Name: <%= current_user.name %></li>
|
||||
<li>E-Mail: <%= current_user.email %></li>
|
||||
</ul>
|
||||
<h2 class="text-lg font-bold p-1 border-b-2 border-hsrm-red">Stats</h2>
|
||||
<p>
|
||||
Aufgegebene Druckaufträge
|
||||
<%= current_user.jobs_as_costumer.count %>
|
||||
</p>
|
||||
<p>
|
||||
Abgebrochene Druckaufgräge
|
||||
<%= current_user.jobs_as_costumer.canceled.count %>
|
||||
</p>
|
||||
<% if current_user.operator? or current_user.admin? %>
|
||||
<p>
|
||||
Gedruckte Druckaufträge
|
||||
<%= current_user.jobs_as_operator.count %>
|
||||
</p>
|
||||
<% end %>
|
||||
<h2 class="text-lg font-bold p-1 border-b-2 border-hsrm-red">Actions</h2>
|
||||
<div>
|
||||
<%= link_to "Change password", edit_password_path %>
|
||||
</div>
|
||||
<div>
|
||||
<%= link_to "Change email address", edit_identity_email_path %>
|
||||
</div>
|
||||
<h2 class="text-lg font-bold p-1 border-b-2 border-hsrm-red">Access history</h2>
|
||||
<div>
|
||||
<%= link_to "Devices & Sessions", sessions_path %>
|
||||
</div>
|
||||
<br>
|
||||
<%= button_to "Log out", Current.session, method: :delete, class: "btn btn-primary" %>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user