2021-09-29 05:04:58 -04:00
|
|
|
extends ../layout-marketing
|
2016-10-07 05:52:58 -04:00
|
|
|
|
2016-10-06 10:49:47 -04:00
|
|
|
block content
|
2021-07-27 09:23:05 -04:00
|
|
|
main.content.content-alt#main-content
|
2016-10-06 10:49:47 -04:00
|
|
|
.container
|
|
|
|
.row
|
|
|
|
.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2
|
2021-09-29 05:04:58 -04:00
|
|
|
.card.clear-user-sessions
|
2016-10-06 10:49:47 -04:00
|
|
|
.page-header
|
|
|
|
h1 #{translate("your_sessions")}
|
2016-10-07 05:52:58 -04:00
|
|
|
|
2021-10-28 09:01:09 -04:00
|
|
|
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")}
|
2016-10-07 05:52:58 -04:00
|
|
|
div
|
|
|
|
p.small
|
2017-02-17 06:05:17 -05:00
|
|
|
| !{translate("clear_sessions_description")}
|
2016-10-07 05:52:58 -04:00
|
|
|
|
2021-09-29 05:04:58 -04:00
|
|
|
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)
|
2016-10-07 05:52:58 -04:00
|
|
|
p.text-center
|
|
|
|
| #{translate("no_other_sessions")}
|
|
|
|
|
2021-09-29 05:04:58 -04:00
|
|
|
p.text-success.text-center
|
|
|
|
| #{translate('clear_sessions_success')}
|
2022-04-27 04:42:39 -04:00
|
|
|
.page-separator
|
2022-11-14 10:07:21 -05:00
|
|
|
a.btn.btn-secondary.text-capitalize(href='/user/settings') #{translate('back_to_account_settings')}
|
2022-04-27 04:42:39 -04:00
|
|
|
|
|
2022-11-14 10:07:21 -05:00
|
|
|
a.btn.btn-secondary.text-capitalize(href='/project') #{translate('back_to_your_projects')}
|