CLASS zcl_abapgit_gui_view_tutorial DEFINITION
PUBLIC
FINAL
CREATE PUBLIC .
PUBLIC SECTION.
INTERFACES zif_abapgit_gui_renderable .
PROTECTED SECTION.
PRIVATE SECTION.
METHODS render_content
RETURNING VALUE(ro_html) TYPE REF TO zcl_abapgit_html.
ENDCLASS.
CLASS ZCL_ABAPGIT_GUI_VIEW_TUTORIAL IMPLEMENTATION.
METHOD render_content.
DATA: lv_devclass TYPE tadir-devclass.
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 = '+ Online' iv_act = zif_abapgit_definitions=>c_action-repo_newonline ).
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=>c_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=>c_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( '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 repository
' ).
ro_html->add( '' ).
ro_html->add( '- ' ).
lv_devclass = zcl_abapgit_services_abapgit=>is_installed( ).
IF NOT lv_devclass IS INITIAL.
ro_html->add( 'abapGit installed in package ' ).
ro_html->add( lv_devclass ).
ELSE.
ro_html->add_a( iv_txt = 'install abapGit repo' iv_act = zif_abapgit_definitions=>c_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( '
' ).
ENDMETHOD.
METHOD zif_abapgit_gui_renderable~render.
CREATE OBJECT ro_html TYPE zcl_abapgit_html.
ro_html->add( '' ).
ro_html->add( render_content( ) ).
ro_html->add( '
' ).
ENDMETHOD.
ENDCLASS.