This repository has been archived by the owner on Jan 24, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds attribute filtering for repositories index view
- Loading branch information
Erin Fahy
committed
Aug 18, 2017
1 parent
7755f18
commit 5ccdbe9
Showing
7 changed files
with
81 additions
and
9 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<nav class="navbar navbar-light bg-faded fixed-top fixed-top-2"> | ||
<%= form_tag repositories_path, method: :get, enforce_utf8: false , class: 'form-inline justify-content-center' do %> | ||
<label class="mr-sm-2">Language</label> | ||
<%= select_tag 'language', options_for_select(@repositories.collect { |repo| repo.language }.uniq, selected: params[:language]), include_blank: true, class: 'custom-select mr-sm-2' %> | ||
|
||
<label class="mr-sm-2">Deployable</label> | ||
<%= select_tag 'deployable', options_for_select([true, false], selected: params[:deployable]), include_blank: true, class: 'custom-select mr-sm-2' %> | ||
|
||
<label class="mr-sm-2">Monitorable</label> | ||
<%= select_tag 'monitorable', options_for_select([true, false], selected: params[:monitorable]), include_blank: true, class: 'custom-select mr-sm-2' %> | ||
|
||
<label class="mr-sm-2">Tested</label> | ||
<%= select_tag 'tested', options_for_select([true, false], selected: params[:tested]), include_blank: true, class: 'custom-select mr-sm-2' %> | ||
|
||
<label class="mr-sm-2">Documented</label> | ||
<%= select_tag 'documented', options_for_select([true, false], selected: params[:documented]), include_blank: true, class: 'custom-select mr-sm-2' %> | ||
<%= submit_tag 'Filter', class: 'btn btn-outline-primary btn-sm mr-sm-2', name: nil %> | ||
<%= link_to 'Reset', repositories_path, class: 'btn btn-outline-secondary btn-sm' %> | ||
<% end %> | ||
</nav> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters