diff --git a/app/assets/stylesheets/common/tables.css.scss b/app/assets/stylesheets/common/tables.css.scss index 3658546ec..5d61d6852 100644 --- a/app/assets/stylesheets/common/tables.css.scss +++ b/app/assets/stylesheets/common/tables.css.scss @@ -39,3 +39,19 @@ table.striped { background-color: #FAFAFA; } } + +table.search { + tr { + height: 2em; + } + + th { + text-align: right; + padding-right: 1em; + vertical-align: top; + } + + td { + vertical-align: top; + } +} diff --git a/app/assets/stylesheets/specific/tags.css.scss b/app/assets/stylesheets/specific/tags.css.scss index db7efa08c..3b7ea1f6b 100644 --- a/app/assets/stylesheets/specific/tags.css.scss +++ b/app/assets/stylesheets/specific/tags.css.scss @@ -1,5 +1,5 @@ div#c-tags { - div#a-index { + div#a-index table.striped { td:nth-child(1), th:nth-child(1) { width: 5em; text-align: right; diff --git a/app/views/tags/_search.html.erb b/app/views/tags/_search.html.erb new file mode 100644 index 000000000..ffb504120 --- /dev/null +++ b/app/views/tags/_search.html.erb @@ -0,0 +1,46 @@ +
| + |
+
+ <%= text_field "search", "name_matches" %>
+ Use * for wildcard
+
+ |
+
|---|---|
| + |
+
+ <%= select "search", "category", [""] + Danbooru.config.canonical_tag_category_mapping.to_a %>
+
+ |
+
| + |
+
+ <%= select "search", "sort", %w(count date name) %>
+
+ |
+
| + |
+
+ <%= check_box "search", "hide_empty", {:checked => true}, "yes", "no" %>
+
+ |
+
| <%= submit_tag "Search" %> | + |