syntax page "no errors" more neat

Display no errors message in syntax check with green check and no syntax errors message
This commit is contained in:
Srinivasu Reddy 2019-04-22 04:04:04 +00:00 committed by Lars Hvam
parent 3084bb2c60
commit 94604a7db5

View File

@ -18,7 +18,7 @@ ENDCLASS.
CLASS ZCL_ABAPGIT_GUI_PAGE_SYNTAX IMPLEMENTATION. CLASS zcl_abapgit_gui_page_syntax IMPLEMENTATION.
METHOD constructor. METHOD constructor.
@ -40,11 +40,13 @@ CLASS ZCL_ABAPGIT_GUI_PAGE_SYNTAX IMPLEMENTATION.
ro_html->add( '<div class="toc">' ). ro_html->add( '<div class="toc">' ).
IF lines( mt_result ) = 0. IF lines( mt_result ) = 0.
ro_html->add( 'No errors' ). ro_html->add( '<div class="dummydiv success">' ).
ENDIF. ro_html->add( zcl_abapgit_html=>icon( 'check' ) ).
ro_html->add( 'No syntax errors' ).
ELSE.
render_result( io_html = ro_html render_result( io_html = ro_html
it_result = mt_result ). it_result = mt_result ).
ENDIF.
ro_html->add( '</div>' ). ro_html->add( '</div>' ).