diaspora/app/views/contacts/_sidebar.html.haml
2016-02-14 00:12:11 +01:00

21 lines
723 B
Text

.sidebar-header.clearfix
%h3
= t("contacts.index.title")
= render "contacts/aspect_listings"
%hr
- if AppConfig.settings.community_spotlight.enable?
.text-center.spotlight
= link_to t("contacts.spotlight.community_spotlight"), community_spotlight_path, class: "btn btn-link"
.text-center
#invitations-button.btn.btn-link{ "data-toggle" => "modal" }
= t("invitations.new.invite_someone_to_join")
= render "shared/modal",
path: new_user_invitation_path,
id: "invitationsModal",
title: t("invitations.new.invite_someone_to_join")
-# This will have to be extracte in a JS view
:javascript
$("#invitations-button").click(function(){
app.helpers.showModal("#invitationsModal");
});