Skip to content

Commit 41d9ed3

Browse files
committed
Add default filters in options page
1 parent 80c4f77 commit 41d9ed3

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

extension/options/options.html

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,49 @@
4141
</div>
4242
</div>
4343
</div>
44+
</fieldset>
45+
<hr/>
46+
<fieldset class="form-group">
47+
<div class="row">
48+
<legend class="col-form-label col-sm-12 pt-0">
49+
<strong>Default filter:</strong> (Applied to all searches)
50+
</legend>
51+
<div class="col-sm-12">
52+
<u><i>Common filters:</i></u>
53+
54+
<div class="form-check">
55+
<label class="form-check-label">
56+
<input class="form-check-input" type="checkbox" name="question_with_code" id="question_with_code">
57+
Questions that contain code
58+
</label>
59+
</div>
60+
<div class="form-check">
61+
<label class="form-check-label">
62+
<input class="form-check-input" type="checkbox" name="community_wikis" id="community_wikis">
63+
Community wiki posts (<a href="https://meta.stackexchange.com/questions/11740/what-are-community-wiki-posts" target="_blank">reference</a>)
64+
</label>
65+
</div>
66+
<div class="form-check">
67+
<label class="form-check-label">
68+
<input class="form-check-input" type="checkbox" name="duplicate_questions" id="duplicate_questions">
69+
Exclude duplicate questions
70+
</label>
71+
</div>
72+
<div class="form-group" style="margin-top: 0.5rem;">
73+
<select class="form-control" name="answer_type" id="answer_type">
74+
<option value="0">All questions</option>
75+
<option value="1">Questions with answers</option>
76+
<option value="2">Questions with accepted answers</option>
77+
<option value="3">Questions with upvoted answers</option>
78+
</select>
79+
</div>
80+
81+
<div class="form-group" style="margin-top: 0.5rem;">
82+
<label for="custom_filter"><u>Add custom filters</u>:</label> (<a href="https://stackoverflow.com/help/searching" target="_blank">filters reference</a>)
83+
<input type="text" class="form-control" name="custom_filter" id="custom_filter">
84+
</div>
85+
86+
</div>
4487
</div>
4588
</fieldset>
4689
<hr/>

0 commit comments

Comments
 (0)