Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
Imldeployment
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IML Open Source
Imldeployment
Commits
87421e97
Commit
87421e97
authored
1 year ago
by
Hahn Axel (hahn)
Browse files
Options
Downloads
Patches
Plain Diff
update server project overview
parent
1aea7057
No related branches found
No related tags found
1 merge request
!62
V2.0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
public_html/deployment/classes/project_gui.class.php
+9
-7
9 additions, 7 deletions
public_html/deployment/classes/project_gui.class.php
public_html/deployment/main.css
+2
-1
2 additions, 1 deletion
public_html/deployment/main.css
with
11 additions
and
8 deletions
public_html/deployment/classes/project_gui.class.php
+
9
−
7
View file @
87421e97
...
@@ -40,7 +40,7 @@ class projectgui extends project {
...
@@ -40,7 +40,7 @@ class projectgui extends project {
* @param string $sContent optional: text to show
* @param string $sContent optional: text to show
* @return string
* @return string
*/
*/
private
function
_getChecksumDiv
(
$sText
,
$sContent
=
''
)
{
private
function
_getChecksumDiv
(
$sText
,
$sContent
=
''
,
$sBarHeight
=
'3px'
)
{
if
(
$sText
){
if
(
$sText
){
// color ranges in decimal values for RGB from ... to
// color ranges in decimal values for RGB from ... to
...
@@ -72,7 +72,7 @@ class projectgui extends project {
...
@@ -72,7 +72,7 @@ class projectgui extends project {
}
else
{
}
else
{
$sColor
=
"color: #888; background: #ccc;"
;
$sColor
=
"color: #888; background: #ccc;"
;
}
}
return
'<div style="'
.
$sColor
.
' border-top:
3px
solid;">'
.
(
$sContent
?
$sContent
:
' '
)
.
'</div>'
;
return
'<div style="'
.
$sColor
.
' border-top:
'
.
$sBarHeight
.
'
solid;">'
.
(
$sContent
?
$sContent
:
' '
)
.
'</div>'
;
}
}
...
@@ -82,13 +82,13 @@ class projectgui extends project {
...
@@ -82,13 +82,13 @@ class projectgui extends project {
* @param string $sPlace place in the given phase
* @param string $sPlace place in the given phase
* @return string
* @return string
*/
*/
private
function
_renderBar
(
$sPhase
,
$sPlace
)
{
private
function
_renderBar
(
$sPhase
,
$sPlace
,
$sBarHeight
=
'3px'
)
{
$aDataPhase
=
$this
->
getPhaseInfos
(
$sPhase
);
$aDataPhase
=
$this
->
getPhaseInfos
(
$sPhase
);
$aData
=
$aDataPhase
[
$sPlace
];
$aData
=
$aDataPhase
[
$sPlace
];
if
(
!
array_key_exists
(
"revision"
,
$aData
))
{
if
(
!
array_key_exists
(
"revision"
,
$aData
))
{
return
false
;
return
false
;
}
}
return
$this
->
_getChecksumDiv
(
$aData
[
"revision"
]);
return
$this
->
_getChecksumDiv
(
$aData
[
"revision"
]
,
''
,
$sBarHeight
);
}
}
private
function
_renderHostsData
(
$aData
)
{
private
function
_renderHostsData
(
$aData
)
{
...
@@ -1618,6 +1618,8 @@ class projectgui extends project {
...
@@ -1618,6 +1618,8 @@ class projectgui extends project {
*/
*/
public
function
renderVisual
()
{
public
function
renderVisual
()
{
$sReturn
=
''
;
$sReturn
=
''
;
$sBarHeightBg
=
'1.0em'
;
$sBarHeight
=
'0.8em'
;
$sContinue
=
'<span style="font-size: 300%; color:#ace;">»»</span><br>'
;
$sContinue
=
'<span style="font-size: 300%; color:#ace;">»»</span><br>'
;
$aBranches
=
$this
->
getRemoteBranches
();
$aBranches
=
$this
->
getRemoteBranches
();
...
@@ -1640,8 +1642,8 @@ class projectgui extends project {
...
@@ -1640,8 +1642,8 @@ class projectgui extends project {
$sPackagebar
=
''
;
$sPackagebar
=
''
;
$aVersions
=
$this
->
_getVersionUsage
();
$aVersions
=
$this
->
_getVersionUsage
();
foreach
(
$aVersions
as
$sVersion
=>
$aData
)
{
foreach
(
$aVersions
as
$sVersion
=>
$aData
)
{
$sBar
=
$aData
[
"info"
][
"revision"
]
?
$this
->
_getChecksumDiv
(
$aData
[
"info"
][
"revision"
])
:
''
;
$sBar
=
$aData
[
"info"
][
"revision"
]
?
$this
->
_getChecksumDiv
(
$aData
[
"info"
][
"revision"
]
,
''
,
$sBarHeight
)
:
''
;
$sPackagebar
.
=
'<span title="'
.
$sVersion
.
'" style="float: left; background:#eee; height:
3px
; width:'
.
(
100
/
count
(
$aVersions
))
.
'%">'
.
$sBar
.
' </span>'
;
$sPackagebar
.
=
'<span title="'
.
$sVersion
.
'" style="float: left; background:#eee; height:
'
.
$sBarHeightBg
.
'
; width:'
.
(
100
/
count
(
$aVersions
))
.
'%">'
.
$sBar
.
' </span>'
;
}
}
$sPhaseImg
=
''
;
$sPhaseImg
=
''
;
...
@@ -1658,7 +1660,7 @@ class projectgui extends project {
...
@@ -1658,7 +1660,7 @@ class projectgui extends project {
$sFullbar
=
''
;
$sFullbar
=
''
;
foreach
(
array_keys
(
$this
->
_aPlaces
)
as
$sPlace
)
{
foreach
(
array_keys
(
$this
->
_aPlaces
)
as
$sPlace
)
{
$sFullbar
.
=
'<span title="'
.
$this
->
_aPlaces
[
$sPlace
]
.
'" style="float: left; background:#eee; height:
3px
; width:'
.
(
100
/
count
(
$this
->
_aPlaces
))
.
'%">'
.
$this
->
_renderBar
(
$sPhase
,
$sPlace
)
.
' </span>'
;
$sFullbar
.
=
'<span title="'
.
$this
->
_aPlaces
[
$sPlace
]
.
'" style="float: left; background:#eee; height:
'
.
$sBarHeightBg
.
'
; width:'
.
(
100
/
count
(
$this
->
_aPlaces
))
.
'%">'
.
$this
->
_renderBar
(
$sPhase
,
$sPlace
,
$sBarHeight
)
.
' </span>'
;
}
}
// $sDetail = $sFullbar . '<br><a href="#h3phases" class="scroll-link">' . $sPhase . '</a>';
// $sDetail = $sFullbar . '<br><a href="#h3phases" class="scroll-link">' . $sPhase . '</a>';
$sDetail
=
$sFullbar
.
'<br>'
.
$sPhase
;
$sDetail
=
$sFullbar
.
'<br>'
.
$sPhase
;
...
...
This diff is collapsed.
Click to expand it.
public_html/deployment/main.css
+
2
−
1
View file @
87421e97
...
@@ -629,6 +629,7 @@ input[type="checkbox"]:checked+label {
...
@@ -629,6 +629,7 @@ input[type="checkbox"]:checked+label {
float
:
left
;
float
:
left
;
text-align
:
center
;
text-align
:
center
;
padding
:
0
0
5px
;
padding
:
0
0
5px
;
min-width
:
5em
;
}
}
.visualprocess
.process.box
{
.visualprocess
.process.box
{
...
@@ -650,7 +651,7 @@ input[type="checkbox"]:checked+label {
...
@@ -650,7 +651,7 @@ input[type="checkbox"]:checked+label {
color
:
#aaa
;
color
:
#aaa
;
}
}
.visualprocess
.process
.details
{
}
.visualprocess
.process
.details
span
{
border-right
:
3px
solid
#fff
;
}
/* ----- replacemets with templates ----- */
/* ----- replacemets with templates ----- */
span
.replace
{
span
.replace
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment