Browse Source

Show correct number of collaborators for plans

Shane Kilkelly 10 năm trước cách đây
mục cha
commit
667c7ce520

+ 9 - 3
services/web/app/views/subscriptions/plans.jade

@@ -91,7 +91,9 @@ block content
 													span.small /yr
 													span.small /yr
 											ul.list-unstyled
 											ul.list-unstyled
 												li 
 												li 
-													strong #{translate("collabs_per_proj", {collabcount:10})}
+													strong(ng-show="plansVariant == 'default'") #{translate("collabs_per_proj", {collabcount:10})}
+													strong(ng-show="plansVariant == 'heron'") #{translate("collabs_per_proj", {collabcount:8})}
+													strong(ng-show="plansVariant == 'ibis'") #{translate("collabs_per_proj", {collabcount:12})}
 												li #{translate("full_doc_history")}
 												li #{translate("full_doc_history")}
 												li #{translate("sync_to_dropbox")}
 												li #{translate("sync_to_dropbox")}
 												li #{translate("sync_to_github")}
 												li #{translate("sync_to_github")}
@@ -156,7 +158,9 @@ block content
 													span.small /mo
 													span.small /mo
 											ul.list-unstyled
 											ul.list-unstyled
 												li
 												li
-													strong #{translate("collabs_per_proj", {collabcount:6})}
+													strong(ng-show="plansVariant == 'default'") #{translate("collabs_per_proj", {collabcount:6})}
+													strong(ng-show="plansVariant == 'heron'") #{translate("collabs_per_proj", {collabcount:4})}
+													strong(ng-show="plansVariant == 'ibis'") #{translate("collabs_per_proj", {collabcount:8})}
 												li #{translate("full_doc_history")}
 												li #{translate("full_doc_history")}
 												li #{translate("sync_to_dropbox")}
 												li #{translate("sync_to_dropbox")}
 												li #{translate("sync_to_github")}
 												li #{translate("sync_to_github")}
@@ -177,7 +181,9 @@ block content
 													span.small /yr
 													span.small /yr
 											ul.list-unstyled
 											ul.list-unstyled
 												li
 												li
-													strong #{translate("collabs_per_proj", {collabcount:6})}
+													strong(ng-show="plansVariant == 'default'") #{translate("collabs_per_proj", {collabcount:6})}
+													strong(ng-show="plansVariant == 'heron'") #{translate("collabs_per_proj", {collabcount:4})}
+													strong(ng-show="plansVariant == 'ibis'") #{translate("collabs_per_proj", {collabcount:8})}
 												li #{translate("full_doc_history")}
 												li #{translate("full_doc_history")}
 												li #{translate("sync_to_dropbox")}
 												li #{translate("sync_to_dropbox")}
 												li #{translate("sync_to_github")}
 												li #{translate("sync_to_github")}