Просмотр исходного кода

Add open source banner to footer

James Allen 12 лет назад
Родитель
Сommit
128c982ba2

+ 4 - 0
services/web/app/views/general/small-footer.jade

@@ -1,4 +1,8 @@
 .row-fluid
+	.span12
+		div.alert.alert-success.open-source
+			| ShareLaTeX is open source. 
+			a(href="https://github.com/sharelatex/sharelatex") Fork us on GitHub.
 	.span12
 		.small-footer
 			ul

+ 4 - 4
services/web/app/views/subscriptions/plans.jade

@@ -150,8 +150,8 @@ block content
 									mixin plan(plans.groupAnnualPlans[2], "", false)
 						.tab-pane.student-pricing
 
-			include ../general/small-footer
-			link(rel='stylesheet', href='/brand/plans.css?fingerprint='+fingerprint('/brand/mainStyle.css'))	
+		include ../general/small-footer
+		link(rel='stylesheet', href='/brand/plans.css?fingerprint='+fingerprint('/brand/mainStyle.css'))	
 
-			script
-				mixpanel.track("Page Viewed", { name: "plans" })
+		script
+			mixpanel.track("Page Viewed", { name: "plans" })

+ 2 - 0
services/web/app/views/user/settings.jade

@@ -152,6 +152,8 @@ block content
 								p Every few months we send a news letter out summarizing the new features available, if you would prefer to not receive this email then you are free to unsubscribe below at any time							
 								a#unsubscribeFromNewsletter.btn.btn-danger(data-csrf=csrfToken) Unsubscribe
 
+		include ../general/small-footer
+
 	#changePasswordModal(style='display: none')
 		.modal
 			form#changePasswordForm(method="post", action="/user/password/update")

+ 7 - 2
services/web/public/stylesheets/less/footer.less

@@ -1,6 +1,11 @@
-
+.open-source {
+	text-align: center;
+	width: 300px;
+	margin: auto;
+	margin-top: 6px;
+}
 .small-footer {
-	margin-top: 20px;
+	margin-top: 12px;
 	margin-bottom: 20px;
 	text-align:center;
 	font-size: 0.9em;