* Create decapitalize.sh script * Remove `text-capitalize` classes, rely on translations instead * `Account Linking` -> `Account linking` * `Account Settings` -> `Account settings` * `Add Affiliation` -> `Add affiliation` * `Add Email` -> `Add email` * `Add Files` -> `Add files` * `Add to Dictionary` -> `Add to dictionary` * `All Projects` -> `All projects` * `All Templates` -> `All templates` * `Archive Projects` -> `Archive projects` * `Archived Projects` -> `Archived projects` * `Auto Compile` -> `Auto compile` * `Back to Subscription` -> `Back to subscription` * `Blank Project` -> `Blank project` * `Change Password` -> `Change password` * `Change Project Owner` -> `Change project owner` * `Clear Sessions` -> `Clear sessions` * `Company Name` -> `Company name` * `Compile Error Handling` -> `Compile error handling` * `Compile Mode` -> `Compile mode` * `Compromised Password` -> `Compromised password` * `Confirm Affiliation` -> `Confirm affiliation` * `Confirm Email` -> `Confirm email` * `Connected Users` -> `Connected users` * `Contact Sales` -> `Contact sales` * `Contact Support` -> `Contact support` * `Contact Us` -> `Contact us` * `Copy Project` -> `Copy project` * `Delete Account` -> `Delete account` * `Emails and Affiliations` -> `Emails and affiliations` * `Git Integration` -> `Git integration` * `Group Settings` -> `Group settings` * `Link Accounts` -> `Link accounts` * `Make Primary` -> `Make primary` * `Mendeley Integration` -> `Mendeley integration` * `Papers Integration` -> `Papers integration` * `Project Synchronisation` -> `Project synchronisation` * `Sessions Cleared` -> `Sessions cleared` * `Stop Compilation` -> `Stop compilation` * `Update Account Info` -> `Update account info` * `the Sales team` -> `the sales team` * `your Group settings` -> `your group settings` * `Zotero Integration` -> `Zotero integration` * Update decapitalize.sh * Decapitalize some translations * `Example Project` -> `Example project` * `New Project` -> `New project` * `New Tag` -> `New tag` * `Trashed Projects` -> `Trashed projects` * `Upload Project` -> `Upload project` * `Your Projects` -> `Your projects` * Revert "Create decapitalize.sh script" This reverts commit 8c79f367096c206c704c7c01e3572a18f3961d5e. * Revert changes to stories * Fix tests * `Contact us of` -> `Contact us if` * Make `Contact us` bold in tex files * `sales team` -> `Sales team` * `Link accounts and Add email` -> `Link accounts and add email` * `Make Private` -> `Make private` * `contact support` -> `contact Support` * Make `Make primary` tests case sensitive * Use `add_email` translation string * Revert changes to non-english locales * Remove redundant `Account settings` translation * `New project Name` -> `New project name` GitOrigin-RevId: 675c46f96ddbf3d259a8d723fed62aa4a7ed40b7
73 lines
2.2 KiB
Plaintext
73 lines
2.2 KiB
Plaintext
extends ../layout-marketing
|
|
|
|
block vars
|
|
- bootstrap5PageStatus = 'disabled'
|
|
|
|
block content
|
|
main.content.content-alt#main-content
|
|
.container
|
|
.row
|
|
.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2
|
|
.card.clear-user-sessions
|
|
.page-header
|
|
h1 #{translate("your_sessions")}
|
|
|
|
if currentSession.ip_address && currentSession.session_created
|
|
h3 #{translate("current_session")}
|
|
div
|
|
table.table.table-striped
|
|
thead
|
|
tr
|
|
th #{translate("ip_address")}
|
|
th #{translate("session_created_at")}
|
|
tr
|
|
td #{currentSession.ip_address}
|
|
td #{moment(currentSession.session_created).utc().format('Do MMM YYYY, h:mm a')} UTC
|
|
|
|
h3 #{translate("other_sessions")}
|
|
div
|
|
p.small
|
|
| !{translate("clear_sessions_description")}
|
|
|
|
form(
|
|
data-ol-async-form
|
|
action='/user/sessions/clear'
|
|
method='POST'
|
|
)
|
|
input(name='_csrf' type='hidden' value=csrfToken)
|
|
div(data-ol-not-sent)
|
|
if sessions.length == 0
|
|
p.text-center
|
|
| #{translate("no_other_sessions")}
|
|
|
|
if sessions.length > 0
|
|
table.table.table-striped
|
|
thead
|
|
tr
|
|
th #{translate("ip_address")}
|
|
th #{translate("session_created_at")}
|
|
for session in sessions
|
|
tr
|
|
td #{session.ip_address}
|
|
td #{moment(session.session_created).utc().format('Do MMM YYYY, h:mm a')} UTC
|
|
|
|
p.actions
|
|
.text-center
|
|
button.btn.btn-lg.btn-primary(
|
|
type="submit"
|
|
data-ol-disable-inflight
|
|
)
|
|
span(data-ol-inflight="idle") #{translate('clear_sessions')}
|
|
span(hidden data-ol-inflight="pending") #{translate("processing")}…
|
|
|
|
div(hidden data-ol-sent)
|
|
p.text-center
|
|
| #{translate("no_other_sessions")}
|
|
|
|
p.text-success.text-center
|
|
| #{translate('clear_sessions_success')}
|
|
.page-separator
|
|
a.btn.btn-secondary(href='/user/settings') #{translate('back_to_account_settings')}
|
|
|
|
|
a.btn.btn-secondary(href='/project') #{translate('back_to_your_projects')}
|