From ad2642a8aac9facb217a8471df1d3e00f1214e92 Mon Sep 17 00:00:00 2001 From: Lauris BH Date: Tue, 11 Feb 2020 11:34:17 +0200 Subject: Language statistics bar for repositories (#8037) * Implementation for calculating language statistics Impement saving code language statistics to database Implement rendering langauge stats Add primary laguage to show in repository list Implement repository stats indexer queue Add indexer test Refactor to use queue module * Do not timeout for queues --- web_src/js/index.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'web_src/js') diff --git a/web_src/js/index.js b/web_src/js/index.js index 128779c153..c84a2c8991 100644 --- a/web_src/js/index.js +++ b/web_src/js/index.js @@ -1127,6 +1127,14 @@ function initRepository() { } }); } + + // Language stats + if ($('.language-stats').length > 0) { + $('.language-stats').on('click', (e) => { + e.preventDefault(); + $('.language-stats-details, .repository-menu').slideToggle(); + }); + } } function initMigration() { -- cgit v1.2.3