*&---------------------------------------------------------------------*
*& Include ZABAPGIT_PAGE_TUTORIAL
*&---------------------------------------------------------------------*
CLASS lcl_gui_view_tutorial DEFINITION FINAL.
PUBLIC SECTION.
INTERFACES zif_abapgit_gui_page.
ALIASES render FOR zif_abapgit_gui_page~render.
PRIVATE SECTION.
METHODS render_content
RETURNING VALUE(ro_html) TYPE REF TO zcl_abapgit_html.
ENDCLASS. "lcl_gui_view_tutorial
CLASS lcl_gui_view_tutorial IMPLEMENTATION.
METHOD zif_abapgit_gui_page~on_event.
ev_state = zif_abapgit_definitions=>gc_event_state-not_handled.
ENDMETHOD. " lif_gui_page~on_event.
METHOD zif_abapgit_gui_page~render.
CREATE OBJECT ro_html.
ro_html->add( '
' ).
ro_html->add( render_content( ) ).
ro_html->add( '
' ).
ENDMETHOD. "lif_gui_page~render
METHOD render_content.
CREATE OBJECT ro_html.
ro_html->add( 'Tutorial
' ).
ro_html->add( '
' ).
ro_html->add( 'Adding and cloning repos
' ).
ro_html->add( '' ).
ro_html->add( `- To clone a remote repo (e.g. from github) click ` ).
ro_html->add_a( iv_txt = '+ Clone' iv_act = zif_abapgit_definitions=>gc_action-repo_clone ).
ro_html->add( ' from the top menu. This will copy a remote repo to your system.
' ).
ro_html->add( `- To add a local package as a repo click ` ).
ro_html->add_a( iv_txt = '+ Offline' iv_act = zif_abapgit_definitions=>gc_action-repo_newoffline ).
ro_html->add( ' from the top menu. This will track a repo which already exist in' ).
ro_html->add( ' the system with abapGit. You''ll be able to attach it to remote origin' ).
ro_html->add( ' or just serialize as a zip file
' ).
ro_html->add( `- Go ` ).
ro_html->add_a( iv_txt = 'Explore' iv_act = zif_abapgit_definitions=>gc_action-go_explore ).
ro_html->add( ' to find projects using abapGit
' ).
ro_html->add( '
' ).
ro_html->add( 'Repository list and favorites
' ).
ro_html->add( '' ).
ro_html->add( |- To choose a repo press {
zcl_abapgit_html=>icon( 'three-bars/blue' ) } at the favorite bar.
| ).
ro_html->add( |- To favorite a repo click {
zcl_abapgit_html=>icon( 'star/darkgrey' ) } icon at repo toolbar.
| ).
ro_html->add( '
' ).
ro_html->add( 'abapGit related repositories
' ).
ro_html->add( '' ).
ro_html->add( '- ' ).
IF lcl_services_abapgit=>is_installed( ) = abap_true.
ro_html->add( 'abapGit installed in package ' ).
ro_html->add( lcl_services_abapgit=>c_package_abapgit ).
ELSE.
ro_html->add_a( iv_txt = 'install abapGit repo' iv_act = zif_abapgit_definitions=>gc_action-abapgit_install ).
ro_html->add( ' - To keep abapGit up-to-date (or also to contribute) you need to' ).
ro_html->add( 'install it as a repository.' ).
ENDIF.
ro_html->add( '
' ).
ro_html->add( '- ' ).
IF lcl_services_abapgit=>is_installed_pi( ) = abap_true.
ro_html->add( 'abapGit plugins installed in package ' ).
ro_html->add( lcl_services_abapgit=>c_package_plugins ).
ELSE.
ro_html->add_a( iv_txt = 'install abapGit plugins'
iv_act = zif_abapgit_definitions=>gc_action-abapgit_install_pi ).
ro_html->add( ' - you can also install plugins to extend supported object types' ).
ENDIF.
ro_html->add( '
' ).
ro_html->add( '
' ).
ENDMETHOD. " render_content.
ENDCLASS. "lcl_gui_view_tutorial