add percentage information to repository language bar
This commit is contained in:
parent
88c1cf676c
commit
2334d9b611
|
@ -830,6 +830,14 @@
|
|||
}
|
||||
}
|
||||
|
||||
.repository-language-bar-tooltip-language {
|
||||
font-weight: $gl-font-weight-bold;
|
||||
}
|
||||
|
||||
.repository-language-bar-tooltip-share {
|
||||
color: $theme-gray-400;
|
||||
}
|
||||
|
||||
pre.light-well {
|
||||
border-color: $well-light-border;
|
||||
}
|
||||
|
|
|
@ -13,6 +13,7 @@ module RepositoryLanguagesHelper
|
|||
content_tag :div, nil,
|
||||
class: "progress-bar has-tooltip",
|
||||
style: "width: #{lang.share}%; background-color:#{lang.color}",
|
||||
title: lang.name
|
||||
:data => { :html => true},
|
||||
title: "<span class=\"repository-language-bar-tooltip-language\">#{lang.name}</span> <span class=\"repository-language-bar-tooltip-share\">#{lang.share.round(1)}%</span>"
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue