fix pug syntax

This commit is contained in:
Shane Kilkelly 2017-01-31 14:57:22 +00:00
parent 83d0f26011
commit b0dd7475b0
24 changed files with 72 additions and 72 deletions

View file

@ -28,10 +28,10 @@ block content
tab(heading="Open Sockets") tab(heading="Open Sockets")
.row-spaced .row-spaced
ul ul
-each agents, url in openSockets each agents, url in openSockets
li #{url} - total : #{agents.length} li #{url} - total : #{agents.length}
ul ul
-each agent in agents each agent in agents
li #{agent} li #{agent}
tab(heading="Close Editor") tab(heading="Close Editor")

View file

@ -24,10 +24,10 @@ script(type='text/ng-template', id='supportModalTemplate')
a.contact-suggestion-list-item(ng-href="{{ suggestion.url }}", ng-click="clickSuggestionLink(suggestion.url);" target="_blank") a.contact-suggestion-list-item(ng-href="{{ suggestion.url }}", ng-click="clickSuggestionLink(suggestion.url);" target="_blank")
span(ng-bind-html="suggestion.name") span(ng-bind-html="suggestion.name")
i.fa.fa-angle-right i.fa.fa-angle-right
label.desc(ng-show="'#{getUserEmail()}'.length < 1") label.desc(ng-show="'"+getUserEmail()+"'.length < 1")
| #{translate("email")} | #{translate("email")}
.form-group(ng-show="'#{getUserEmail()}'.length < 1") .form-group(ng-show="'"+getUserEmail()+"'.length < 1")
input.field.text.medium.span8.form-control(ng-model="form.email", ng-init="form.email = '#{getUserEmail()}'", type='email', spellcheck='false', value='', maxlength='255', tabindex='2') input.field.text.medium.span8.form-control(ng-model="form.email", ng-init="form.email = '"+getUserEmail()+"'", type='email', spellcheck='false', value='', maxlength='255', tabindex='2')
label#title12.desc label#title12.desc
| #{translate("project_url")} (#{translate("optional")}) | #{translate("project_url")} (#{translate("optional")})
.form-group .form-group
@ -37,6 +37,6 @@ script(type='text/ng-template', id='supportModalTemplate')
.form-group .form-group
textarea.field.text.medium.span8.form-control(ng-model="form.message",type='text', value='', tabindex='4', onkeyup='') textarea.field.text.medium.span8.form-control(ng-model="form.message",type='text', value='', tabindex='4', onkeyup='')
.form-group.text-center .form-group.text-center
input.btn-success.btn.btn-lg(type='submit', ng-disabled="sending", ng-click="contactUs()" value='#{translate("contact_us")}') input.btn-success.btn.btn-lg(type='submit', ng-disabled="sending", ng-click="contactUs()" value=translate("contact_us"))
span(ng-show="sent") span(ng-show="sent")
p #{translate("request_sent_thank_you")} p #{translate("request_sent_thank_you")}

View file

@ -30,7 +30,7 @@ html(itemscope, itemtype='http://schema.org/Product')
meta(itemprop="name", content="ShareLaTeX, the Online LaTeX Editor") meta(itemprop="name", content="ShareLaTeX, the Online LaTeX Editor")
-if (typeof(meta) == "undefined") -if (typeof(meta) == "undefined")
meta(itemprop="description", name="description", content='#{translate("site_description")}') meta(itemprop="description", name="description", content=translate("site_description"))
-else -else
meta(itemprop="description", name="description" , content=meta) meta(itemprop="description", name="description" , content=meta)

View file

