adding rugged, starting changes controller

This commit is contained in:
2022-12-03 19:26:53 +02:00
parent ecaf0eb587
commit d7f55540b3
9 changed files with 43 additions and 19 deletions

View File

@ -0,0 +1,13 @@
%p= @git.workdir
%p Lines Changed
-@git.diff_workdir("HEAD").each_line do |line|
%p= line.content
%h3 Patches
%h3 Patches
%h3 Patches
-@git.diff_workdir("HEAD").each_patch do |patch|
%p= patch.additions
-patch.each_hunk do |hunk|
%p=hunk.header
-hunk.each_line do |line|
%p= line.content

View File

@ -49,7 +49,7 @@
%h3.mt-4.text-lg.font-bold #{@section.cards.length} Cards
-@section.cards.each do |card|
.mt-4.text-md.font-bold= card.header
.text-sm "#{card.text[0..70]} ....."
.text-sm #{card.text[0..70]} .....
%p.p-3
= yellow_button( "View and Edit Cards" , section_cards_url(@section.id))
= green_button( "New Card" , new_section_card_url(@section.id) )