'@ToDo: There should be better control of this feature - currently this only works
with req_items which are being matched by commit / send / recv'

@staticmethod
def req_quantity_represent(quantity, type, show_link=True):

    if (quantity and show_link and (not current.deployment_settings.get_req_item_quantities_writable())):
        return TAG[''](quantity, A(DIV(_class=('quantity    %s    ajax_more    collapsed' % type)), _href='#'))
    else:
        return quantity
