mirror of
https://github.com/abapGit/abapGit.git
synced 2025-05-01 04:08:27 +08:00
"1 diffs" -> "1 diff"
This commit is contained in:
parent
e5174d45aa
commit
aef97df00e
|
@ -27,8 +27,8 @@ CLASS lcl_gui_page_stage DEFINITION FINAL INHERITING FROM lcl_gui_page_super.
|
||||||
render_list
|
render_list
|
||||||
RETURNING VALUE(ro_html) TYPE REF TO lcl_html_helper,
|
RETURNING VALUE(ro_html) TYPE REF TO lcl_html_helper,
|
||||||
render_file
|
render_file
|
||||||
IMPORTING is_file TYPE ty_file
|
IMPORTING is_file TYPE ty_file
|
||||||
iv_context TYPE string
|
iv_context TYPE string
|
||||||
RETURNING VALUE(ro_html) TYPE REF TO lcl_html_helper,
|
RETURNING VALUE(ro_html) TYPE REF TO lcl_html_helper,
|
||||||
render_menu
|
render_menu
|
||||||
RETURNING VALUE(ro_html) TYPE REF TO lcl_html_helper,
|
RETURNING VALUE(ro_html) TYPE REF TO lcl_html_helper,
|
||||||
|
@ -38,7 +38,7 @@ CLASS lcl_gui_page_stage DEFINITION FINAL INHERITING FROM lcl_gui_page_super.
|
||||||
RETURNING VALUE(ro_html) TYPE REF TO lcl_html_helper.
|
RETURNING VALUE(ro_html) TYPE REF TO lcl_html_helper.
|
||||||
|
|
||||||
METHODS process_stage_list
|
METHODS process_stage_list
|
||||||
IMPORTING it_postdata TYPE cnht_post_data_tab
|
IMPORTING it_postdata TYPE cnht_post_data_tab
|
||||||
RAISING lcx_exception.
|
RAISING lcx_exception.
|
||||||
|
|
||||||
ENDCLASS.
|
ENDCLASS.
|
||||||
|
@ -94,7 +94,7 @@ CLASS lcl_gui_page_stage IMPLEMENTATION.
|
||||||
|
|
||||||
DATA: lv_string TYPE string,
|
DATA: lv_string TYPE string,
|
||||||
lt_fields TYPE tihttpnvp,
|
lt_fields TYPE tihttpnvp,
|
||||||
ls_file TYPE ty_file.
|
ls_file TYPE ty_file.
|
||||||
|
|
||||||
FIELD-SYMBOLS: <ls_file> LIKE LINE OF ms_files-local,
|
FIELD-SYMBOLS: <ls_file> LIKE LINE OF ms_files-local,
|
||||||
<ls_item> LIKE LINE OF lt_fields.
|
<ls_item> LIKE LINE OF lt_fields.
|
||||||
|
@ -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>' ).
|
||||||
ro_html->add_anchor( iv_txt = |{ lines( ms_files-local ) } diffs|
|
IF lines( ms_files-local ) > 1.
|
||||||
iv_act = |{ gc_action-go_diff }?key={ mo_repo->get_key( ) }| ).
|
ro_html->add_anchor( iv_txt = |{ lines( ms_files-local ) } diffs|
|
||||||
|
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.
|
||||||
|
|
|
@ -30,9 +30,9 @@ CLASS lcl_repo_content_browser DEFINITION FINAL.
|
||||||
IMPORTING io_repo TYPE REF TO lcl_repo.
|
IMPORTING io_repo TYPE REF TO lcl_repo.
|
||||||
|
|
||||||
METHODS list
|
METHODS list
|
||||||
IMPORTING iv_path TYPE string
|
IMPORTING iv_path TYPE string
|
||||||
iv_by_folders TYPE abap_bool
|
iv_by_folders TYPE abap_bool
|
||||||
iv_changes_only TYPE abap_bool
|
iv_changes_only TYPE abap_bool
|
||||||
RETURNING VALUE(rt_repo_items) TYPE tt_repo_items
|
RETURNING VALUE(rt_repo_items) TYPE tt_repo_items
|
||||||
RAISING lcx_exception.
|
RAISING lcx_exception.
|
||||||
|
|
||||||
|
@ -57,7 +57,7 @@ CLASS lcl_repo_content_browser DEFINITION FINAL.
|
||||||
RAISING lcx_exception.
|
RAISING lcx_exception.
|
||||||
|
|
||||||
METHODS filter_changes
|
METHODS filter_changes
|
||||||
CHANGING ct_repo_items TYPE tt_repo_items.
|
CHANGING ct_repo_items TYPE tt_repo_items.
|
||||||
|
|
||||||
ENDCLASS. "lcl_repo_content_browser
|
ENDCLASS. "lcl_repo_content_browser
|
||||||
|
|
||||||
|
@ -232,7 +232,7 @@ CLASS lcl_gui_view_repo_content DEFINITION FINAL INHERITING FROM lcl_gui_page_su
|
||||||
END OF c_actions.
|
END OF c_actions.
|
||||||
|
|
||||||
METHODS: lif_gui_page~render REDEFINITION,
|
METHODS: lif_gui_page~render REDEFINITION,
|
||||||
lif_gui_page~on_event REDEFINITION.
|
lif_gui_page~on_event REDEFINITION.
|
||||||
|
|
||||||
METHODS constructor
|
METHODS constructor
|
||||||
IMPORTING iv_key TYPE lcl_persistence_repo=>ty_repo-key
|
IMPORTING iv_key TYPE lcl_persistence_repo=>ty_repo-key
|
||||||
|
@ -333,13 +333,13 @@ CLASS lcl_gui_view_repo_content IMPLEMENTATION.
|
||||||
TRY.
|
TRY.
|
||||||
ro_html->add( render_repo_menu( ) ).
|
ro_html->add( render_repo_menu( ) ).
|
||||||
|
|
||||||
CREATE OBJECT lo_browser EXPORTING io_repo = mo_repo.
|
CREATE OBJECT lo_browser EXPORTING io_repo = mo_repo.
|
||||||
lt_repo_items = lo_browser->list( iv_path = mv_cur_dir
|
lt_repo_items = lo_browser->list( iv_path = mv_cur_dir
|
||||||
iv_by_folders = mv_show_folders
|
iv_by_folders = mv_show_folders
|
||||||
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 ).
|
||||||
ro_html->add_anchor(
|
IF is_item-changes = 1.
|
||||||
iv_txt = |{ is_item-changes } diffs|
|
ro_html->add_anchor(
|
||||||
iv_act = |{ gc_action-go_diff }?{ lv_difflink }| ).
|
iv_txt = |{ is_item-changes } diff|
|
||||||
|
iv_act = |{ gc_action-go_diff }?{ lv_difflink }| ).
|
||||||
|
ELSE.
|
||||||
|
ro_html->add_anchor(
|
||||||
|
iv_txt = |{ is_item-changes } diffs|
|
||||||
|
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