]> git.immae.eu Git - perso/Immae/Config/Nix.git/blobdiff - modules/private/websites/tools/tools/dmarc_reports/index.html
Add anonymize for dmarc_reports
[perso/Immae/Config/Nix.git] / modules / private / websites / tools / tools / dmarc_reports / index.html
index ded05e15dee6bf484e06712dbf09878ac5bd745f..af29cdf6c61861dd55b85361cc8ea521034a6733 100644 (file)
 
 <body>
   <div id="app" style="width: 100%">
-    <div class="optionblock" v-if="info">
+    <div class="optionblock">
+      <div class='options'>
+        <span class='optionlabel'>Anonymize</span>
+        <label><input type="radio" :value="false" v-model="anonymous" v-on:click="toggleAnonymous()"> no</label>
+        <label><input type="radio" :value="true" v-model="anonymous" v-on:click="toggleAnonymous()"> yes</label>
+      </div>
+      <template v-if="info">
       <div class='options'>
         <span class='optionlabel'>Hide all-green lines:</span>
         <label><input type="radio" :value="false" v-model="filterGreen"> no</label>
           <option v-for="date in info.dates" :value="date">{{ date }}</option>
         </select>
       </div>
+      </template>
     </div>
 
     <h1 class='main'>DMARC Reports</h1>
+    <p v-if="!info" class="warninginfo">
+    No information could be fetched. If in non-anonymous mode you need to be logged-in
+    </p>
     <table class='reportlist' v-if="summaries">
       <thead>
         <tr>