Sha256: 77124a9ddbeddff53ac30600f90da21a9107e5e5b62b11ec39617304b5fe9d3e

Contents?: true

Size: 1.6 KB

Versions: 4

Compression:

Stored size: 1.6 KB

Contents

<section id="contacts">
  <%= render partial: 'toolbar/profile', locals: { :subject => profile_or_current_subject } %>

  <div class="contacts tabbable">
    <ul class="nav nav-tabs">
      <% profile_or_current_subject.class.contact_index_models.each do |type| %>
        <li class="<%= 'active' if current_contact_section?(type) %>">
          <a data-toggle="tab" href="#<%= type %>" data-path="<%= contacts_path %>"<%= raw ' data-loaded="true"' if current_contact_section?(type) %>><%= t "#{ type }.title", count: :other %></a>
        </li>
      <% end %>
    </ul>

    <div class="tab-content">

      <div id="contacts-loading">
        <%= render partial: 'layouts/loading' %>
      </div>
    
      <% profile_or_current_subject.class.contact_index_models.each do |type| %>
        <div id="<%= type %>" class="tab-pane <%= 'active' if current_contact_section?(type) %>">
          <%= text_field_tag "contact-filter-#{ type }", (current_contact_section?(type) ? params[:q] : ""), class: "pull-right contact-filter", placeholder: "filter", autocomplete: "off" %>

          <div class="contact-list">
            <% if current_contact_section?(type) %>
              <% if @contacts.any? %>
                <%= render @contacts %>
              <% else %>
                <%= raw t("contact.empty", explore: explore_path) %>
              <% end %>
            <% else %>
              <%= render partial: 'layouts/loading' %>
            <% end %>
          </div>
        </div>
      <% end %>
    </div>
  </div>

  <%= javascript_tag do %>
    $(function() {
      SocialStream.Contact.index();
    });
  <% end %>
</section>

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
social_stream-2.0.0.beta2 base/app/views/contacts/index.html.erb
social_stream-base-2.0.0.beta2 app/views/contacts/index.html.erb
social_stream-2.0.0.beta1 base/app/views/contacts/index.html.erb
social_stream-base-2.0.0.beta1 app/views/contacts/index.html.erb