<commit_before>%rebase("layout", css=['tags/css/tags-overview.css'], js=['tags/js/tags-overview.js'], title='Hosts tags overview', refresh=True)

%from shinken.misc.filter import only_related_to

<div class="row">
  <span class="btn-group pull-right">
    <a href="#" id="listview" class="btn btn-small switcher quickinfo pull-right" data-original-title='List'> <i class="fa fa-align-justify"></i> </a>
    <a href="#" id="gridview" class="btn btn-small switcher active quickinfo pull-right" data-original-title='Grid'> <i class="fa fa-th"></i> </a>
  </span>
</div>

<div class="row">
   <ul id="groups" class="grid row">
      %for tag in htags:
         %filtered=False
         %for filter in app.hosts_filter:
            %if tag['name'].startswith(filter):
               %filtered=True
            %end
         %end
         %if filtered:
            %continue
         %end
         %nHosts=0
         %hUp=hDown=hUnreachable=hPending=hUnknown=0
         %business_impact = 0
         %for h in tag['hosts']:<commit_msg>Fixes tags view potential error<commit_after>%rebase("layout", css=['tags/css/tags-overview.css'], js=['tags/js/tags-overview.js'], title='Hosts tags overview', refresh=True)

%from shinken.misc.filter import only_related_to

<div class="row">
  <span class="btn-group pull-right">
    <a href="#" id="listview" class="btn btn-small switcher quickinfo pull-right" data-original-title='List'> <i class="fa fa-align-justify"></i> </a>
    <a href="#" id="gridview" class="btn btn-small switcher active quickinfo pull-right" data-original-title='Grid'> <i class="fa fa-th"></i> </a>
  </span>
</div>

<div class="row">
   <ul id="groups" class="grid row">
      %for tag in htags:
         %nHosts=0
         %hUp=hDown=hUnreachable=hPending=hUnknown=0
         %business_impact = 0
         %for h in tag['hosts']:
{'fraction_non_alphanumeric': 0.17381857686040195, 'fraction_numerical': 0.0032590983161325366, 'mean_word_length': 3.375296912114014, 'pattern_counts': {'":': 0, '<': 31, '<?xml version=': 0, '>': 31, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4548549', 'n_tokens_mistral': 631, 'n_tokens_neox': 619, 'n_words': 143}