diaspora/app/views/contacts/_header.html.haml
Dennis Schubert 862fa38f8b
Remove the JSXC/Prosody integration.
As per discussion on https://discourse.diasporafoundation.org/t/removing-diaspora-s-current-chat-integration/2718, nobody raised serious concerns or objections. Given future plans, we do not think having an unfinished implementation of something that likely will not get finished in the current form is worth it. So let's get rid of it.
2019-10-18 23:14:14 +02:00

40 lines
1.8 KiB
Text

.header.clearfix
- if @aspect
.aspect-controls.pull-right#aspect_controls
- if @aspect.contacts.size > 0 && @aspect.contacts.size < 20
= start_a_conversation_link(@aspect, @aspect.contacts.size)
= link_to @aspect, method: "delete", data: { confirm: t("aspects.edit.confirm_remove_aspect") }, class: "delete contacts_button", id: "delete_aspect" do
%i.entypo-trash.contacts-header-icon{title: t("delete")}
.pull-right.contact-list-search
%form#contact-search-form{role: "search", method: "get", action: "/search"}
= search_field_tag :q, "",
id: "contact_list_search",
class: "search-query form-control",
placeholder: t("contacts.index.user_search")
%h3
%span#aspect_name
= @aspect.name
%span#change_aspect_name.contacts_button
%i.entypo-pencil.contacts-header-icon{title: t("aspects.edit.rename")}
#aspect_name_form
= form_for @aspect, remote: true, html: { class: "form-inline edit_aspect"} do |aspect|
= aspect.text_field :name, class: "form-control", :maxlength => 20
= aspect.submit t('aspects.edit.update'), 'data-disable-with' => t('aspects.edit.updating'), class: "btn btn-default"
- else
.pull-right.contact-list-search
%form#contact-search-form{role: "search", method: "get", action: "/search"}
= search_field_tag :q, "",
id: "contact_list_search",
class: "search-query form-control",
placeholder: t("contacts.index.user_search")
%h3
- case params["set"]
- when "only_sharing"
= t('contacts.index.only_sharing_with_me')
- when "all"
= t('contacts.index.all_contacts')
- else
= t('contacts.index.my_contacts')