mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-14 20:40:17 -05:00
f0ac0f3e7a
Create Email Preferences Page GitOrigin-RevId: 371a62e8423e5cbebff83e61bf35a8b3b638c398
73 lines
2.3 KiB
Text
73 lines
2.3 KiB
Text
extends ../layout-marketing
|
|
|
|
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")}
|
|
|
|
div(ng-if="state.success == true")
|
|
p.text-success.text-center
|
|
| #{translate('clear_sessions_success')}
|
|
|
|
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-default.text-capitalize(href='/user/settings') #{translate('back_to_account_settings')}
|
|
|
|
|
a.btn.btn-default.text-capitalize(href='/project') #{translate('back_to_your_projects')}
|