title: Meteor user search log
body: <p>For a meteor app I want to log the searches of the users and let each user see their previous searches including the date and time.</p>
  
  <p>Currently, I use this working search with bootstrap-3.</p>
  
  <pre><code>&lt;template name="search"&gt;
    &lt;div class="input-group" style="margin:1em 1em 0 1em;"&gt;
      &lt;input type="text" class="form-control" style="padding:1em; font-size: 120%; color:black; padding:0em 1em 0em 1em; height:2em; border: 1px solid #aaa; border-radius: 0;" placeholder="Start searching" id="search"/&gt;
      &lt;span class="input-group-addon"&gt;
        &lt;span class="glyphicon glyphicon-search" style="cursor:pointer;"&gt;&lt;/span&gt;
      &lt;/span&gt; 
    &lt;/div&gt;
  &lt;/template&gt;
  </code></pre>
  
  <p>Now I would like to store the users searches, in a collection I assume e.g.</p>
  
  <pre><code>Searches = new Meteor.Collection("Searches");
  </code></pre>
  
  <p>and only allow each user to see their previous searches. I added accounts-ui and accounts-password and {{>loginButtons}} to the html.</p>
  
  <p>How to I save the searches (best with date and time) and show them to the users (on an extra page)? How do I restrict the view for the users in that case?</p>