Project

General

Profile

Revision eab949e2

IDeab949e2c1b580374ceff0a371fd6e920b593644
Parent 94f31908
Child 072f2a16

Added by Vincent QUEMENER over 14 years ago

Ajout du template de la page masked_events affichant la liste des évènements bruts masqués appartenant à un évènement corrélé donné.

git-svn-id: https://vigilo-dev.si.c-s.fr/svn@2170 b22e2e97-25c9-44ff-b637-2e5ceca36478

View differences:

vigiboard/controllers/root.py
350 350
            'page': validators.Int(min=1),
351 351
        }, 
352 352
        error_handler = process_form_errors)
353
    @expose('events_table.html.html')
353
    @expose('events_table.html')
354 354
    @require(Any(not_anonymous(), msg=l_("You need to be authenticated")))
355 355
    def item(self, host, service=None, page=1):
356 356
        """
......
397 397
            id_first_row = 0
398 398
        else:
399 399
            id_first_row += 1
400
        
401
        item_label = host
402
        if service:
403
            item_label = "(%(hostname)s, %(servicename)s)" % \
404
                {"hostname": host, "servicename": service}
400 405

  
401 406
        return dict(
402 407
            events = aggregates.events,
408
            item_label = item_label,
403 409
            plugins = get_plugins_instances(),
404 410
            rows_info = {
405 411
                'id_first_row': id_first_row,

Also available in: Unified diff