diff --git a/src/ui/zcl_abapgit_gui_page_repo_over.clas.abap b/src/ui/zcl_abapgit_gui_page_repo_over.clas.abap
index 19213e233..cc7b10a89 100644
--- a/src/ui/zcl_abapgit_gui_page_repo_over.clas.abap
+++ b/src/ui/zcl_abapgit_gui_page_repo_over.clas.abap
@@ -126,7 +126,7 @@ ENDCLASS.
-CLASS zcl_abapgit_gui_page_repo_over IMPLEMENTATION.
+CLASS ZCL_ABAPGIT_GUI_PAGE_REPO_OVER IMPLEMENTATION.
METHOD add_direction_option.
@@ -335,37 +335,34 @@ CLASS zcl_abapgit_gui_page_repo_over IMPLEMENTATION.
CREATE OBJECT ro_html.
- ro_html->add( |
| ).
-
- ro_html->add( |
| ).
-
ENDMETHOD.
METHOD render_header_bar.
- io_html->add( || ).
+ io_html->add( |
| ).
+
+ io_html->add( |
| ).
-
io_html->add( || ).
+
+ io_html->add( zcl_abapgit_html=>a(
+ iv_txt = 'Toggle detail'
+ iv_act = |toggleRepoListDetail()|
+ iv_typ = zif_abapgit_definitions=>c_action_type-onclick ) ).
+
io_html->add( |
| ).
ENDMETHOD.
@@ -429,33 +426,30 @@ CLASS zcl_abapgit_gui_page_repo_over IMPLEMENTATION.
METHOD render_table.
- io_html->add( || ).
- io_html->add( |
| ).
+ io_html->add( || ).
+ io_html->add( |
| ).
render_table_header( io_html ).
render_table_body( io_html = io_html
it_overview = it_overview ).
- io_html->add( || ).
io_html->add( |
| ).
+ io_html->add( |
| ).
ENDMETHOD.
METHOD render_table_body.
- DATA: lv_trclass TYPE string,
+ DATA:
lv_type_icon TYPE string,
lv_favorite_icon TYPE string.
FIELD-SYMBOLS: LIKE LINE OF it_overview.
- LOOP AT it_overview ASSIGNING .
+ io_html->add( '' ).
- CLEAR lv_trclass.
- IF sy-tabix = 1.
- lv_trclass = ' class="firstrow"' ##NO_TEXT.
- ENDIF.
+ LOOP AT it_overview ASSIGNING .
IF -type = abap_true.
lv_type_icon = 'plug/darkgrey'.
@@ -469,16 +463,15 @@ CLASS zcl_abapgit_gui_page_repo_over IMPLEMENTATION.
lv_favorite_icon = 'star/grey'.
ENDIF.
- io_html->add( || ).
- io_html->add( || ).
+ io_html->add( | |
| ).
+ io_html->add( || ).
io_html->add_a( iv_act = |{ zif_abapgit_definitions=>c_action-repo_toggle_fav }?{ -key }|
iv_txt = zcl_abapgit_html=>icon( iv_name = lv_favorite_icon
iv_class = 'pad-sides'
iv_hint = 'Click to toggle favorite' ) ).
io_html->add( | | | ).
- io_html->add( |{ zcl_abapgit_html=>icon( lv_type_icon ) } | | ).
+ io_html->add( |{ zcl_abapgit_html=>icon( lv_type_icon ) } | | ).
- io_html->add( |{ -key } | | ).
io_html->add( |{ zcl_abapgit_html=>a( iv_txt = -name
iv_act = |{ c_action-select }?{ -key }| ) } | | ).
@@ -487,21 +480,22 @@ CLASS zcl_abapgit_gui_page_repo_over IMPLEMENTATION.
iv_act = |{ zif_abapgit_definitions=>c_action-url }?|
&& |{ -url }| ) }| ).
ELSE.
- io_html->add( | | | ).
+ io_html->add( | | | ).
ENDIF.
io_html->add( |{ -package } | | ).
io_html->add( |{ -branch } | | ).
- io_html->add( |{ -created_by } | | ).
- io_html->add( |{ -created_at } | | ).
- io_html->add( |{ -deserialized_by } | | ).
- io_html->add( |{ -deserialized_at } | | ).
- io_html->add( || ).
- io_html->add( | | | ).
+ io_html->add( |{ -deserialized_by } | | ).
+ io_html->add( |{ -deserialized_at } | | ).
+ io_html->add( |{ -created_by } | | ).
+ io_html->add( |{ -created_at } | | ).
+ io_html->add( |{ -key } | | ).
io_html->add( |
| ).
ENDLOOP.
+ io_html->add( || ).
+
ENDMETHOD.
@@ -509,21 +503,19 @@ CLASS zcl_abapgit_gui_page_repo_over IMPLEMENTATION.
io_html->add( || ).
io_html->add( || ).
- io_html->add( |Favorite | | ).
- io_html->add( |Type | | ).
- io_html->add( |Key | | ).
+ io_html->add( | | | ). " Fav icon
+ io_html->add( | | | ). " Repo type
io_html->add( |Name | | ).
io_html->add( |Url | | ).
io_html->add( |Package | | ).
io_html->add( |Branch name | | ).
- io_html->add( |Creator | | ).
- io_html->add( |Created at [{ mv_time_zone }] | | ).
- io_html->add( |Deserialized by | | ).
- io_html->add( |Deserialized at [{ mv_time_zone }] | | ).
- io_html->add( | | | ).
+ io_html->add( |Deserialized by | | ).
+ io_html->add( |Deserialized at [{ mv_time_zone }] | | ).
+ io_html->add( |Creator | | ).
+ io_html->add( |Created at [{ mv_time_zone }] | | ).
+ io_html->add( |Key | | ).
io_html->add( '
' ).
io_html->add( '' ).
- io_html->add( '' ).
ENDMETHOD.
@@ -557,6 +549,11 @@ CLASS zcl_abapgit_gui_page_repo_over IMPLEMENTATION.
ENDMETHOD.
+ METHOD zif_abapgit_gui_page_hotkey~get_hotkey_actions.
+
+ ENDMETHOD.
+
+
METHOD zif_abapgit_gui_page~on_event.
DATA: lv_key TYPE zif_abapgit_persistence=>ty_value.
@@ -605,10 +602,4 @@ CLASS zcl_abapgit_gui_page_repo_over IMPLEMENTATION.
ENDCASE.
ENDMETHOD.
-
-
- METHOD zif_abapgit_gui_page_hotkey~get_hotkey_actions.
-
- ENDMETHOD.
-
ENDCLASS.
diff --git a/src/zabapgit_css_common.w3mi.data.css b/src/zabapgit_css_common.w3mi.data.css
index c3a4b9757..5bf47ecd1 100644
--- a/src/zabapgit_css_common.w3mi.data.css
+++ b/src/zabapgit_css_common.w3mi.data.css
@@ -69,9 +69,11 @@ input:focus, textarea:focus {
.indent5em { padding-left: 0.5em; }
.pad4px { padding: 4px; }
.w100 { width: 100%; }
+.wmin { width: 1%; }
.w40 { width: 40%; }
.float-right { float: right; }
.pad-right { padding-right: 6px; }
+.inline { display: inline; }
/* PANELS */
div.panel {
@@ -976,3 +978,16 @@ table.commit tr .title {
font-weight: bold;
vertical-align: top;
}
+
+/* Repo overview */
+.repo-overview {
+ font-size: smaller;
+}
+
+.repo-overview tbody td {
+ height: 2em;
+}
+
+.ro-detail {
+ display: none;
+}
diff --git a/src/zabapgit_js_common.w3mi.data.js b/src/zabapgit_js_common.w3mi.data.js
index 342461075..784abfbcc 100644
--- a/src/zabapgit_js_common.w3mi.data.js
+++ b/src/zabapgit_js_common.w3mi.data.js
@@ -1195,3 +1195,18 @@ BranchOverview.prototype.showCommit = function(event){
BranchOverview.prototype.hideCommit = function (event){ // eslint-disable-line no-unused-vars
this.toggleCommit();
};
+
+// Repo overview
+function findStyleSheetByName(name) {
+ var classes = document.styleSheets[0].cssRules || document.styleSheets[0].rules;
+ for (var i = 0; i < classes.length; i++) {
+ if (classes[i].selectorText === name) return classes[i];
+ }
+}
+
+function toggleRepoListDetail() {
+ var detailClass = findStyleSheetByName(".ro-detail");
+ if (detailClass) {
+ detailClass.style.display = detailClass.style.display === "none" ? "" : "none";
+ }
+}