<%= provide(:search_path, admin_users_path) %>
<%= render partial: "my/shared/my_nav" %>

<%= link_to @user.name, profile_path(@user) %> (edit)

<%= render partial: 'edit_modal', locals: { user: @user } %>
<%= avatar_for(@user) %>

name: <%= link_to @user.name, admin_user_path(@user) %>

email: <%= mail_to @user.email %>

address: <%= mail_to @user.full_address %>

city: <%= mail_to @user.city %>

website: <%= link_to @user.website, @user.website if @user.website %>

twitter: <%= @user.twitter %>

facebook: <%= link_to @user.facebook, @user.facebook if @user.facebook %>

reset password token: <%= @user.reset_password_token %>

reset password sent at: <%= @user.reset_password_sent_at %>

created at: <%= @user.created_at %>

updated at: <%= @user.updated_at %>

sessions

<%- @user.user_sessions.each do |user_session| %> <% end %>
ip user agent accessed at revoked at
<%= link_to user_session.user.name, admin_user_path(user_session.user) %> <%= user_session.ip %> <%= user_session.user_agent %> <%= time_ago_in_words(user_session.accessed_at) %> <%= time_ago_in_words(user_session.revoked_at) if user_session.revoked_at %> <%= link_to "Revoke", admin_session_path(user_session), method: :delete, class: 'btn btn-danger' %>

cakes

<%- @user.creations.each_with_index do |creation, index| %> <% cache creation do %> <% end %> <% end %>
Name Description
<%= link_to cake_path(creation) do %> <%= image_tag creation.primary_image.url_for(:thumb), class: 'thumbnail', style: "width:65px;" %> <% end %> <%= creation.name %> <%= creation.story %> <%= creation.tags.map(&:name) if creation.tags.any? %>

tutorials

<%- @user.tutorials.each_with_index do |tutorial, index| %> <% end %>
Heading Url
<%= link_to tutorial.heading, tutorial_path(tutorial) %> <%= tutorial.description %>