Confluence user macro "employee_status"
------------------------------------------

Screenshot documentation is in the doc folder. 
HTML, CSS and JS files are in the files folder. 

Application
The user macro displays a status of the employee with different colored background depending on the number of "stars" they have achieved. See screenshot: page-view.png

There are two use cases:
1. Embed the macro on a page for an employee with tasks and it automatically counts the stars, which are indicated after each task.
2. Embed the macro on an overview page (without tasks, but where many employees are listed) and you will need to enter the number of stars manually.

Using the macro:
A. Set up the Confluence backend: Create a user macro like you see in the screenshots user-macro-single.png / user-macro-overview.png (the HTML code can be found in employee_status_single.html / employee_status_overview.html)

B. CSS (= employee_status.css) and JS (employee_status.js) can be integrated into the custom HTML or the style sheet or theme. Both files have a very simple structure. The selectors in the JS file may have to be modified to include the stars, depending on how the stars are added in the tasks. See screenshot: tasks-with-stars.png.

C. Insert the macro into the desired page, see inserted-macro-single.png.

D. On the overview page the number of stars must be entered manually in the macro body. Because the tasks are on another page, they cannot be read, see inserted-macro-overview.png.