Fix accidentally created closure inside of a loop

I accidentally created a closure inside a loop with the result, that the
callback was only executed with the last iteration value. I have fixed
that by creating a function which then again creates the callback
function based on given parameters.

Signed-off-by: Konrad Reiche <konrad.reiche@gmail.com>
Fix small problems in the worker instantiation

Just fixed some small problems, including the wrong parenthesizing for
the worker class construction and dynamic method invocation.

Signed-off-by: Konrad Reiche <konrad.reiche@gmail.com>
Create functions for status processing

Just added empty functions which will be used to re-implement the
continuous worker status retrieval. Also removed the loop entry
from the previous implementation.

Signed-off-by: Konrad Reiche <konrad.reiche@gmail.com>
Generate bar elements through helper method

I have delegated the element generation to a helper method. I need to
identify all bar elements from all metrics over all repositories, hence
I use a helper method to prevent view code cluttering.

Signed-off-by: Konrad Reiche <konrad.reiche@gmail.com>
Add status helper method

This status helper method should help to display whether metric results
for a certain repository are available or not.

Signed-off-by: Konrad Reiche <konrad.reiche@gmail.com>
Set progress bar width

Based on the status the progress bar of each repository is set.

Signed-off-by: Konrad Reiche <konrad.reiche@gmail.com>