Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VTK
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Erik Palmer
VTK
Commits
bd6f4f8d
Commit
bd6f4f8d
authored
11 years ago
by
Sebastien Jourdain
Committed by
Code Review
11 years ago
Browse files
Options
Downloads
Plain Diff
Merge topic 'catalyst-web-composite' into master
cfcebd10
Add image width column
parents
37026267
cfcebd10
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Web/JavaScript/Widgets/CatalystBrowser/vtkweb-widget-catalyst-analysis-cost.js
+5
-4
5 additions, 4 deletions
...s/CatalystBrowser/vtkweb-widget-catalyst-analysis-cost.js
with
5 additions
and
4 deletions
Web/JavaScript/Widgets/CatalystBrowser/vtkweb-widget-catalyst-analysis-cost.js
+
5
−
4
View file @
bd6f4f8d
...
...
@@ -75,7 +75,7 @@
// ------------------------------------------------------------------------
function
buildBillingPage
(
info
,
path
,
formula
)
{
var
content
=
[
"
<table class='catalyst-bill'><tr class='head'></td><td class='empty title'></td><td><span class='vtk-icon-clock'/></td><td><span class='vtk-icon-database'/></td><td><span class='vtk-icon-picture-1'/></td><td><span class='vtk-icon-dollar'/></td></tr>
"
],
var
content
=
[
"
<table class='catalyst-bill'><tr class='head'></td><td class='empty title'></td><td><span
class='vtk-icon-resize-horizontal-1'/></td><td><span
class='vtk-icon-clock'/></td><td><span class='vtk-icon-database'/></td><td><span class='vtk-icon-picture-1'/></td><td><span class='vtk-icon-dollar'/></td></tr>
"
],
total
=
{
"
space
"
:
0
,
"
images
"
:
0
,
"
time
"
:
0
,
"
dollars
"
:
0
},
analysisCount
=
info
[
'
analysis
'
].
length
;
...
...
@@ -94,7 +94,7 @@
}
// Add total
content
.
push
(
"
<tr class='sum'><td>Total</td><td>
"
+
formatTime
(
total
[
"
time
"
])
+
"
</td><td>
"
+
formatSpace
(
total
[
"
space
"
])
+
"
</td><td>
"
+
total
[
"
images
"
]
+
"
</td><td>
"
+
formatDollars
(
total
[
"
dollars
"
])
+
"
</td></tr></table>
"
)
content
.
push
(
"
<tr class='sum'><td>Total</td><td>
</td><td>
"
+
formatTime
(
total
[
"
time
"
])
+
"
</td><td>
"
+
formatSpace
(
total
[
"
space
"
])
+
"
</td><td>
"
+
total
[
"
images
"
]
+
"
</td><td>
"
+
formatDollars
(
total
[
"
dollars
"
])
+
"
</td></tr></table>
"
)
return
"
<div class='view cost'>
"
+
content
.
join
(
''
)
+
"
</div>
"
;
}
...
...
@@ -106,9 +106,10 @@
title
=
item
[
"
title
"
],
time
=
cost
[
"
time
"
],
space
=
cost
[
"
space
"
],
images
=
cost
[
"
images
"
];
images
=
cost
[
"
images
"
],
width
=
cost
.
hasOwnProperty
(
'
image-width
'
)
?
cost
[
"
image-width
"
]
:
""
;
return
"
<tr><td class='title'><span class='
"
+
classType
+
"
'/>
"
+
title
+
"
</td><td class='time value'>
"
+
formatTime
(
time
)
+
"
</td><td class='space value'>
"
+
formatSpace
(
space
)
+
"
</td><td class='images value'>
"
+
images
+
"
</td><td class='dollars value'>
"
+
formatDollars
(
dollars
)
+
"
</td></tr>
"
;
return
"
<tr><td class='title'><span class='
"
+
classType
+
"
'/>
"
+
title
+
"
</td><td
class='image-width value'>
"
+
width
+
"
</td><td
class='time value'>
"
+
formatTime
(
time
)
+
"
</td><td class='space value'>
"
+
formatSpace
(
space
)
+
"
</td><td class='images value'>
"
+
images
+
"
</td><td class='dollars value'>
"
+
formatDollars
(
dollars
)
+
"
</td></tr>
"
;
}
/**
...
...
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