Sha256: 9ee7f1beee2e3e6abbb1ea283095ee11298114a0d8561657e5772346fd1d6bfa
Contents?: true
Size: 1.08 KB
Versions: 14
Compression:
Stored size: 1.08 KB
Contents
.box.translations = active_link_to edit_occams_admin_cms_site_page_path(@site, @page), class: "btn btn-block btn-sm btn-light text-left text-truncate mb-1" do = content_tag(:span, @site.locale, class: "badge badge-light text-uppercase") = @page.label - @page.translations.each do |translation| .btn-group.btn-group-sm.d-flex.mb-1 - url = edit_occams_admin_cms_site_page_translation_path(@site, @page, translation) - published_css_class = translation.is_published? ? "published" : "draft" = active_link_to url, class: "#{published_css_class} translation btn text-left text-truncate btn-light w-100" do = content_tag(:span, translation.locale, class: "badge badge-light text-uppercase") = translation.label - url = occams_admin_cms_site_page_translation_path(@site, @page, translation) = link_to url, method: :delete, data: {confirm: t(".confirm")}, class: "btn btn-danger" do %i.fas.fa-fw.fa-times = link_to t(".new"), new_occams_admin_cms_site_page_translation_path(@site, @page), class: "btn btn-sm btn-secondary d-block mb-1"
Version data entries
14 entries across 14 versions & 1 rubygems