diff --git a/app/views/asciicasts/index.html.erb b/app/views/asciicasts/index.html.erb new file mode 100644 index 0000000..f155b43 --- /dev/null +++ b/app/views/asciicasts/index.html.erb @@ -0,0 +1,36 @@ +<% content_for(:title, page.category_name) %> + +
+
+
+
+ <%= render 'shared/browse_categories', current_category: page.category %> +
+ +
+
+
+

<%= page.category_name %>

+
+ +
+
+ Sort by +
+ <%= link_to 'recency', "?order=recency", class: "btn btn-default #{'active' if page.order == :recency}" %> + <%= link_to 'popularity', "?order=popularity", class: "btn btn-default #{'active' if page.order == :popularity}" %> +
+
+
+
+ +
+
+ <%= render 'asciicasts/previews', asciicasts: page.items, per_row: 2 %> + <%= paginate page.items %> +
+
+
+
+
+
diff --git a/app/views/asciicasts/index.html.slim b/app/views/asciicasts/index.html.slim deleted file mode 100644 index 7e7e308..0000000 --- a/app/views/asciicasts/index.html.slim +++ /dev/null @@ -1,32 +0,0 @@ -- content_for(:title, page.category_name) - -.asciicasts-list-page - .container - .row - .col-md-3 - = render 'shared/browse_categories', current_category: page.category - - .col-md-9 - .row - .col-md-6 - h2 = page.category_name - - .col-md-6.text-right - .sorting - span Sort by - .btn-group.text-left - button.btn.btn-default.dropdown-toggle[type="button" data-toggle="dropdown"] - | #{page.order} - span.caret - ul.dropdown-menu[role="menu"] - li - a href="?order=recency" - | recency - li - a href="?order=popularity" - | popularity - - .row.asciicast-list - .col-md-12 - = render 'asciicasts/previews', asciicasts: page.items, per_row: 2 - = paginate page.items