link to live

This commit is contained in:
Torsten 2023-05-14 16:26:52 +03:00
parent 78f47614fa
commit e55936c8c3
2 changed files with 12 additions and 1 deletions

View File

@ -1564,6 +1564,10 @@ select {
margin-right: 0.5rem; margin-right: 0.5rem;
} }
.ml-2 {
margin-left: 0.5rem;
}
.mt-8 { .mt-8 {
margin-top: 2rem; margin-top: 2rem;
} }
@ -2260,6 +2264,11 @@ select {
background-color: rgb(254 243 199 / var(--tw-bg-opacity)); background-color: rgb(254 243 199 / var(--tw-bg-opacity));
} }
.bg-blue-100 {
--tw-bg-opacity: 1;
background-color: rgb(219 234 254 / var(--tw-bg-opacity));
}
.bg-cyan-50 { .bg-cyan-50 {
--tw-bg-opacity: 1; --tw-bg-opacity: 1;
background-color: rgb(236 254 255 / var(--tw-bg-opacity)); background-color: rgb(236 254 255 / var(--tw-bg-opacity));

View File

@ -34,8 +34,10 @@
%td.whitespace-nowrap.px-4.py-2 %td.whitespace-nowrap.px-4.py-2
%strong.rounded.bg-green-100.px-3.text-xs.font-medium.text-green-700{:class => "py-1.5"} %strong.rounded.bg-green-100.px-3.text-xs.font-medium.text-green-700{:class => "py-1.5"}
= link_to 'Sections', merged.page_sections_path(page.id) = link_to 'Sections', merged.page_sections_path(page.id)
%strong.rounded.bg-amber-100.px-3.text-xs.font-medium.text-amber-700{:class => "py-1.5"} %strong.ml-2.rounded.bg-amber-100.px-3.text-xs.font-medium.text-amber-700{:class => "py-1.5"}
= link_to 'Edit', merged.page_path(page.id) = link_to 'Edit', merged.page_path(page.id)
%strong.ml-2.rounded.bg-blue-100.px-3.text-xs.font-medium.text-amber-700{:class => "py-1.5"}
=link_to "View live" , "/#{page.name}" , target: page.name
.flex.mx-20.new_page .flex.mx-20.new_page
= form_tag( merged.pages_path , {method: :post } ) do = form_tag( merged.pages_path , {method: :post } ) do