Sha256: 0d51460bc1fbff5197b8c41e9cc06f80a69a05885e0fe5f51f3690df2bba06d3

Contents?: true

Size: 698 Bytes

Versions: 1

Compression:

Stored size: 698 Bytes

Contents

- b.user id: @user.dom_id do |o|
  - o.title @user.name

  - o.controls do |a|
    - a.add link_to(t(:edit), edit_profile_path(@user, format: :js)) if can?(:update_profile, @user) or (@user.anonymous? and user.roles.admin?)

  - o.avatar image_tag(Models::User.avatar_url(@user.name))

  - o.properties do
    - b.basic_list do
      = b.basic_list_item h("#{@user.first_name} #{@user.last_name}")

    - b.text do
      .todo= link_to(t(:update_password), update_password_form_identities_path) if owner? @user

    .todo about

    = render 'roles'

  - o.content do
    .todo
      - b.basic_list do
        = b.basic_list_item 'Latest Activity ...'
        = b.basic_list_item 'Public Items ...'

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rad_users-0.0.2 app/views/controllers/profiles/_user.html.haml