Commit bb282684 authored by Steffen van Bergerem's avatar Steffen van Bergerem Committed by Benjamin Neff

Only display invite link on contacts page if invitations are enabled

fixes #7340

closes #7342
parent 0627cdaf
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
* Make the \#newhere post public again [#7311](https://github.com/diaspora/diaspora/pull/7311) * Make the \#newhere post public again [#7311](https://github.com/diaspora/diaspora/pull/7311)
* Remove whitespace from author link [#7330](https://github.com/diaspora/diaspora/pull/7330) * Remove whitespace from author link [#7330](https://github.com/diaspora/diaspora/pull/7330)
* Fix autosize in modals [#7339](https://github.com/diaspora/diaspora/pull/7339) * Fix autosize in modals [#7339](https://github.com/diaspora/diaspora/pull/7339)
* Only display invite link on contacts page if invitations are enabled [#7342](https://github.com/diaspora/diaspora/pull/7342)
## Features ## Features
* Add support for [Liberapay](https://liberapay.com) donations [#7290](https://github.com/diaspora/diaspora/pull/7290) * Add support for [Liberapay](https://liberapay.com) donations [#7290](https://github.com/diaspora/diaspora/pull/7290)
......
...@@ -2,12 +2,16 @@ ...@@ -2,12 +2,16 @@
%h3 %h3
= t("contacts.index.title") = t("contacts.index.title")
= render "contacts/aspect_listings" = render "contacts/aspect_listings"
%hr - if AppConfig.settings.community_spotlight.enable? || AppConfig.settings.invitations.open?
- if AppConfig.settings.community_spotlight.enable? %hr
- if AppConfig.settings.community_spotlight.enable?
.text-center.spotlight .text-center.spotlight
= link_to t("contacts.spotlight.community_spotlight"), community_spotlight_path, class: "btn btn-link" = link_to t("contacts.spotlight.community_spotlight"),
.text-center community_spotlight_path,
#invitations-button.btn.btn-link{ "data-toggle" => "modal" } class: "btn btn-link"
- if AppConfig.settings.invitations.open?
.text-center
.btn.btn-link#invitations-button{"data-toggle" => "modal"}
= t("invitations.new.invite_someone_to_join") = t("invitations.new.invite_someone_to_join")
= render "shared/modal", = render "shared/modal",
path: new_user_invitation_path, path: new_user_invitation_path,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment