Skip to content

Commit 2157e8a

Browse files
committed
Improve copy on the stream index page
1 parent d11a5df commit 2157e8a

File tree

2 files changed

+33
-4
lines changed

2 files changed

+33
-4
lines changed

assets/css/_stream_list.scss

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
.stream-list {
1313
table {
14+
margin-top: 3rem;
1415
table-layout: fixed;
1516

1617
th, td {

lib/asciinema_web/controllers/stream_html/index.html.heex

+32-4
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,36 @@
1010
</div>
1111
</div>
1212

13+
<div :if={@streams.total_entries == 0}>
14+
<p>
15+
Create your first stream by clicking on the "Create new stream" button or by starting a new streaming session in your terminal.
16+
</p>
17+
</div>
18+
19+
<div>
20+
<p>To start a new streaming session and expose it via {@conn.host} run:</p>
21+
22+
<pre><code>asciinema stream -r</code></pre>
23+
24+
<p>
25+
<small class="text-muted">
26+
You need asciinema CLI version <a href="https://github.com/asciinema/asciinema/releases/tag/v3.0.0-rc.3">3.0 or later</a>.
27+
</small>
28+
</p>
29+
30+
<p>
31+
The above command will automatically create a new stream ID and start streaming your terminal.
32+
</p>
33+
34+
<div :if={@streams.total_entries > 0}>
35+
<p>
36+
If you want to stream using an existing stream configuration then choose an ID from the table below and run:
37+
</p>
38+
39+
<pre><code>asciinema stream -r <em>STREAM-ID</em></code></pre>
40+
</div>
41+
</div>
42+
1343
<div :if={@streams.total_entries > 0} class="row stream-list">
1444
<div class="col-md-12">
1545
<table class="table">
@@ -83,10 +113,8 @@
83113
</table>
84114
</div>
85115

86-
<div :if={@streams.total_pages > 1} class="row">
87-
<div class="col">
88-
{pagination_links(@streams)}
89-
</div>
116+
<div :if={@streams.total_pages > 1} class="col">
117+
{pagination_links(@streams)}
90118
</div>
91119
</div>
92120
</div>

0 commit comments

Comments
 (0)