@ -13,9 +13,9 @@ footer.site-footer
data-toggle="dropdown", data-toggle="dropdown",
aria-haspopup="true", aria-haspopup="true",
aria-expanded="false", aria-expanded="false",
tooltip="#{translate('language')}" tooltip=translate('language')
) )
figure(class="sprite-icon sprite-icon-lang sprite-icon-#{currentLngCode}") figure(class="sprite-icon sprite-icon-lang sprite-icon-"+currentLngCode)
ul.dropdown-menu(role="menu") ul.dropdown-menu(role="menu")
li.dropdown-header #{translate("language")} li.dropdown-header #{translate("language")}
@ -23,7 +23,7 @@ footer.site-footer
if !subdomainDetails.hide if !subdomainDetails.hide
li.lngOption li.lngOption
a.menu-indent(href=subdomainDetails.url+currentUrl) a.menu-indent(href=subdomainDetails.url+currentUrl)
figure(class="sprite-icon sprite-icon-lang sprite-icon-#{subdomainDetails.lngCode}") figure(class="sprite-icon sprite-icon-lang sprite-icon-"+subdomainDetails.lngCode)
| #{translate(subdomainDetails.lngCode)} | #{translate(subdomainDetails.lngCode)}
//- img(src="/img/flags/24/.png") //- img(src="/img/flags/24/.png")
each item in nav.left_footer each item in nav.left_footer

View file

@ -4,7 +4,7 @@ nav.navbar.navbar-default
button.navbar-toggle(ng-init="navCollapsed = true", ng-click="navCollapsed = !navCollapsed", ng-class="{active: !navCollapsed}") button.navbar-toggle(ng-init="navCollapsed = true", ng-click="navCollapsed = !navCollapsed", ng-class="{active: !navCollapsed}")
i.fa.fa-bars i.fa.fa-bars
if settings.nav.custom_logo if settings.nav.custom_logo
a(href='/', style='background-image:url("#{settings.nav.custom_logo}")').navbar-brand a(href='/', style='background-image:url("'+settings.nav.custom_logo+'")').navbar-brand
else if (nav.title) else if (nav.title)
a(href='/').navbar-title #{nav.title} a(href='/').navbar-title #{nav.title}
else else

View file

