added a load more pages

This commit is contained in:
Henry Oswald 2014-08-01 12:34:53 +01:00
parent cb685f5ea6
commit fdc5a5154a
11 changed files with 74 additions and 75 deletions

View file

@ -4,11 +4,11 @@ html(itemscope, itemtype='http://schema.org/Product')
head
- if (typeof(priority_title) !== "undefined" && priority_title)
title= title + ' - Online LaTeX Editor ShareLaTeX'
title= title + ' - '+ translate("online_latex_editor")
- else
title= 'Online LaTeX Editor ShareLaTeX - ' +title
title= translate("online_latex_editor") +' ShareLaTeX - ' +title
link(rel="icon", href="/favicon.ico")
link(rel='stylesheet', href='/stylesheets/style.css?fingerprint='+fingerprint('/stylesheets/style.css'))
link(href="//netdna.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css",rel="stylesheet")

View file

@ -10,12 +10,12 @@ block content
.row
.col-md-12
.page-header
h1 Help us spread the word about ShareLaTeX.
h1 #{translate("help_us_spread_word")}.
.row
.col-md-10.col-md-offset-1
h2 Share ShareLaTeX with your friends and colleagues and unlock the rewards below
h2 #{translate("share_sl_to_get_rewards")}
.row
.col-md-8.col-md-offset-2.bonus-banner
@ -29,31 +29,31 @@ block content
.row
.col-md-8.col-md-offset-2.bonus-banner
.title
a(href='#', onclick='postToFeed(); return false;').facebook Post on Facebook
a(href='#', onclick='postToFeed(); return false;').facebook #{translate("post_on_facebook")}
.row
.col-md-8.col-md-offset-2.bonus-banner
.title
a(href="https://plus.google.com/share?url=#{encodeURIComponent(buildReferalUrl('gp'))}", onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return false;").google-plus Share us on Google+
a(href="https://plus.google.com/share?url=#{encodeURIComponent(buildReferalUrl('gp'))}", onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return false;").google-plus #{translate("share_us_on_googleplus")}
.row
.col-md-8.col-md-offset-2.bonus-banner
.title
a(href='mailto:?subject=Online LaTeX editor you may like &body=Hey, I have been using the online LaTeX editor ShareLaTeX recently and thought you might like to check it out. #{encodeURIComponent(buildReferalUrl("e"))}', title='Share by Email').email Email us to your friends
a(href='mailto:?subject=Online LaTeX editor you may like &body=Hey, I have been using the online LaTeX editor ShareLaTeX recently and thought you might like to check it out. #{encodeURIComponent(buildReferalUrl("e"))}', title='Share by Email').email #{translate("email_us_to_your_friends")}
.row
.col-md-8.col-md-offset-2.bonus-banner
.title
a(href='#link-modal', data-toggle="modal", ng-click="openLinkToUsModal()").link Link to us from your website
a(href='#link-modal', data-toggle="modal", ng-click="openLinkToUsModal()").link #{translate("link_to_us")}
.row
.col-md-10.col-md-offset-1.bonus-banner
h2.direct-link Direct Link
h2.direct-link #{translate("direct_link")}
pre.text-centered #{buildReferalUrl("d")}
.row.ab-bonus
.col-md-10.col-md-offset-1.bonus-banner
p.thanks When someone starts using ShareLaTeX after your recommendation we'll give you some <strong>free stuff</strong> to say thanks! Check your progress below.
p.thanks #{translate("sl_gives_you_free_stuff_see_progress_below")}
.row.ab-bonus
.col-md-10.col-md-offset-1.bonus-banner(style="position: relative; height: 30px; margin-top: 20px;")
- for (var i = 0; i <= 10; i++) {
@ -67,24 +67,24 @@ block content
.col-md-10.col-md-offset-1.bonus-banner
.progress
- if (refered_user_count == 0)
div(style="text-align: center; padding: 4px;") Spread the word and fill this bar up
div(style="text-align: center; padding: 4px;") #{translate("spread_the_word_and_fill_bar")}
.progress-bar.progress-bar-info(style="width: #{refered_user_count}0%")
.row.ab-bonus
.col-md-10.col-md-offset-1.bonus-banner(style="position: relative; height: 70px;")
.perk(style="left: 10%;", class = refered_user_count >= 1 ? "active" : "") One free collaborator
.perk(style="left: 30%;", class = refered_user_count >= 3 ? "active" : "") Three free collaborators
.perk(style="left: 60%;", class = refered_user_count >= 6 ? "active" : "") Free Dropbox and History
.perk(style="left: 90%;", class = refered_user_count >= 9 ? "active" : "") Free Professional account
.perk(style="left: 10%;", class = refered_user_count >= 1 ? "active" : "") #{translate("one_free_collab")}
.perk(style="left: 30%;", class = refered_user_count >= 3 ? "active" : "") #{translate("three_free_collab")}
.perk(style="left: 60%;", class = refered_user_count >= 6 ? "active" : "") #{translate("free_dropbox_and_history")}
.perk(style="left: 90%;", class = refered_user_count >= 9 ? "active" : "") #{translate("free_prof_account")}
.row.ab-bonus
.col-md-10.col-md-offset-1.bonus-banner
- if (refered_user_count == 0)
p.thanks You've not introduced anyone to ShareLaTeX yet. Get sharing!
p.thanks #{translate("you_not_introed_anyone_to_sl")}
- else if (refered_user_count == 1)
p.thanks You've introduced <strong>#{refered_user_count}</strong> person to ShareLaTeX. Good job, but can you get some more?
p.thanks #{translate("you_introed_small_number", {numberOfPeople:"<strong>#{refered_user_count}</strong>"})}
- else
p.thanks You've introduced <strong>#{refered_user_count}</strong> people to ShareLaTeX. Good job!
p.thanks #{translate("you_introed_high_number", {numberOfPeople:"<strong>#{refered_user_count}</strong>"})}
script(type="text/ng-template", id="BonusLinkToUsModal")
.modal-header
@ -93,22 +93,22 @@ block content
data-dismiss="modal"
ng-click="cancel()"
) &times;
h3 Link to ShareLaTeX
h3 #{translate("link_to_sl")}
.modal-body.modal-body-share.link-modal
p You can link to ShareLaTeX with the following HTML:
p #{translate("can_link_to_sl_with_html")}
p
textarea.col-md-12(readonly=true)
<a href="#{buildReferalUrl("d")}">Online LaTeX Editor ShareLaTeX</a>
p Thanks!
p #{translate("thanks")}!
.modal-footer()
button.btn.btn-default(
ng-click="cancel()",
)
span Close
span #{translate("close")}

View file

@ -9,14 +9,14 @@ mixin printPlan(plan)
strong #{plan.name}
td
-if (plan.annual)
| $#{plan.price / 100} / year
| $#{plan.price / 100} / #{translate("year")}
-else
| $#{plan.price / 100} / month
| $#{plan.price / 100} / #{translate("month")}
td
-if (subscription.state == "free-trial")
a(href="/user/subscription/new?planCode=#{plan.planCode}").btn.btn-success Subscribe to this plan
a(href="/user/subscription/new?planCode=#{plan.planCode}").btn.btn-success #{translate("subscribe_to_this_plan")}
-else if (plan.planCode == subscription.planCode)
button.btn.disabled Your plan
button.btn.disabled #{translate("your_plan")}
-else
form(action="/user/subscription/update",method="post")
input(type="hidden", name="_csrf", value=csrfToken)
@ -34,44 +34,44 @@ block content
.col-md-8.col-md-offset-2
.card
.page-header
h1 Your Subscription
h1 #{translate("your_subscription")}
case subscription.state
when "free-trial"
p You are currently using a free trial which expires on <strong>#{subscription.expiresAt}</strong>.
p Choose a plan below to subscribe to.
p #{translate("on_free_trial_expiring_at", {expiresAt:"<strong>#{subscription.expiresAt}</strong>"})}
p #{translate("choose_a_plan_below")}
when "active"
p You are currently subscribed to the <strong>#{subscription.name}</strong> plan.
a(href, ng-click="changePlan = true") Change Plan.
p The next payment of <strong>#{subscription.price}</strong> will be collected on <strong>#{subscription.nextPaymentDueAt}</strong>
p #{translate("currently_subscribed_to_plan", {planName:"<strong>#{subscription.name}</strong>"})}
a(href, ng-click="changePlan = true") #{translate("change_plan")}.
p #{translate("next_payment_of_x_collectected_on_y", {paymentAmmount:"<strong>#{subscription.price}</strong>", collectionDate:"<strong>#{subscription.nextPaymentDueAt}</strong>"})}
p.pull-right
p: form(action="/user/subscription/cancel",method="post")
input(type="hidden", name="_csrf", value=csrfToken)
a(href="/user/subscription/billing-details/edit").btn.btn-info Update your billing details
a(href="/user/subscription/billing-details/edit").btn.btn-info #{translate("update_your_billing_details")}
| &nbsp;
input(type="submit", value="Cancel your subscription").btn.btn-primary#cancelSubscription
when "canceled"
p You are currently subscribed to the <strong>#{subscription.name}</strong> plan.
p Your subscription has been canceled and will terminate on <strong>#{subscription.nextPaymentDueAt}</strong>. No further payments will be taken.
p #{translate("currently_subscribed_to_plan", {planName:"<strong>#{subscription.name}</strong>"})}
p #{translate("subscription_canceled_and_terminate_on_x", {terminateDate:"<strong>#{subscription.nextPaymentDueAt}</strong>"})}
p: form(action="/user/subscription/reactivate",method="post")
input(type="hidden", name="_csrf", value=csrfToken)
input(type="submit",value="Reactivate your subscription").btn.btn-success
when "expired"
p Your subscription has expired.
a(href="/user/subscription/plans") Create New Subscription
p #{translate("your_subscription_has_expired")}
a(href="/user/subscription/plans") #{translate("create_new_subscription")}
default
p There is a problem with your subscription. Please contact us for more information.
p #{translate("problem_with_subscription_contact_us")}
-if(subscription.groupPlan)
a(href="/subscription/group").btn.btn-success Manage Group
a(href="/subscription/group").btn.btn-success #{translate("manage_group")}
div(ng-show="changePlan", ng-cloak)
hr
h2 Change plan
h2 #{translate("change_plan")}
p: table.table
tr
th Name
th Price
th #{translate("name")}
th #{translate("price")}
th
mixin printPlans(plans.studentAccounts)
mixin printPlans(plans.individualMonthlyPlans)

View file

@ -11,8 +11,8 @@ block content
.col-md-6.col-md-offset-3
.card
.page-header
h1.text-centered Update Your Billing Details
#billingDetailsForm Loading billing details form...
h1.text-centered #{translate("update_your_billing_details")}
#billingDetailsForm #{translate("loading_billing_form")}...
script(type="text/javascript").

View file

@ -8,13 +8,13 @@ block content
.card(ng-controller="GroupMembersController")
.page-header
.pull-right(ng-cloak)
small(ng-show="selectedUsers.length == 0") You have added <strong>{{ users.length }}</strong> of <strong>{{ groupSize }}</strong> available members
small(ng-show="selectedUsers.length == 0") #{translate("you_have_added_x_of_group_size_y", {addedUsersSize:"<strong>{{ users.length }}</strong>", groupSize:"<strong>{{ groupSize }}</strong>"})}
a.btn.btn-danger(
href,
ng-show="selectedUsers.length > 0"
ng-click="removeMembers()"
) Remove from group
h1 Group Account
) #{translate("remove_from_group")}
h1 #{translate("group_account")}
.row-spaced-small
ul.list-unstyled.structured-list(
@ -28,11 +28,11 @@ block content
select-all,
type="checkbox"
)
span.header Email
span.header #{translate("email")}
.col-md-5
span.header Name
span.header #{translate("name")}
.col-md-2
span.header Registered
span.header #{translate("registered")}
li.container-fluid(
ng-repeat="user in users | orderBy:'email':true",
ng-controller="GroupMemberListItemController"
@ -57,12 +57,12 @@ block content
)
.row
.col-md-12.text-centered
small No members
small #{translate("no_members")}
div(ng-if="users.length < groupSize", ng-cloak)
hr
p
.small Add more members
.small #{translate("add_more_members")}
form.form
.row
.col-xs-6
@ -74,7 +74,7 @@ block content
on-enter="addMembers()"
)
.col-xs-6
button.btn.btn-primary(ng-click="addMembers()") Add
button.btn.btn-primary(ng-click="addMembers()") #{translate("add")}
script(type="text/javascript").
window.users = !{JSON.stringify(users)};

