removing invite partial, with a switch, and updated app_config.yml.example
This commit is contained in:
parent
a507927bb3
commit
80f8e4d29a
3 changed files with 14 additions and 10 deletions
|
|
@ -1,10 +1,13 @@
|
|||
-if invites > 0
|
||||
- if APP_CONFIG[:invites_off]
|
||||
= t('.invites_closed')
|
||||
-else
|
||||
-if invites > 0
|
||||
= link_to t('.invite_someone'), "#invite_user_pane", :class => "invite_user_button", :title => t('.invite_someone')
|
||||
= t('.invitations_left', :count => invites)
|
||||
%br
|
||||
.yo{ :style => "display:none;"}
|
||||
#invite_user_pane
|
||||
= render "invitations/new"
|
||||
- else
|
||||
- else
|
||||
= t('.dont_have_now')
|
||||
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@ default:
|
|||
#cloudfiles username and api-key, used for backups
|
||||
cloudfiles_username: 'example'
|
||||
cloudfiles_api_key: 'abc123'
|
||||
|
||||
invites_off: true
|
||||
|
||||
development:
|
||||
|
||||
|
|
|
|||
|
|
@ -107,6 +107,7 @@ en:
|
|||
invite_someone: "Invite someone"
|
||||
invitations_left: "(%{count} left)"
|
||||
dont_have_now: "You don't have any right now, but more invites are coming soon!"
|
||||
invites_closed: "Invites are currently closed on this Diaspora seed"
|
||||
reshare:
|
||||
reshare: "Reshare"
|
||||
public_explain:
|
||||
|
|
|
|||
Loading…
Reference in a new issue