diff --git a/app/views/profiles/show.html.erb b/app/views/profiles/show.html.erb index cb2a634..7de2d10 100644 --- a/app/views/profiles/show.html.erb +++ b/app/views/profiles/show.html.erb @@ -1,4 +1,35 @@
-

Profiles#show

-

Find me in app/views/profiles/show.html.erb

+

Profile

+ +

Stats

+

+ Aufgegebene Druckaufträge + <%= current_user.jobs_as_costumer.count %> +

+

+ Abgebrochene Druckaufgräge + <%= current_user.jobs_as_costumer.canceled.count %> +

+ <% if current_user.operator? or current_user.admin? %> +

+ Gedruckte Druckaufträge + <%= current_user.jobs_as_operator.count %> +

+ <% end %> +

Actions

+
+ <%= link_to "Change password", edit_password_path %> +
+
+ <%= link_to "Change email address", edit_identity_email_path %> +
+

Access history

+
+ <%= link_to "Devices & Sessions", sessions_path %> +
+
+ <%= button_to "Log out", Current.session, method: :delete, class: "btn btn-primary" %>