View file

@ -11,8 +11,8 @@ block content
.col-md-6.col-md-offset-3
.card
.page-header
h1.text-centered New Subscription
#subscribeForm Loading subscription form...
h1.text-centered #{translate("new_subscription")}
#subscribeForm #{translate("loading_billing_form")}...
script(type="text/javascript")
ga('send', 'event', 'pageview', 'payment_form', "#{plan_code}")

View file

@ -7,23 +7,22 @@ block content
.col-md-8.col-md-offset-2
.card
.page-header
h2 Thanks for subscribing!
h2 #{translate("thanks_for_subscribing")}
.alert.alert-success
p Your card will be charged soon.
p The next payment of <strong>#{subscription.price}</strong> will be collected on <strong>#{subscription.nextPaymentDueAt}</strong>.
p If you do not want to be charged again
a(href="/user/subscription") click here to cancel.
p #{translate("your_card_will_be_charged_soon")}
p #{translate("next_payment_of_x_collectected_on_y", {paymentAmmount:"<strong>#{subscription.price}</strong>", collectionDate:"<strong>#{subscription.nextPaymentDueAt}</strong>"})}
p #{translate("if_you_dont_want_to_be_charged")}
a(href="/user/subscription") #{translate("click_here_to_cancel")}.
p
- if (subscription.groupPlan == true)
a.btn.btn-success.btn-large(href="/subscription/group") Add your first group members now
a.btn.btn-success.btn-large(href="/subscription/group") #{translate("add_your_first_group_member_now")}
p.letter-from-founders
p Thank you for subscribing to the #{subscription.name} plan. It's support from people like yourself that allows ShareLaTeX to continue to grow and improve.
p If there is anything you ever need please feel free to contact us directly at
p #{translate("thanks_for_subscribing_you_help_sl", {planName:subscription.name})}
p #{translate("need_anything_contact_us_at")}
a(href='mailto:support@sharelatex.com') support@sharelatex.com
| . It goes straight to both our inboxes.
p Regards,
| . #{translate("goes_straight_to_our_inboxes")}.
p #{translate("regards")},
br
| Henry and James
.portraits
@ -33,4 +32,4 @@ block content
span.img-circle
img(src="/img/about/james_allen.jpg")
p
a.btn.btn-primary(href="/project") &lt; Back to your projects
a.btn.btn-primary(href="/project") &lt; #{translate("back_to_your_projects")}

