diff options
author | Johann Hubert Sonntagbauer <johann.sonntagbauer@gmail.com> | 2018-10-02 07:12:05 +0200 |
---|---|---|
committer | Johann Hubert Sonntagbauer <johann.sonntagbauer@gmail.com> | 2018-10-03 17:36:33 +0200 |
commit | 2334d9b6118f429209632285e90b6e9fd892f912 (patch) | |
tree | d1eec820007ab5b175651fb62d7d5fde4a446a97 /app/helpers | |
parent | 88c1cf676cf02c3fca16093ad8ee5f6cf02dc462 (diff) | |
download | gitlab-ce-2334d9b6118f429209632285e90b6e9fd892f912.tar.gz |
add percentage information to repository language bar
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/repository_languages_helper.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/helpers/repository_languages_helper.rb b/app/helpers/repository_languages_helper.rb index c1505b52808..4f32a6597e2 100644 --- a/app/helpers/repository_languages_helper.rb +++ b/app/helpers/repository_languages_helper.rb @@ -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 |