فهرست منبع

Move FAQ to partial

Jessica Lawshe 8 سال پیش
والد
کامیت
ae85bfafef
2فایلهای تغییر یافته به همراه43 افزوده شده و 39 حذف شده
  1. 33 0
      services/web/app/views/subscriptions/_plans_faq.pug
  2. 10 39
      services/web/app/views/subscriptions/plans.pug

+ 33 - 0
services/web/app/views/subscriptions/_plans_faq.pug

@@ -0,0 +1,33 @@
+.faq
+	.row.row-spaced-large
+		.col-md-12
+			.page-header.plans-header.plans-subheader.text-centered
+				h2 FAQ
+	.row
+		.col-md-6
+			h3 #{translate("faq_how_free_trial_works_question")}
+			p #{translate('faq_how_free_trial_works_answer', { len:'{{trial_len}}' })}
+		.col-md-6
+			h3 #{translate('faq_change_plans_question')}
+			p #{translate('faq_change_plans_answer')}
+	.row
+		.col-md-6
+			h3 #{translate('faq_do_collab_need_premium_question')}
+			p #{translate('faq_do_collab_need_premium_answer')}
+		.col-md-6
+			h3 #{translate('faq_need_more_collab_question')}
+			p !{translate('faq_need_more_collab_answer', { referFriendsLink: '<a href="/user/bonus">' + translate('referring_your_friends') + '</a>'})}
+	.row
+		.col-md-6
+			h3 #{translate('faq_purchase_more_licenses_question')}
+			p !{translate('faq_purchase_more_licenses_answer', { groupLink: '<a href="/i/university/groups">' + translate('discounted_group_accounts') + '</a>' })}
+		.col-md-6
+			h3 #{translate('faq_monthly_or_annual_question')}
+			p #{translate('faq_monthly_or_annual_answer')}
+	.row
+		.col-md-6
+			h3 #{translate('faq_how_to_pay_question')}
+			p #{translate('faq_how_to_pay_answer')}
+		.col-md-6
+			h3 #{translate('faq_pay_by_invoice_question')}
+			p !{translate('faq_pay_by_invoice_answer', { groupLink: '<a href="/i/university/groups">' + translate('discounted_group_accounts') + '</a>' })}

+ 10 - 39
services/web/app/views/subscriptions/plans.pug

@@ -133,43 +133,14 @@ block content
 											p ShareLaTeX has proven to be a powerful and robust collaboration tool that is widely used in our School.
 											footer Rob Henderson, School Of Informatics And Computing - Indiana University
 
-					.faq
-						.row.row-spaced-large
-							.col-md-12
-								.page-header.plans-header.plans-subheader.text-centered
-									h2 FAQ
-						.row
-							.col-md-6
-								h3 #{translate("faq_how_free_trial_works_question")}
-								p #{translate('faq_how_free_trial_works_answer', { len:'{{trial_len}}' })}
-							.col-md-6
-								h3 #{translate('faq_change_plans_question')}
-								p #{translate('faq_change_plans_answer')}
-						.row
-							.col-md-6
-								h3 #{translate('faq_do_collab_need_premium_question')}
-								p #{translate('faq_do_collab_need_premium_answer')}
-							.col-md-6
-								h3 #{translate('faq_need_more_collab_question')}
-								p !{translate('faq_need_more_collab_answer', { referFriendsLink: '<a href="/user/bonus">' + translate('referring_your_friends') + '</a>'})}
-						.row
-							.col-md-6
-								h3 #{translate('faq_purchase_more_licenses_question')}
-								p !{translate('faq_purchase_more_licenses_answer', { groupLink: '<a href="/i/university/groups">' + translate('discounted_group_accounts') + '</a>' })}
-							.col-md-6
-								h3 #{translate('faq_monthly_or_annual_question')}
-								p #{translate('faq_monthly_or_annual_answer')}
-						.row
-							.col-md-6
-								h3 #{translate('faq_how_to_pay_question')}
-								p #{translate('faq_how_to_pay_answer')}
-							.col-md-6
-								h3 #{translate('faq_pay_by_invoice_question')}
-								p !{translate('faq_pay_by_invoice_answer', { groupLink: '<a href="/i/university/groups">' + translate('discounted_group_accounts') + '</a>' })}
-						.row.row-spaced-large.text-centery
-							.col-md-12
-								.plans-header.plans-subheader.text-centered
-									h2 #{translate('still_have_questions')}
-										button.btn.btn-info.btn-header.text-capitalize(ng-controller="ContactGeneralModal" ng-click="openModal()") #{translate('get_in_touch')}
-										!= moduleIncludes("contactModalGeneral", locals)
+					include _plans_faq
+
+					.row.row-spaced-large
+						.col-md-12
+							.plans-header.plans-subheader.text-centered
+								h2 #{translate('still_have_questions')}
+									button.btn.btn-info.btn-header.text-capitalize(ng-controller="ContactGeneralModal" ng-click="openModal()") #{translate('get_in_touch')}
+									!= moduleIncludes("contactModalGeneral", locals)
+
+					.row.row-spaced