diaspora/app/views/aspect_memberships/_aspect_membership_dropdown.mobile.haml
Augier 207b6c6153 Port to Bootstrap 3
correcting images display on stream sidebar

Corrections on profile page
2015-06-04 18:05:43 +02:00

13 lines
836 B
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

%div
%select{name: 'user_aspects', class: 'user_aspects form-control', 'data-person-id' => @person.id}
%option{value: 'list_cover', class: 'list_cover', disabled: 'true', selected: 'true'}
= t("add_contact")
- contact = current_user.contact_for(@person)
- current_user.aspects.each do |aspect|
- if contact.try(:in_aspect?, aspect)
- membership_id = contact.aspect_memberships.where(aspect_id: aspect.id).limit(1).pluck(:id).first
%option{value: aspect.id, 'data-name' => aspect.name, 'data-membership_id' => membership_id, class: 'selected'}
= "✓ #{t('shared.aspect_dropdown.mobile_row_checked', name: aspect.name)}"
- else
%option{value: aspect.id, 'data-name' => aspect.name}
= " #{t('shared.aspect_dropdown.mobile_row_unchecked', name: aspect.name)}"