fix updated_by

This commit is contained in:
2023-01-25 01:16:05 +02:00
parent 3660f9e8e2
commit bafe142a3b
10 changed files with 121 additions and 18 deletions

View File

@ -12,7 +12,7 @@
- if false
%script{:src => "https://cdn.tailwindcss.com"}
%body.max-w-screen-2xl.2xl:mx-auto
%body
= render "layouts/merged/header"
= render "layouts/merged/messages"
= yield

View File

@ -5,7 +5,8 @@
Cards
= link_to( "New Card" , merged.new_section_card_path(@section.id) , class: "p-2 border border-gray-200 bg-cyan-100 font-bold rounded-lg hover:bg-sky-100")
= render_section( @section )
.xl:mx-auto{class: "max-w-[1920px]"}
= render_section( @section )
- @section.cards.each_with_index do |card , index|
.flex.gap-10.px-20.pt-4.pb-2.mb-2.border.border-2.bg-neutral-50.border-slate-400{ id: "card_#{card.id}"}
@ -27,7 +28,7 @@
= distance_of_time_in_words_to_now(card.updated_at)
.basis-full.mb-3
Updated by:
= card.updated_by
= updated_by(card)
.basis-full.mb-3
= form_for( card , {method: :delete } ) do
%button.button.remove.mt-4{type: :submit} Delete Card

View File

@ -29,7 +29,7 @@
= distance_of_time_in_words_to_now(section.updated_at)
.basis-full.mb-3
Updated by:
= section.updated_by
= updated_by(section)
- if section.has_cards?
- if card = section.cards_update
.basis-full

View File

@ -3,7 +3,8 @@
= link_to( merged.new_page_section_path(@section.page.id) ) do
.button.change New Section
= render_section( @section )
.xl:mx-auto{class: "max-w-[1920px]"}
= render_section( @section )
.flex.gap-8.my-10.flex-wrap.mx-20
.basis-80
@ -18,7 +19,7 @@
= distance_of_time_in_words_to_now(@section.updated_at)
.basis-full.mb-3
Updated by:
= @section.updated_by
= updated_by(@section)
= simple_form_for( @section , method: :patch ) do |f|
= f.input :page_id , label: "move to page" , include_blank: false ,
collection: Merged::Page.all.collect{|p| [p.name , p.id]}