Trying to expand tag menu

This commit is contained in:
Chaska 2024-04-26 19:10:57 -05:00
parent 41db8d8e00
commit 249435cd15
2 changed files with 6 additions and 2 deletions

View file

@ -13,6 +13,10 @@
= link "Usage", to: Routes.tag_detail_path(@conn, :index, @tag), class: "detail-link"
= if manages_dnp?(@conn) do
= link "Create new DNP entry", to: Routes.dnp_entry_path(@conn, :new, tag_id: @tag.id), class: "detail-link"
= if manages_tags?(@conn) do
= link "Edit spoiler image", to: Routes.tag_image_path(@conn, :edit, @tag)
= if can?(@conn, :alias, @tag) do
= link "Edit aliases", to: Routes.tag_alias_path(@conn, :edit, @tag)
br

View file

@ -44,10 +44,10 @@ br
label for="tag-management" Tag Processing
.toggle-box-container
.toggle-box-container__content
= button_to "Rebuild index", Routes.tag_reindex_path(@conn, :create, @tag), method: "post", class: "button", data: [confirm: "Are you really, really sure?", disable_with: raw("Reindexing…")]
= button_to "Rebuild index", Routes.tag_reindex_path(@conn, :create, @tag), method: "post", class: "button", data: [confirm: "Is chu weawwy~ weawwy suwe?", disable_with: raw("Reindexing…")]
p Use this if the tag displays the wrong number of images or returns the wrong search results.
= button_to "Destroy tag", Routes.tag_path(@conn, :delete, @tag), method: "delete", class: "button button--state-danger", data: [confirm: "Are you really, really sure?", disable_with: raw("Deleting…")]
= button_to "Destroy tag", Routes.tag_path(@conn, :delete, @tag), method: "delete", class: "button button--state-danger", data: [confirm: "Is chu weawwy~ weawwy suwe?", disable_with: raw("Deleting…")]
p
strong Irreversible. Use with extreme caution!
ul