View the details of a particular WorkshiftType.

def list_types_view(request, semester, profile=None):
    """
    View the details of a particular WorkshiftType.
    """
    page_name = "Workshift Types"
    full_management = utils.can_manage(request.user, semester)
    any_management = utils.can_manage(request.user, semester, any_pool=True)

    types = WorkshiftType.objects.all()
    type_shifts = [
        RegularWorkshift.objects.filter(
            workshift_type=i,
            pool__semester=semester,
        ).order_by("day")
        for i in types
    ]
    shift_edits = [
        [
            (
                shift,
                full_management or
                utils.can_manage(request.user, semester, pool=shift.pool),
            )
            for shift in shifts
        ]
        for shifts in type_shifts
    ]

    return render_to_response("list_types.html", {
        "page_name": page_name,
        "type_tuples": zip(types, shift_edits),
        "can_edit": any_management,
    }, context_instance=RequestContext(request))