|
3 | 3 | .settings-page |
4 | 4 | h1 My Saved Searches |
5 | 5 |
|
6 | | - = link_to "New saved search", new_settings_saved_search_path, class: "button-primary" |
| 6 | + .saved-searches-section |
| 7 | + .saved-searches-new-button-section |
| 8 | + = link_to "New saved search", new_settings_saved_search_path, class: "button-primary" |
7 | 9 |
|
8 | | - - if @saved_searches.any? |
9 | | - h2 My Searches |
10 | | - .email-table-wrap |
11 | | - table.email-table |
12 | | - thead |
13 | | - tr |
14 | | - th Name |
15 | | - th Query |
16 | | - th Actions |
17 | | - tbody |
18 | | - - @saved_searches.each do |ss| |
| 10 | + - if @saved_searches.any? |
| 11 | + h2 My Searches |
| 12 | + .email-table-wrap |
| 13 | + table.email-table |
| 14 | + thead |
19 | 15 | tr |
20 | | - td = ss.name |
21 | | - td |
22 | | - code = ss.query |
23 | | - td |
24 | | - = link_to "Edit", edit_settings_saved_search_path(ss), class: "button-secondary button-small" |
25 | | - = button_to "Delete", settings_saved_search_path(ss), method: :delete, class: "button-danger-secondary button-small", data: { turbo_confirm: "Delete this saved search?" } |
| 16 | + th Name |
| 17 | + th Query |
| 18 | + th Actions |
| 19 | + tbody |
| 20 | + - @saved_searches.each do |ss| |
| 21 | + tr |
| 22 | + td = ss.name |
| 23 | + td |
| 24 | + code = ss.query |
| 25 | + td |
| 26 | + = link_to "Edit", edit_settings_saved_search_path(ss), class: "button-secondary button-small" |
| 27 | + = button_to "Delete", settings_saved_search_path(ss), method: :delete, class: "button-danger-secondary button-small", data: { turbo_confirm: "Delete this saved search?" } |
26 | 28 |
|
27 | | - - if @global_searches.any? |
28 | | - h2 Global Searches |
29 | | - p.settings-hint These are visible to everyone. You can hide them from your sidebar. |
30 | | - .email-table-wrap |
31 | | - table.email-table |
32 | | - thead |
33 | | - tr |
34 | | - th Name |
35 | | - th Query |
36 | | - th Visible |
37 | | - tbody |
38 | | - - @global_searches.each do |ss| |
| 29 | + - if @global_searches.any? |
| 30 | + h2 Global Searches |
| 31 | + p.settings-hint These are visible to everyone. You can hide them from your sidebar. |
| 32 | + .email-table-wrap |
| 33 | + table.email-table |
| 34 | + thead |
39 | 35 | tr |
40 | | - td = ss.name |
41 | | - td |
42 | | - code = ss.query |
43 | | - td |
44 | | - - hidden = @hidden_ids.include?(ss.id) |
45 | | - = button_to hidden ? "Show" : "Hide", settings_saved_search_preferences_path(saved_search_id: ss.id, hidden: !hidden), method: :post, class: "button-secondary button-small" |
| 36 | + th Name |
| 37 | + th Query |
| 38 | + th Visible |
| 39 | + tbody |
| 40 | + - @global_searches.each do |ss| |
| 41 | + tr |
| 42 | + td = ss.name |
| 43 | + td |
| 44 | + code = ss.query |
| 45 | + td |
| 46 | + - hidden = @hidden_ids.include?(ss.id) |
| 47 | + = button_to hidden ? "Show" : "Hide", settings_saved_search_preferences_path(saved_search_id: ss.id, hidden: !hidden), method: :post, class: "button-secondary button-small" |
46 | 48 |
|
47 | | - - if @system_searches.any? |
48 | | - h2 Default Searches |
49 | | - p.settings-hint These are provided by the site administrators. You can hide them from your sidebar. |
50 | | - .email-table-wrap |
51 | | - table.email-table |
52 | | - thead |
53 | | - tr |
54 | | - th Name |
55 | | - th Query |
56 | | - th Visible |
57 | | - tbody |
58 | | - - @system_searches.each do |ss| |
| 49 | + - if @system_searches.any? |
| 50 | + h2 Default Searches |
| 51 | + p.settings-hint These are provided by the site administrators. You can hide them from your sidebar. |
| 52 | + .email-table-wrap |
| 53 | + table.email-table |
| 54 | + thead |
59 | 55 | tr |
60 | | - td = ss.name |
61 | | - td |
62 | | - code = ss.query |
63 | | - td |
64 | | - - hidden = @hidden_ids.include?(ss.id) |
65 | | - = button_to hidden ? "Show" : "Hide", settings_saved_search_preferences_path(saved_search_id: ss.id, hidden: !hidden), method: :post, class: "button-secondary button-small" |
| 56 | + th Name |
| 57 | + th Query |
| 58 | + th Visible |
| 59 | + tbody |
| 60 | + - @system_searches.each do |ss| |
| 61 | + tr |
| 62 | + td = ss.name |
| 63 | + td |
| 64 | + code = ss.query |
| 65 | + td |
| 66 | + - hidden = @hidden_ids.include?(ss.id) |
| 67 | + = button_to hidden ? "Show" : "Hide", settings_saved_search_preferences_path(saved_search_id: ss.id, hidden: !hidden), method: :post, class: "button-secondary button-small" |
0 commit comments