From 657e08faecba490c9c30f0e46a3d07b8c87db8a9 Mon Sep 17 00:00:00 2001 From: viktorvsk Date: Thu, 23 Apr 2026 04:56:03 +0000 Subject: [PATCH] feat: add progress bar to filter page --- app/views/filter/show.html.erb | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/app/views/filter/show.html.erb b/app/views/filter/show.html.erb index 073fb1e..106f179 100644 --- a/app/views/filter/show.html.erb +++ b/app/views/filter/show.html.erb @@ -27,6 +27,12 @@ <%= link_to "word list", words_path, class: "link-muted" %> + <% if @total > 0 %> +
+
+
+ <% end %> +
@@ -50,7 +56,7 @@
<%= form_with url: filter_learning_path(@word), method: :post, id: "form-left", class: "inline-form", data: { turbo_frame: "_top" } do |f| %> - <%= f.submit "Learning ←", class: "btn btn-learning" %> + <%= f.submit "Learning ←", class: "btn btn-learning" %> <% end %> <%= form_with url: filter_skip_path(@word), method: :post, id: "form-skip", class: "inline-form", @@ -60,14 +66,14 @@ <%= form_with url: filter_known_path(@word), method: :post, id: "form-right", class: "inline-form", data: { turbo_frame: "_top" } do |f| %> - <%= f.submit "Known →", class: "btn btn-known" %> + <%= f.submit "Known →", class: "btn btn-known" %> <% end %>
- Learning    + Learning    Space Flip    - Known    + Known    S Skip