2016-10-06 10:49:47 -04:00
|
|
|
extends ../layout
|
|
|
|
|
2016-10-07 05:52:58 -04:00
|
|
|
|
2021-03-26 05:52:42 -04:00
|
|
|
block append meta
|
|
|
|
meta(name="ol-otherSessions" data-type="json" content=sessions)
|
2016-10-07 05:52:58 -04:00
|
|
|
|
|
|
|
|
2016-10-06 10:49:47 -04:00
|
|
|
block content
|
2021-03-04 11:11:09 -05:00
|
|
|
main.content.content-alt
|
2016-10-06 10:49:47 -04:00
|
|
|
.container
|
|
|
|
.row
|
|
|
|
.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2
|
2016-10-07 05:52:58 -04:00
|
|
|
.card.clear-user-sessions(ng-controller="ClearSessionsController", ng-cloak)
|
2016-10-06 10:49:47 -04:00
|
|
|
.page-header
|
|
|
|
h1 #{translate("your_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
|
|
|
|
|
|
|
div
|
|
|
|
div(ng-if="state.otherSessions.length == 0")
|
|
|
|
p.text-center
|
|
|
|
| #{translate("no_other_sessions")}
|
|
|
|
|
|
|
|
div(ng-if="state.success == true")
|
|
|
|
p.text-success.text-center
|
|
|
|
| #{translate('clear_sessions_success')}
|
|
|
|
|
|
|
|
div(ng-if="state.otherSessions.length != 0")
|
|
|
|
table.table.table-striped
|
|
|
|
thead
|
|
|
|
tr
|
|
|
|
th #{translate("ip_address")}
|
|
|
|
th #{translate("session_created_at")}
|
|
|
|
tr(ng-repeat="session in state.otherSessions")
|
|
|
|
td {{session.ip_address}}
|
|
|
|
td {{session.session_created | formatDate}}
|
|
|
|
|
|
|
|
p.actions
|
|
|
|
.text-center
|
|
|
|
button.btn.btn-lg.btn-primary(
|
|
|
|
ng-click="clearSessions()"
|
|
|
|
) #{translate('clear_sessions')}
|
|
|
|
|
|
|
|
div(ng-if="state.error == true")
|
|
|
|
p.text-danger.error
|
|
|
|
| #{translate('generic_something_went_wrong')}
|