otac0n / WebGitNet

WebGit .NET is an ASP.NET MVC app that provides access to your git repositories over HTTP. It supports browsing in a web browser AND push / pull over Git's "Smart HTTP protocol".
zlib License
132 stars 62 forks source link

Searching from the home page (all repos) should not search in file contents. #54

Open otac0n opened 11 years ago

otac0n commented 11 years ago

We should have a split drop-down button allowing people to check / uncheck search providers.

See Twitter's Button Dropdown for the desired UI. It would be a button with both the rounded search-style and a dropdown list.

It would look something like this:

  <form action="" method="get">
    <div class="input-append input-prepend">
      <span class="add-on"><i class="icon-search"></i></span>
      <input name="q" type="text">
      <div class="btn-group">
        <button class="btn">Search</button>
        <button class="btn dropdown-toggle" data-toggle="dropdown">
          <span class="caret"></span>
        </button>
        <ul class="dropdown-menu">
          <li><a><label class="checkbox"><input checked="checked" name="search" type="checkbox" value="repoinfo" /> Search in Repo Descriptions</label></a></li>
          <li><a><label class="checkbox"><input checked="checked" type="checkbox" name="search" value="filenames" /> Search in File Names</label></a></li>
          <li><a><label class="checkbox"><input name="search" type="checkbox" value="files" /> Search in File Contents</label></a></li>
        </ul>
      </div>
    </div>
  </form>