zip matching banner

This commit is contained in:
Alexander Tsybulsky 2018-12-08 20:21:52 +02:00 committed by Lars Hvam
parent 13f84140f4
commit 806b474851
2 changed files with 27 additions and 0 deletions

View File

@ -736,6 +736,15 @@ CLASS ZCL_ABAPGIT_GUI_VIEW_REPO IMPLEMENTATION.
ro_html->add( '<div class="repo_container">' ).
" Offline match banner
IF mo_repo->is_offline( ) = abap_true AND mo_repo->has_remote_source( ) = abap_true
AND lv_lstate IS INITIAL AND lv_rstate IS INITIAL.
ro_html->add(
|<div class="repo_banner panel success">|
&& |ZIP source is attached and completely <b>matches</b> to the local state|
&& |</div>| ).
ENDIF.
" Repo content table
ro_html->add( '<table class="repo_tab">' ).

View File

@ -73,6 +73,16 @@ input:focus, textarea:focus {
.float-right { float: right; }
.pad-right { padding-right: 6px; }
/* PANELS */
div.panel {
border-radius: 3px;
}
div.panel.success {
color: #589a58 !important;
background: #c5eac5;
}
/* TODO: add warning and error colors */
/* STRUCTURE DIVS, HEADER & FOOTER */
div#header {
padding: 0.5em 0.5em;
@ -202,6 +212,14 @@ div.repo {
div.repo_container {
position: relative;
}
div.repo_banner {
margin: 0em 1.2em 1em;
padding: 0.5em 0.5em;
text-align: center;
font-size: 85%;
}
table.repo_tab {
border: 1px solid #DDD;
border-radius: 3px;