@login_required
def log(request, code):
    (check, rw) = _get_check_for_user(request, code)
    limit = check.project.owner_profile.ping_log_limit
    ctx = {'project': check.project, 'check': check, 'events': _get_events(check, limit), 'limit': limit, 'show_limit_notice': ((check.n_pings > limit) and settings.USE_PAYMENTS)}
    return render(request, 'front/log.html', ctx)
@login_required
def log(request, code):
    (check, rw) = _get_check_for_user(request, code)
    limit = check.project.owner_profile.ping_log_limit
    ctx = {'project': check.project, 'check': check, 'events': _get_events(check, limit), 'limit': limit, 'show_limit_notice': ((check.n_pings > limit) and settings.USE_PAYMENTS)}
    return render(request, 'front/log.html', ctx)