removing invite partial, with a switch, and updated app_config.yml.example

This commit is contained in:
maxwell 2010-11-26 16:10:42 -08:00
parent a507927bb3
commit 80f8e4d29a
3 changed files with 14 additions and 10 deletions

View file

@ -1,10 +1,13 @@
-if invites > 0 - if APP_CONFIG[:invites_off]
= link_to t('.invite_someone'), "#invite_user_pane", :class => "invite_user_button", :title => t('.invite_someone') = t('.invites_closed')
= t('.invitations_left', :count => invites) -else
%br -if invites > 0
.yo{ :style => "display:none;"} = link_to t('.invite_someone'), "#invite_user_pane", :class => "invite_user_button", :title => t('.invite_someone')
#invite_user_pane = t('.invitations_left', :count => invites)
= render "invitations/new" %br
- else .yo{ :style => "display:none;"}
= t('.dont_have_now') #invite_user_pane
= render "invitations/new"
- else
= t('.dont_have_now')

View file

@ -72,7 +72,7 @@ default:
#cloudfiles username and api-key, used for backups #cloudfiles username and api-key, used for backups
cloudfiles_username: 'example' cloudfiles_username: 'example'
cloudfiles_api_key: 'abc123' cloudfiles_api_key: 'abc123'
invites_off: true
development: development:

View file

@ -107,6 +107,7 @@ en:
invite_someone: "Invite someone" invite_someone: "Invite someone"
invitations_left: "(%{count} left)" invitations_left: "(%{count} left)"
dont_have_now: "You don't have any right now, but more invites are coming soon!" 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: "Reshare" reshare: "Reshare"
public_explain: public_explain: