mirror of
https://github.com/abapGit/abapGit.git
synced 2025-05-01 12:20:51 +08:00
"1 diffs" -> "1 diff"
This commit is contained in:
parent
e5174d45aa
commit
aef97df00e
|
@ -151,8 +151,10 @@ CLASS lcl_gui_page_stage IMPLEMENTATION.
|
||||||
AT FIRST.
|
AT FIRST.
|
||||||
ro_html->add('<thead><tr>').
|
ro_html->add('<thead><tr>').
|
||||||
ro_html->add('<th></th><th colspan="2">LOCAL</th><th>' ).
|
ro_html->add('<th></th><th colspan="2">LOCAL</th><th>' ).
|
||||||
|
IF lines( ms_files-local ) > 1.
|
||||||
ro_html->add_anchor( iv_txt = |{ lines( ms_files-local ) } diffs|
|
ro_html->add_anchor( iv_txt = |{ lines( ms_files-local ) } diffs|
|
||||||
iv_act = |{ gc_action-go_diff }?key={ mo_repo->get_key( ) }| ).
|
iv_act = |{ gc_action-go_diff }?key={ mo_repo->get_key( ) }| ).
|
||||||
|
ENDIF.
|
||||||
ro_html->add('</th></tr></thead>').
|
ro_html->add('</th></tr></thead>').
|
||||||
ro_html->add('<tbody class="local">').
|
ro_html->add('<tbody class="local">').
|
||||||
ENDAT.
|
ENDAT.
|
||||||
|
|
|
@ -339,7 +339,7 @@ CLASS lcl_gui_view_repo_content IMPLEMENTATION.
|
||||||
iv_changes_only = mv_changes_only ).
|
iv_changes_only = mv_changes_only ).
|
||||||
|
|
||||||
lo_log = lo_browser->get_log( ).
|
lo_log = lo_browser->get_log( ).
|
||||||
IF mo_repo->is_offline( ) = abap_false and lo_log->count( ) > 0.
|
IF mo_repo->is_offline( ) = abap_false AND lo_log->count( ) > 0.
|
||||||
ro_html->add( '<div class="log attention">' ).
|
ro_html->add( '<div class="log attention">' ).
|
||||||
ro_html->add( lo_log->to_html( ) ). " shows eg. list of unsupported objects
|
ro_html->add( lo_log->to_html( ) ). " shows eg. list of unsupported objects
|
||||||
ro_html->add( '</div>' ).
|
ro_html->add( '</div>' ).
|
||||||
|
@ -523,7 +523,7 @@ CLASS lcl_gui_view_repo_content IMPLEMENTATION.
|
||||||
|
|
||||||
IF is_item-is_dir = abap_true.
|
IF is_item-is_dir = abap_true.
|
||||||
APPEND 'folder' TO lt_class.
|
APPEND 'folder' TO lt_class.
|
||||||
ElSEIF is_item-changes > 0.
|
ELSEIF is_item-changes > 0.
|
||||||
APPEND 'modified' TO lt_class.
|
APPEND 'modified' TO lt_class.
|
||||||
ELSEIF is_item-obj_name IS INITIAL.
|
ELSEIF is_item-obj_name IS INITIAL.
|
||||||
APPEND 'unsupported' TO lt_class.
|
APPEND 'unsupported' TO lt_class.
|
||||||
|
@ -604,9 +604,15 @@ CLASS lcl_gui_view_repo_content IMPLEMENTATION.
|
||||||
lv_difflink = lcl_html_action_utils=>obj_encode(
|
lv_difflink = lcl_html_action_utils=>obj_encode(
|
||||||
iv_key = mo_repo->get_key( )
|
iv_key = mo_repo->get_key( )
|
||||||
ig_object = is_item ).
|
ig_object = is_item ).
|
||||||
|
IF is_item-changes = 1.
|
||||||
|
ro_html->add_anchor(
|
||||||
|
iv_txt = |{ is_item-changes } diff|
|
||||||
|
iv_act = |{ gc_action-go_diff }?{ lv_difflink }| ).
|
||||||
|
ELSE.
|
||||||
ro_html->add_anchor(
|
ro_html->add_anchor(
|
||||||
iv_txt = |{ is_item-changes } diffs|
|
iv_txt = |{ is_item-changes } diffs|
|
||||||
iv_act = |{ gc_action-go_diff }?{ lv_difflink }| ).
|
iv_act = |{ gc_action-go_diff }?{ lv_difflink }| ).
|
||||||
|
ENDIF.
|
||||||
ELSE.
|
ELSE.
|
||||||
LOOP AT is_item-files INTO ls_file.
|
LOOP AT is_item-files INTO ls_file.
|
||||||
IF ls_file-new = gc_new-remote.
|
IF ls_file-new = gc_new-remote.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user