View file

@ -7,7 +7,7 @@ block content
.col-md-2
h2
a(href="/templates") Templates
a(href="/templates") #{translate("templates")}
.col-md-8
form.project-search.form-horizontal(role="form")
.form-group.has-feedback.has-feedback-left.col-md-12

View file

@ -6,7 +6,7 @@ block content
.row
.page-header
h2
a(href="/templates") Templates
a(href="/templates") #{translate("templates")}
|
a(href=tag.tagPagePath) #{tag.name}
.row

View file

@ -6,7 +6,7 @@ block content
.row
.page-header
h2
a(href="/templates") Templates
a(href="/templates") #{translate("templates")}
|
- if(tag)
a(href=tag.tagPagePath) #{tag.name}
@ -22,7 +22,7 @@ block content
.col-md-6
.template-details-section
h3 About
h3 #{translate("about")}
div !{template.description}
div(ng-controller="openInSlController").download-buttons
a.btn.btn-primary.btn-large(href=template.open_in_sharelatex_url, ng-click='open()', ng-disabled="isDisabled", rel='nofollow') {{openInSlText}}
@ -47,7 +47,7 @@ block content
a.addthis_button_compact
script(type='text/javascript', src='//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-517c16586439faa7')
h3 Comment
h3 #{translate("comment")}
#disqus_thread
script(type='text/javascript').
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */

View file

@ -6,8 +6,8 @@ block content
.row
.col-md-8.col-md-offset-2.text-center
.page-header
h2 Restricted, sorry you don't have permission to load this page.
h2 #{translate("restricted_no_permission")}
p
a(href="/")
i.fa.fa-arrow-circle-o-left
| Take me home!
| #{translate("take_me_home")}