+
+ {scrobble_rule.match_value}
+
+
+ {scrobble_rule.target_musicbrainz_id}
+
+
+ {scrobble_rule.description}
+
+
+
+
<.status_badge enabled={scrobble_rule.enabled} />
-
- <:cell>{scrobble_rule.description}
- <:cell>{Calendar.strftime(scrobble_rule.inserted_at, "%Y-%m-%d")}
- <:cell>
- <.dropdown id={"actions-#{scrobble_rule.id}"} placement="bottom-end">
- <:toggle>
-
- {gettext("Actions")}
- <.icon
- name="hero-ellipsis-vertical"
- class="-mt-1 h-5 w-5 text-zinc-500 dark:text-zinc-400 cursor-pointer"
- aria-hidden="true"
- data-slot="icon"
- />
-
-
- <.dropdown_button phx-click="apply_rule" phx-value-id={scrobble_rule.id}>
- {gettext("Apply rule")}
-
- <.dropdown_button phx-click="toggle_enabled" phx-value-id={scrobble_rule.id}>
- {if scrobble_rule.enabled, do: gettext("Disable rule"), else: gettext("Enable rule")}
-
- <.dropdown_link
- id={"actions-#{scrobble_rule.id}-edit"}
- patch={~p"/scrobble-rules/#{scrobble_rule}/edit"}
- >
- {gettext("Edit")}
-
- <.separator />
- <.dropdown_button
- phx-click="delete"
- phx-value-id={scrobble_rule.id}
- data-confirm={gettext("Are you sure?")}
- class={[
- "text-red-900! hover:bg-red-50! dark:text-red-500! dark:hover:bg-red-900/30! dark:hover:text-red-600!"
- ]}
- >
- {gettext("Delete")}
-
-
-
-
-
-
+
+
+ {Calendar.strftime(scrobble_rule.inserted_at, "%Y-%m-%d")}
+
+
+
+ <.dropdown id={"actions-#{scrobble_rule.id}"} placement="bottom-end">
+ <:toggle>
+
+ {gettext("Actions")}
+ <.icon
+ name="hero-ellipsis-vertical"
+ class="-mt-1 h-5 w-5 text-zinc-500 dark:text-zinc-400 cursor-pointer"
+ aria-hidden="true"
+ data-slot="icon"
+ />
+
+
+ <.dropdown_button phx-click="apply_rule" phx-value-id={scrobble_rule.id}>
+ {gettext("Apply rule")}
+
+ <.dropdown_button phx-click="toggle_enabled" phx-value-id={scrobble_rule.id}>
+ {if scrobble_rule.enabled, do: gettext("Disable rule"), else: gettext("Enable rule")}
+
+ <.dropdown_link
+ id={"actions-#{scrobble_rule.id}-edit"}
+ patch={~p"/scrobble-rules/#{scrobble_rule}/edit"}
+ >
+ {gettext("Edit")}
+
+ <.separator />
+ <.dropdown_button
+ phx-click="delete"
+ phx-value-id={scrobble_rule.id}
+ data-confirm={gettext("Are you sure?")}
+ class={[
+ "text-red-900! hover:bg-red-50! dark:text-red-500! dark:hover:bg-red-900/30! dark:hover:text-red-600!"
+ ]}
+ >
+ {gettext("Delete")}
+
+
+
+