Make percentage visible in progressbar image
Add title attribute for tooltip since % value isn't actually displayed otherwise.
This commit is contained in:
parent
a3cb0a6693
commit
dd3e4cb358
@ -3,8 +3,8 @@ if {![exists -proc progressbar]} {
|
||||
proc progressbar {percent} {
|
||||
set pos [expr 118 - $percent / 100.0 * 118]
|
||||
return "<img src=/img/percentimage.png
|
||||
title=\"$percent%\"
|
||||
alt=\"$percent%\" class=progress
|
||||
style=\"background-position: -${pos}px 0;\">"
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user