% if repository.work_items():
  <h1>Work Items <span>{{len(repository.work_items())}}</span></h1>
  <dl>
    % for path, item in repository.work_items():
      % include workitem path=path, item=item, detail='full'
    % end
  </dl>
% end

% rebase layout repository=repository

% if repository.work_items():
  % items = repository.work_items()
  % completed_items = [(x,y) for x,y in items if 'tags/completed' in y.tags]
  <h1>Work Items <span>{{len(completed_items)}} of {{len(items)}} completed</span></h1>
  <dl>
    % for path, item in items:
      % include workitem path=path, item=item, detail='full'
    % end
  </dl>
% end

% rebase layout repository=repository

Add information on completed work items
Add information on completed work items

Completed work items are items marked with the 'tags/completed' tag,
which I'll consider a "standard" tag for now.
