Sha256: f629c7a0badefb2f9825ac037bcbe4b53acba780d7364b9f07ad779469e3b8af
Contents?: true
Size: 1.97 KB
Versions: 3
Compression:
Stored size: 1.97 KB
Contents
<div class="item_show__header"> <h2 class="item_show__header-title"> <%= t(".title") %> <%= link_to t(".new"), decidim_admin_decidim_awesome.new_custom_redirect_path, class: "button button__secondary button__xs tiny button--title text-white" %> </h2> </div> <div class="card"> <div class="card-section p-4"> <p class="help-text -mt-2 mb-4"><%= t(".description").html_safe %></p> <div class="table-scroll decidim_awesome-form"> <table class="table-list custom-redirections-table"> <thead> <tr> <th><%= t("custom_redirect.active", scope: "activemodel.attributes") %></th> <th><%= t("custom_redirect.origin", scope: "activemodel.attributes") %></th> <th><%= t("custom_redirect.destination", scope: "activemodel.attributes") %></th> <th class="redirect-status"><%= link_to(t(".check_redirections"), "#", class: "button button__secondary button__xs pull-right secondary check-custom-redirections") if current_config.present? %></th> <th class="actions"><%= t("decidim.decidim_awesome.admin.actions") %></th> </tr> </thead> <tbody> <% current_config.each do |origin, item| %> <tr class="custom-redirection" data-origin="<%= origin %>" data-item="<%= item.to_json %>"> <td><%= check item["active"] %></td> <td><%= link_to origin, origin, target: "_blank" %></td> <td><%= item["destination"] %></td> <td class="redirect-status"></td> <td class="table-list__actions"> <%= icon_link_to "pencil-line", decidim_admin_decidim_awesome.edit_custom_redirect_path(md5(origin)), t(".edit"), class: "action-icon--edit" %> <%= icon_link_to "close-circle-line", decidim_admin_decidim_awesome.custom_redirect_path(md5(origin)), t(".remove"), method: :delete, class: "action-icon--remove", data: { confirm: t(".confirm_destroy") } %> </td> </tr> <% end %> </tbody> </table> </div> </div>
Version data entries
3 entries across 3 versions & 1 rubygems