@ -50,7 +50,7 @@ aside.chat(
.new-message .new-message
textarea( textarea(
placeholder="#{translate('your_message')}...", placeholder=translate('your_message')+"...",
on-enter="sendMessage()", on-enter="sendMessage()",
ng-model="newMessageContent", ng-model="newMessageContent",
ng-click="resetUnreadMessages()" ng-click="resetUnreadMessages()"

View file

@ -70,7 +70,7 @@ div.full-size(
ng-controller="PdfSynctexController" ng-controller="PdfSynctexController"
) )
a.btn.btn-default.btn-xs( a.btn.btn-default.btn-xs(
tooltip="#{translate('go_to_code_location_in_pdf')}" tooltip=translate('go_to_code_location_in_pdf')
tooltip-placement="right" tooltip-placement="right"
tooltip-append-to-body="true" tooltip-append-to-body="true"
ng-click="syncToPdf()" ng-click="syncToPdf()"
@ -78,7 +78,7 @@ div.full-size(
i.fa.fa-long-arrow-right i.fa.fa-long-arrow-right
br br
a.btn.btn-default.btn-xs( a.btn.btn-default.btn-xs(
tooltip-html="'#{translate('go_to_pdf_location_in_code')}'" tooltip-html="'"+translate('go_to_pdf_location_in_code')+"'"
tooltip-placement="right" tooltip-placement="right"
tooltip-append-to-body="true" tooltip-append-to-body="true"
ng-click="syncToCode()" ng-click="syncToCode()"
@ -90,4 +90,4 @@ div.full-size(
ng-show="ui.view == 'pdf'" ng-show="ui.view == 'pdf'"
) )
include ./pdf include ./pdf

View file

@ -3,21 +3,21 @@ aside#file-tree(ng-controller="FileTreeController", ng-class="{ 'multi-selected'
a( a(
href, href,
ng-click="openNewDocModal()", ng-click="openNewDocModal()",
tooltip-html="'#{translate('new_file').replace(' ', '<br>')}'", tooltip-html="'"+translate('new_file').replace(' ', '<br>')+"'",
tooltip-placement="bottom" tooltip-placement="bottom"
) )
i.fa.fa-file i.fa.fa-file
a( a(
href, href,
ng-click="openNewFolderModal()", ng-click="openNewFolderModal()",
tooltip-html="'#{translate('new_folder').replace(' ', '<br>')}'", tooltip-html="'"+translate('new_folder').replace(' ', '<br>')+"'",
tooltip-placement="bottom" tooltip-placement="bottom"
) )
i.fa.fa-folder i.fa.fa-folder
a( a(
href, href,
ng-click="openUploadFileModal()", ng-click="openUploadFileModal()",
tooltip="#{translate('upload')}", tooltip=translate('upload'),
tooltip-placement="bottom" tooltip-placement="bottom"
) )
i.fa.fa-upload i.fa.fa-upload
@ -26,7 +26,7 @@ aside#file-tree(ng-controller="FileTreeController", ng-class="{ 'multi-selected'
a( a(
href, href,
ng-click="startRenamingSelected()", ng-click="startRenamingSelected()",
tooltip="#{translate('rename')}", tooltip=translate('rename'),
tooltip-placement="bottom", tooltip-placement="bottom",
ng-show="multiSelectedCount == 0" ng-show="multiSelectedCount == 0"
) )
@ -34,7 +34,7 @@ aside#file-tree(ng-controller="FileTreeController", ng-class="{ 'multi-selected'
a( a(
href, href,
ng-click="openDeleteModalForSelected()", ng-click="openDeleteModalForSelected()",
tooltip="#{translate('delete')}", tooltip=translate('delete'),
tooltip-placement="bottom", tooltip-placement="bottom",
tooltip-append-to-body="true" tooltip-append-to-body="true"
) )
@ -431,4 +431,4 @@ script(type='text/ng-template', id='invalidFileNameModalTemplate')
.modal-footer .modal-footer
button.btn.btn-default( button.btn.btn-default(
ng-click="$close()" ng-click="$close()"
) #{translate('ok')} ) #{translate('ok')}

View file

@ -45,7 +45,7 @@ header.toolbar.toolbar-header.toolbar-with-labels(
ng-if="permissions.admin", ng-if="permissions.admin",
href='#', href='#',
tooltip-placement="bottom", tooltip-placement="bottom",
tooltip="#{translate('rename')}", tooltip=translate('rename'),
tooltip-append-to-body="true", tooltip-append-to-body="true",
ng-click="startRenaming()", ng-click="startRenaming()",
ng-show="!state.renaming" ng-show="!state.renaming"
@ -71,7 +71,7 @@ header.toolbar.toolbar-header.toolbar-with-labels(
span.dropdown(dropdown, ng-if="onlineUsersArray.length >= 4") span.dropdown(dropdown, ng-if="onlineUsersArray.length >= 4")
span.online-user.online-user-multi( span.online-user.online-user-multi(
dropdown-toggle, dropdown-toggle,
tooltip="#{translate('connected_users')}", tooltip=translate('connected_users'),
tooltip-placement="left" tooltip-placement="left"
) )
strong {{ onlineUsersArray.length }} strong {{ onlineUsersArray.length }}
@ -121,4 +121,4 @@ header.toolbar.toolbar-header.toolbar-with-labels(
span.label.label-info( span.label.label-info(
ng-show="unreadMessages > 0" ng-show="unreadMessages > 0"
) {{ unreadMessages }} ) {{ unreadMessages }}
p.toolbar-label #{translate("chat")} p.toolbar-label #{translate("chat")}

View file

@ -24,7 +24,7 @@ aside#left-menu.full-size(
| PDF | PDF
div.link-disabled( div.link-disabled(
ng-if="!pdf.url" ng-if="!pdf.url"
tooltip="#{translate('please_compile_pdf_before_download')}" tooltip=translate('please_compile_pdf_before_download')
tooltip-placement="bottom" tooltip-placement="bottom"
) )
i.fa.fa-file-pdf-o.fa-2x i.fa.fa-file-pdf-o.fa-2x
@ -47,7 +47,7 @@ aside#left-menu.full-size(
a(href, ng-if="pdf.url" ,ng-click="openWordCountModal()") a(href, ng-if="pdf.url" ,ng-click="openWordCountModal()")
i.fa.fa-fw.fa-eye i.fa.fa-fw.fa-eye
span &nbsp;&nbsp; #{translate("word_count")} span &nbsp;&nbsp; #{translate("word_count")}
a.link-disabled(href, ng-if="!pdf.url" , tooltip="#{translate('please_compile_pdf_before_word_count')}") a.link-disabled(href, ng-if="!pdf.url" , tooltip=translate('please_compile_pdf_before_word_count'))
i.fa.fa-fw.fa-eye i.fa.fa-fw.fa-eye
span.link-disabled &nbsp;&nbsp; #{translate("word_count")} span.link-disabled &nbsp;&nbsp; #{translate("word_count")}
@ -200,7 +200,7 @@ script(type='text/ng-template', id='wordCountModalTemplate')
span &nbsp; #{translate("loading")}... span &nbsp; #{translate("loading")}...
div.pdf-disabled( div.pdf-disabled(
ng-if="!pdf.url" ng-if="!pdf.url"
tooltip="#{translate('please_compile_pdf_before_word_count')}" tooltip=translate('please_compile_pdf_before_word_count')
tooltip-placement="bottom" tooltip-placement="bottom"
) )
div(ng-if="!status.loading") div(ng-if="!status.loading")

View file

@ -2,7 +2,7 @@ div.full-size.pdf(ng-controller="PdfController")
.toolbar.toolbar-tall .toolbar.toolbar-tall
.btn-group( .btn-group(
dropdown, dropdown,
tooltip-html="'#{translate('recompile_pdf')} <span class=\"keyboard-shortcut\">({{modifierKey}} + Enter)</span>'" tooltip-html="'"+translate('recompile_pdf')+" <span class=\"keyboard-shortcut\">({{modifierKey}} + Enter)</span>'"
tooltip-class="keyboard-tooltip" tooltip-class="keyboard-tooltip"
tooltip-popup-delay="500" tooltip-popup-delay="500"
tooltip-append-to-body="true" tooltip-append-to-body="true"
@ -53,7 +53,7 @@ div.full-size.pdf(ng-controller="PdfController")
href href
ng-click="stop()" ng-click="stop()"
ng-show="pdf.compiling", ng-show="pdf.compiling",
tooltip="#{translate('stop_compile')}" tooltip=translate('stop_compile')
tooltip-placement="bottom" tooltip-placement="bottom"
) )
i.fa.fa-stop() i.fa.fa-stop()
@ -61,7 +61,7 @@ div.full-size.pdf(ng-controller="PdfController")
href href
ng-click="toggleLogs()" ng-click="toggleLogs()"
ng-class="{ 'active': shouldShowLogs == true }" ng-class="{ 'active': shouldShowLogs == true }"
tooltip="#{translate('logs_and_output_files')}" tooltip=translate('logs_and_output_files')
tooltip-placement="bottom" tooltip-placement="bottom"
) )
i.fa.fa-file-text-o i.fa.fa-file-text-o
@ -77,7 +77,7 @@ div.full-size.pdf(ng-controller="PdfController")
ng-href="{{pdf.downloadUrl || pdf.url}}" ng-href="{{pdf.downloadUrl || pdf.url}}"
target="_blank" target="_blank"
ng-if="pdf.url" ng-if="pdf.url"
tooltip="#{translate('download_pdf')}" tooltip=translate('download_pdf')
tooltip-placement="bottom" tooltip-placement="bottom"
) )
i.fa.fa-download i.fa.fa-download
@ -87,7 +87,7 @@ div.full-size.pdf(ng-controller="PdfController")
href, href,
ng-click="switchToFlatLayout()" ng-click="switchToFlatLayout()"
ng-show="ui.pdfLayout == 'sideBySide'" ng-show="ui.pdfLayout == 'sideBySide'"
tooltip="#{translate('full_screen')}" tooltip=translate('full_screen')
tooltip-placement="bottom" tooltip-placement="bottom"
tooltip-append-to-body="true" tooltip-append-to-body="true"
) )
@ -96,7 +96,7 @@ div.full-size.pdf(ng-controller="PdfController")
href, href,
ng-click="switchToSideBySideLayout()" ng-click="switchToSideBySideLayout()"
ng-show="ui.pdfLayout == 'flat'" ng-show="ui.pdfLayout == 'flat'"
tooltip="#{translate('split_screen')}" tooltip=translate('split_screen')
tooltip-placement="bottom" tooltip-placement="bottom"
tooltip-append-to-body="true" tooltip-append-to-body="true"
) )
@ -233,7 +233,7 @@ div.full-size.pdf(ng-controller="PdfController")
.files-dropdown-container .files-dropdown-container
a.btn.btn-default.btn-sm( a.btn.btn-default.btn-sm(
href, href,
tooltip="#{translate('clear_cached_files')}", tooltip=translate('clear_cached_files'),
tooltip-placement="top", tooltip-placement="top",
tooltip-append-to-body="true", tooltip-append-to-body="true",
ng-click="openClearCacheModal()" ng-click="openClearCacheModal()"

View file

@ -38,7 +38,7 @@ script(type='text/ng-template', id='shareProjectModalTemplate')
.col-xs-1 .col-xs-1
a( a(
href href
tooltip="#{translate('remove_collaborator')}" tooltip=translate('remove_collaborator')
tooltip-placement="bottom" tooltip-placement="bottom"
ng-click="removeMember(member)" ng-click="removeMember(member)"
) )
@ -55,7 +55,7 @@ script(type='text/ng-template', id='shareProjectModalTemplate')
.col-xs-1 .col-xs-1
a( a(
href href
tooltip="#{translate('revoke_invite')}" tooltip=translate('revoke_invite')
tooltip-placement="bottom" tooltip-placement="bottom"
ng-click="revokeInvite(invite)" ng-click="revokeInvite(invite)"
) )
@ -66,7 +66,7 @@ script(type='text/ng-template', id='shareProjectModalTemplate')
.form-group .form-group
tags-input( tags-input(
template="shareTagTemplate" template="shareTagTemplate"
placeholder="#{settings.customisation.shareProjectPlaceholder || 'joe@example.com, sue@example.com, ...'}" placeholder=settings.customisation.shareProjectPlaceholder || 'joe@example.com, sue@example.com, ...'
ng-model="inputs.contacts" ng-model="inputs.contacts"
focus-on="open" focus-on="open"
display-property="display" display-property="display"

View file

@ -20,12 +20,12 @@ block content
form.form( form.form(
name="acceptForm", name="acceptForm",
method="POST", method="POST",
action="/project/#{invite.projectId}/invite/token/#{invite.token}/accept" action="/project/"+invite.projectId+"/invite/token/"+invite.token+"/accept"
) )
input(name='_csrf', type='hidden', value=csrfToken) input(name='_csrf', type='hidden', value=csrfToken)
input(name='token', type='hidden', value="#{invite.token}") input(name='token', type='hidden', value=invite.token)
.form-group.text-center .form-group.text-center
button.btn.btn-lg.btn-primary(type="submit") button.btn.btn-lg.btn-primary(type="submit")
| #{translate("join_project")} | #{translate("join_project")}
.form-group.text-center .form-group.text-center

View file

@ -6,7 +6,7 @@
form.project-search.form-horizontal(role="form") form.project-search.form-horizontal(role="form")
.form-group.has-feedback.has-feedback-left.col-md-7.col-xs-12 .form-group.has-feedback.has-feedback-left.col-md-7.col-xs-12
input.form-control.col-md-7.col-xs-12( input.form-control.col-md-7.col-xs-12(
placeholder="#{translate('search_projects')}…", placeholder=translate('search_projects')+"…",
autofocus='autofocus', autofocus='autofocus',
ng-model="searchText.value", ng-model="searchText.value",
focus-on='search:clear', focus-on='search:clear',
@ -25,7 +25,7 @@
.btn-group(ng-hide="selectedProjects.length < 1") .btn-group(ng-hide="selectedProjects.length < 1")
a.btn.btn-default( a.btn.btn-default(
href, href,
tooltip="#{translate('download')}", tooltip=translate('download'),
tooltip-placement="bottom", tooltip-placement="bottom",
tooltip-append-to-body="true", tooltip-append-to-body="true",
ng-click="downloadSelectedProjects()" ng-click="downloadSelectedProjects()"
@ -33,7 +33,7 @@
i.fa.fa-cloud-download i.fa.fa-cloud-download
a.btn.btn-default( a.btn.btn-default(
href, href,
tooltip="#{translate('delete')}", tooltip=translate('delete'),
tooltip-placement="bottom", tooltip-placement="bottom",
tooltip-append-to-body="true", tooltip-append-to-body="true",
ng-click="openArchiveProjectsModal()" ng-click="openArchiveProjectsModal()"
@ -45,7 +45,7 @@
href, href,
data-toggle="dropdown", data-toggle="dropdown",
dropdown-toggle, dropdown-toggle,
tooltip="#{translate('add_to_folders')}", tooltip=translate('add_to_folders'),
tooltip-append-to-body="true", tooltip-append-to-body="true",
tooltip-placement="bottom" tooltip-placement="bottom"
) )

View file

@ -24,7 +24,7 @@ block content
.row .row
.col-md-8.col-md-offset-2.bonus-banner .col-md-8.col-md-offset-2.bonus-banner
.title .title
a(href='https://twitter.com/share?text=is%20trying%20out%20the%20online%20LaTeX%20Editor%20ShareLaTeX&url=#{encodeURIComponent(buildReferalUrl("t"))}&counturl=https://www.sharelatex.com', target="_blank").twitter Tweet a(href='https://twitter.com/share?text=is%20trying%20out%20the%20online%20LaTeX%20Editor%20ShareLaTeX&url='+encodeURIComponent(buildReferalUrl("t"))+'&counturl=https://www.sharelatex.com', target="_blank").twitter Tweet
.row .row
.col-md-8.col-md-offset-2.bonus-banner .col-md-8.col-md-offset-2.bonus-banner
@ -34,12 +34,12 @@ block content
.row .row
.col-md-8.col-md-offset-2.bonus-banner .col-md-8.col-md-offset-2.bonus-banner
.title .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 #{translate("share_us_on_googleplus")} 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 .row
.col-md-8.col-md-offset-2.bonus-banner .col-md-8.col-md-offset-2.bonus-banner
.title .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 #{translate("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 .row
.col-md-8.col-md-offset-2.bonus-banner .col-md-8.col-md-offset-2.bonus-banner
@ -58,9 +58,9 @@ block content
.col-md-10.col-md-offset-1.bonus-banner(style="position: relative; height: 30px; margin-top: 20px;") .col-md-10.col-md-offset-1.bonus-banner(style="position: relative; height: 30px; margin-top: 20px;")
- for (var i = 0; i <= 10; i++) { - for (var i = 0; i <= 10; i++) {
- if (refered_user_count == i) - if (refered_user_count == i)
.number(style="left: #{i}0%").active #{i} .number(style="left: "+i+"0%").active #{i}
- else - else
.number(style="left: #{i}0%") #{i} .number(style="left: "+i+"0%") #{i}
- } - }
.row.ab-bonus .row.ab-bonus
@ -68,7 +68,7 @@ block content
.progress .progress
- if (refered_user_count == 0) - if (refered_user_count == 0)
div(style="text-align: center; padding: 4px;") #{translate("spread_the_word_and_fill_bar")} 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%") .progress-bar.progress-bar-info(style="width: "+refered_user_count+"0%")
.row.ab-bonus .row.ab-bonus
.col-md-10.col-md-offset-1.bonus-banner(style="position: relative; height: 70px;") .col-md-10.col-md-offset-1.bonus-banner(style="position: relative; height: 70px;")

View file

@ -19,11 +19,11 @@ block content
.row-fluid .row-fluid
table.table table.table
-each project in projects each project in projects
tr tr
- project_id = project._id.toString() - project_id = project._id.toString()
td(width="50%") #{project.name} td(width="50%") #{project.name}
td(width="25%") td(width="25%")
a.btn(href="/project/#{project_id}/zip") Download latest version as Zip a.btn(href="/project/"+project_id+"/zip") Download latest version as Zip
include general/small-footer include general/small-footer

View file

@ -5,4 +5,4 @@ script(type='text/ng-template', id='scribtexModalTemplate')
p ScribTeX has moved to <strong>https://scribtex.sharelatex.com</strong>. Please update your bookmarks. p ScribTeX has moved to <strong>https://scribtex.sharelatex.com</strong>. Please update your bookmarks.
p(style="text-align: center") You can find the page you were looking for here: p(style="text-align: center") You can find the page you were looking for here:
p(style="text-align: center") p(style="text-align: center")
a(href="https://scribtex.sharelatex.com#{scribtexPath}", style="font-size: 16px") https://scribtex.sharelatex.com#{scribtexPath} a(href="https://scribtex.sharelatex.com"+scribtexPath, style="font-size: 16px") https://scribtex.sharelatex.com#{scribtexPath}

View file

@ -1,12 +1,12 @@
- if (typeof(sentrySrc) != "undefined") - if (typeof(sentrySrc) != "undefined")
- if (sentrySrc.match(/^([a-z]+:)?\/\//i)) - if (sentrySrc.match(/^([a-z]+:)?\/\//i))
script(src="#{sentrySrc}") script(src=sentrySrc)
- else - else
script(src=buildJsPath("libs/#{sentrySrc}", {fingerprint:false})) script(src=buildJsPath("libs/"+sentrySrc, {fingerprint:false}))
- if (typeof(sentrySrc) != "undefined") - if (typeof(sentrySrc) != "undefined")
script(type="text/javascript"). script(type="text/javascript").
if (typeof(Raven) != "undefined" && Raven.config) { if (typeof(Raven) != "undefined" && Raven.config) {
Raven.config("#{sentryPublicDSN}", { Raven.config(sentryPublicDSN, {
tags: { 'commit': '@@COMMIT@@', 'build': '@@RELEASE@@' }, tags: { 'commit': '@@COMMIT@@', 'build': '@@RELEASE@@' },
release: '@@RELEASE@@', release: '@@RELEASE@@',
// Ignore list based off: https://gist.github.com/1878283 // Ignore list based off: https://gist.github.com/1878283

View file

@ -12,7 +12,7 @@ block scripts
mixin printPlan(plan) mixin printPlan(plan)
-if (!plan.hideFromUsers) -if (!plan.hideFromUsers)
tr(ng-controller="ChangePlanFormController", ng-init="plan=#{JSON.stringify(plan)}", ng-show="shouldShowPlan(plan.planCode)") tr(ng-controller="ChangePlanFormController", ng-init="plan="+JSON.stringify(plan), ng-show="shouldShowPlan(plan.planCode)")
td td
strong #{plan.name} strong #{plan.name}
td {{refreshPrice(plan.planCode)}} td {{refreshPrice(plan.planCode)}}
@ -22,18 +22,18 @@ mixin printPlan(plan)
| {{prices[plan.planCode]}} / #{translate("month")} | {{prices[plan.planCode]}} / #{translate("month")}
td td
-if (subscription.state == "free-trial") -if (subscription.state == "free-trial")
a(href="/user/subscription/new?planCode=#{plan.planCode}").btn.btn-success #{translate("subscribe_to_this_plan")} a(href="/user/subscription/new?planCode="+plan.planCode).btn.btn-success #{translate("subscribe_to_this_plan")}
-else if (typeof(subscription.planCode) != "undefined" && plan.planCode == subscription.planCode.split("_")[0]) -else if (typeof(subscription.planCode) != "undefined" && plan.planCode == subscription.planCode.split("_")[0])
button.btn.disabled #{translate("your_plan")} button.btn.disabled #{translate("your_plan")}
-else -else
form form
input(type="hidden", ng-model="plan_code", name="plan_code", value="#{plan.planCode}") input(type="hidden", ng-model="plan_code", name="plan_code", value=plan.planCode)
input(type="submit", ng-click="changePlan()", value=translate("change_to_this_plan")).btn.btn-success input(type="submit", ng-click="changePlan()", value=translate("change_to_this_plan")).btn.btn-success
mixin printPlans(plans) mixin printPlans(plans)
-each plan in plans each plan in plans
mixin printPlan(plan) +printPlan(plan)
block content block content
.content.content-alt(ng-cloak) .content.content-alt(ng-cloak)
@ -46,7 +46,7 @@ block content
| &nbsp; | &nbsp;
| #{translate("your_billing_details_were_saved")} | #{translate("your_billing_details_were_saved")}
.card(ng-if="view == 'overview'") .card(ng-if="view == 'overview'")
.page-header(x-current-plan="#{subscription.planCode}") .page-header(x-current-plan=subscription.planCode)
h1 #{translate("your_subscription")} h1 #{translate("your_subscription")}
- if (subscription && user._id+'' == subscription.admin_id+'') - if (subscription && user._id+'' == subscription.admin_id+'')
@ -97,9 +97,9 @@ block content
th !{translate("name")} th !{translate("name")}
th !{translate("price")} th !{translate("price")}
th th
mixin printPlans(plans.studentAccounts) +printPlans(plans.studentAccounts)
mixin printPlans(plans.individualMonthlyPlans) +printPlans(plans.individualMonthlyPlans)
mixin printPlans(plans.individualAnnualPlans) +printPlans(plans.individualAnnualPlans)
each groupSubscription in groupSubscriptions each groupSubscription in groupSubscriptions
@ -107,7 +107,7 @@ block content
div div
p !{translate("member_of_group_subscription", {admin_email: "<strong>" + groupSubscription.admin_id.email + "</strong>"})} p !{translate("member_of_group_subscription", {admin_email: "<strong>" + groupSubscription.admin_id.email + "</strong>"})}
span span
button.btn.btn-danger(ng-click="removeSelfFromGroup('#{groupSubscription.admin_id._id}')") #{translate("leave_group")} button.btn.btn-danger(ng-click="removeSelfFromGroup('"+groupSubscription.admin_id._id+"')") #{translate("leave_group")}
-if(subscription.groupPlan && user._id+'' == subscription.admin_id+'') -if(subscription.groupPlan && user._id+'' == subscription.admin_id+'')
div div

View file

@ -164,7 +164,7 @@ block content
ng-change="updateCountry()" ng-change="updateCountry()"
required required
) )
mixin countries_options() +countries_options()
span.input-feedback-message {{ simpleCCForm.country.$error.required ? 'This field is required' : '' }} span.input-feedback-message {{ simpleCCForm.country.$error.required ? 'This field is required' : '' }}
if (showVatField) if (showVatField)

View file

@ -6,7 +6,7 @@ block content
.container(ng-controller="AnnualUpgradeController") .container(ng-controller="AnnualUpgradeController")
.row(ng-cloak) .row(ng-cloak)
.col-md-6.col-md-offset-3 .col-md-6.col-md-offset-3
.card(ng-init="planName = #{JSON.stringify(planName)}") .card(ng-init="planName = "+JSON.stringify(planName))
.page-header .page-header
h1.text-centered #{translate("move_to_annual_billing")} h1.text-centered #{translate("move_to_annual_billing")}
div(ng-hide="upgradeComplete") div(ng-hide="upgradeComplete")

View file

@ -36,7 +36,7 @@ block content
placeholder="email@example.com" placeholder="email@example.com"
required, required,
ng-model="email", ng-model="email",
ng-init="email = #{JSON.stringify(email)}", ng-init="email = "+JSON.stringify(email),
ng-model-options="{ updateOn: 'blur' }", ng-model-options="{ updateOn: 'blur' }",
disabled disabled
) )

View file

@ -19,7 +19,7 @@ block content
placeholder='email@example.com', placeholder='email@example.com',
ng-model="email", ng-model="email",
ng-model-options="{ updateOn: 'blur' }", ng-model-options="{ updateOn: 'blur' }",
ng-init="email = #{JSON.stringify(email)}", ng-init="email = "+JSON.stringify(email),
focus="true" focus="true"
) )
span.small.text-primary(ng-show="loginForm.email.$invalid && loginForm.email.$dirty") span.small.text-primary(ng-show="loginForm.email.$invalid && loginForm.email.$dirty")

View file

@ -28,7 +28,7 @@ block content
placeholder="email@example.com" placeholder="email@example.com"
required, required,
ng-model="email", ng-model="email",
ng-init="email = #{JSON.stringify(user.email)}", ng-init="email = "+JSON.stringify(user.email),
ng-model-options="{ updateOn: 'blur' }" ng-model-options="{ updateOn: 'blur' }"
) )
span.small.text-primary(ng-show="settingsForm.email.$invalid && settingsForm.email.$dirty") span.small.text-primary(ng-show="settingsForm.email.$invalid && settingsForm.email.$dirty")