app/views/activities/_new.html.erb in social_stream-base-0.9.19 vs app/views/activities/_new.html.erb in social_stream-base-0.9.20

- old
+ new

@@ -1,5 +1,6 @@ + <% if can? :create, new_post(receiver) %> <div id="activities_header" class="content_size"> <% SocialStream.activity_forms.each do |element| %> <%= render :partial => element.to_s.pluralize+'/new_activity', :locals => { @@ -22,15 +23,15 @@ <% end %> </div> <div id="securities"> <% if current_subject == receiver %> - <%= select_tag :_relation_ids, options_for_select(current_subject.activity_relations(receiver).sort.map{ |r| [ r.name, r.id ] }), :id => 'security', :multiple => true, :title => t("activity.privacy.contacts.#{ receiver.class.to_s.underscore }", :receiver => receiver.name) %> + <%= select_tag :_relation_ids, options_for_select(current_subject.activity_relations(receiver).sort.map{ |r| [ r.name, r.id ] }), :id => 'security', :multiple => true, :title => t("activity.privacy.myself.contacts.#{ receiver.class.to_s.underscore }") %> <% else %> <div id="security_chzn" class="chzn-container chzn-container-multi"> <ul class="chzn-choices"> <li class="search-field"> - <input type="text" value="<%= t "activity.privacy.contacts.#{ receiver.class.to_s.underscore }", :receiver => receiver.name %>" class="default" disabled="disabled"> + <input type="text" value="<%= t "activity.privacy.outside.contacts.#{ receiver.class.to_s.underscore }", :receiver => truncate_name(receiver.name,:length => 15) %>" class="default" disabled="disabled"> </li> </ul> </div> <% end %> </div>