Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorBenjamin Neff <benjamin@coding4coffee.ch>2016-08-12 23:50:06 +0300
committerBenjamin Neff <benjamin@coding4coffee.ch>2016-08-13 14:51:02 +0300
commit3b1a5c6bdf7324da8e51d4ae7e817039d0e623d9 (patch)
tree637899c437c1d2604a2b9f9f74405f81d46291ea /app/views
parente749bbef1524237b053949aa9577ba1cf62a0eef (diff)
don't reduce number of invites when registration is open
otherwise the counter goes into negative ;) also reset all negative counters
Diffstat (limited to 'app/views')
-rw-r--r--app/views/invitations/new.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/invitations/new.html.haml b/app/views/invitations/new.html.haml
index 43a360397..187a6fa12 100644
--- a/app/views/invitations/new.html.haml
+++ b/app/views/invitations/new.html.haml
@@ -1,7 +1,7 @@
#paste_link
= t('.paste_link')
%span#codes_left
- = '(' + t('.codes_left', count: @invite_code.count) + ')'
+ = "(" + t(".codes_left", count: @invite_code.count) + ")" unless AppConfig.settings.enable_registrations?
.form-horizontal
.control-group
= invite_link(@invite_code)