Skip to content

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

@otac0n

Description

@otac0n

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>

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions