mirror of
https://github.com/syssecfsu/witty.git
synced 2024-12-25 04:02:36 +01:00
50 lines
2.3 KiB
HTML
50 lines
2.3 KiB
HTML
<div class="tab-pane {{.active0}}" id="interactive-cnt" role="tabpanel" aria-labelledby="interactive-tab">
|
|
<div class="card-deck row justify-content-center">
|
|
|
|
<!-- repeat this for each interactive session -->
|
|
{{range .players}}
|
|
<div class="card shadow-sm border-danger bg-white mb-3" style="width: 16rem; margin:1em;">
|
|
<div class="card-body">
|
|
<h5 class="card-title">Interactive session</h5>
|
|
<p class="card-text">From <em>{{.Ip}}</em>, running <strong>{{.Cmd}}</strong>, session ID:
|
|
<u>{{.Id}}</u>
|
|
</p>
|
|
<a class="btn btn-outline-success btn-sm float-end" href="/view/{{.Id}}" target="_blank" role="button">
|
|
<img src="/assets/img/view.svg" height="18px">
|
|
</a>
|
|
</div>
|
|
</div>
|
|
{{end}}
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<div class="tab-pane {{.active1}}" id="saved-cnt" role="tabpanel" aria-labelledby="saved-tab">
|
|
<div class="card-deck row justify-content-center">
|
|
|
|
<!-- repeat this for each recorded session -->
|
|
{{range .records}}
|
|
<div class="card shadow-sm border-info bg-light mb-3" style="width: 16rem; margin:1em;">
|
|
<div class="card-body">
|
|
<h5 class="card-title">Recorded session</h5>
|
|
<p class="card-text">File name: <u>{{.Fname}}</u>, file size: <em>{{.Fsize}}KB</em>,
|
|
recorded at <strong>{{.Time}}</strong>, duration: <mark>{{.Duration}}s</mark>,
|
|
</p>
|
|
<div class="btn-toolbar float-end" role="toolbar" aria-label="records buttons">
|
|
<a class="btn btn-outline-success btn-sm m-1" href="/replay/{{.Fname}}" target="_blank"
|
|
role="button">
|
|
<img src="/assets/img/play.svg" height="18px">
|
|
</a>
|
|
<a class="btn btn-outline-success btn-sm m-1" href="/records/{{.Fname}}" role="button" download>
|
|
<img src="/assets/img/download.svg" height="18px">
|
|
</a>
|
|
<button type="button" class="btn btn-outline-success btn-sm m-1" onclick="del_btn({{.Fname}})">
|
|
<img src="/assets/img/delete.svg" height="18px">
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{{end}}
|
|
|
|
</div>
|
|
</div> |