Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search/review posts by site #39

Open
double-beep opened this issue May 7, 2020 · 1 comment
Open

Search/review posts by site #39

double-beep opened this issue May 7, 2020 · 1 comment

Comments

@double-beep
Copy link
Contributor

Now that reports.sobotics.org is down, it's useful to search Sentinel for Stack Overflow posts without feedback. Would it be possible to search by site in /search? Something like:

Site
<div class="field input-group">
  <%= select_tag 'site', options_from_collection_for_select(Site.all, 'url', 'name'), :include_blank => true, :class => "form-control" %>
  <span class="input-group-btn">
    <%= submit_tag 'Search', :class => "btn btn-success" %>
  </span>
</div>
if params[:site].present?
  @results = @results.where('link LIKE ?', "%#{params[:site]}%")
end

Perhaps also add an option to filter posts by site in review, too.

@ArtOfCode-
Copy link
Owner

Sounds like you know what it might need... want to throw a PR in?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants