Files
fizzy/app/views/commands/index.html.erb
T
Jason Zimdars d02501e008 Show help if you arrow-up but don't have any previous commands yet
- @jorgemanrubia this is a little fragile because it relies on CSS `:empty` which fails if any whitespace is present, which is why I needed to make the `<ul>` a one-liner. If we like this we may want to implement something more robust
2025-05-08 13:03:47 -05:00

6 lines
277 B
Plaintext

<%= turbo_frame_tag :recent_commands do %>
<ul class="terminal__menu flex-column txt-align-start margin-none margin-block-end unpad" aria-label="Recent commands"><%= render partial: "commands/command", collection: @commands %></ul>
<%= render "commands/help" %>
<% end %>