///////////////////////////////////////////////////////////////////////////
| 53 | |
| 54 | //////////////////////////////////////////////////////////////////////////////// |
| 55 | void ColumnUUID::render(std::vector<std::string>& lines, Task& task, int width, Color& color) { |
| 56 | // No need to check the presence of UUID - all tasks have one. |
| 57 | |
| 58 | // f30cb9c3-3fc0-483f-bfb2-3bf134f00694 default |
| 59 | // f30cb9c3 short |
| 60 | if (_style == "default" || _style == "long") |
| 61 | renderStringLeft(lines, width, color, task.get(_name)); |
| 62 | |
| 63 | else if (_style == "short") |
| 64 | renderStringLeft(lines, width, color, task.get(_name).substr(0, 8)); |
| 65 | } |
| 66 | |
| 67 | //////////////////////////////////////////////////////////////////////////////// |