adding rugged, starting changes controller
This commit is contained in:
13
app/views/merged/changes/index.haml
Normal file
13
app/views/merged/changes/index.haml
Normal 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
|
@ -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) )
|
||||
|
Reference in New Issue
Block a user