app/views/contacts/index.html.erb in social_stream-base-2.2.0 vs app/views/contacts/index.html.erb in social_stream-base-2.2.1
- old
+ new
@@ -18,13 +18,14 @@
<% 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" %>
- <% if type == :group %>
+ <% if user_signed_in? && type == :group %>
<%= link_to t('group.new.link'), new_group_path, class: 'new_group-modal-link', 'data-toggle' => 'modal' %>
- <%= render partial: 'groups/new_modal' %>
+ <%= render partial: 'groups/new_modal',
+ locals: { resource_class: Group } %>
<% end %>
<div class="contact-list">
<% if current_contact_section?(type) %>
<% if @contacts.any? %>