summaryrefslogtreecommitdiff
path: root/web/views
diff options
context:
space:
mode:
authorJochen Topf <jochen@topf.org>2013-01-18 17:00:53 +0100
committerJochen Topf <jochen@topf.org>2013-01-18 17:00:53 +0100
commit34409258243f9b93225a4e17f63b3dbe08dfab71 (patch)
treefd3468c5950ee0b533bda89b772ea3247ad35975 /web/views
parentcccd07319ce6979fc068ed55f9c4b778998b01aa (diff)
downloadtaginfo-34409258243f9b93225a4e17f63b3dbe08dfab71.tar
taginfo-34409258243f9b93225a4e17f63b3dbe08dfab71.tar.gz
Add help texts
Diffstat (limited to 'web/views')
-rw-r--r--web/views/help/keyboard.erb45
-rw-r--r--web/views/help/search.erb15
2 files changed, 60 insertions, 0 deletions
diff --git a/web/views/help/keyboard.erb b/web/views/help/keyboard.erb
new file mode 100644
index 0000000..0ac37dc
--- /dev/null
+++ b/web/views/help/keyboard.erb
@@ -0,0 +1,45 @@
+<table class="help_table">
+ <tr>
+ <th><%= t.help.keyboard.site_navigation %></th>
+ <th><%= t.help.keyboard.page_navigation %></th>
+ <th><%= t.help.keyboard.table_navigation %></th>
+ </tr>
+ <tr>
+ <td><span class="key">h</span> - <%= t.help.keyboard.home_page %></td>
+ <td><span class="key">?</span> - <%= t.help.keyboard.help_page %></td>
+ <td><span class="key"><%= t.help.keyboard.keys.home %></span> - <%= t.help.keyboard.first_page %></td>
+ </tr>
+ <td><span class="key">k</span> - <%= t.help.keyboard.keys_page %></td>
+ <td><span class="key">s</span> - <%= t.help.keyboard.activate_search %></td>
+ <td><span class="key"><%= t.help.keyboard.keys.pageup %></span> - <%= t.help.keyboard.prev_page %></td>
+ <tr>
+ <td><span class="key">t</span> - <%= t.help.keyboard.tags_page %></td>
+ <td><span class="key"><%= t.help.keyboard.keys.tab %></span> - <%= t.help.keyboard.switch_input %></td>
+ <td><span class="key"><%= t.help.keyboard.keys.pagedown %></span> - <%= t.help.keyboard.next_page %></td>
+ </tr>
+ <tr>
+ <td><span class="key">r</span> - <%= t.help.keyboard.relations_page %></td>
+ <td><span class="key">1</span> - <span class="key">9</span> - <%= t.help.keyboard.switch_tab %></td>
+ <td><span class="key"><%= t.help.keyboard.keys.end %></span> - <%= t.help.keyboard.last_page %></td>
+ </tr>
+ <tr>
+ <td><span class="key">&larr;</span> - <%= t.help.keyboard.up %></td>
+ <td><span class="key"><%= t.help.keyboard.keys.esc %></span> - <%= t.help.keyboard.deactivate %></td>
+ <td><span class="key">&uarr;</span> - <%= t.help.keyboard.prev_entry %></td>
+ </tr>
+ <tr>
+ <td></td>
+ <td></td>
+ <td><span class="key">&darr;</span> - <%= t.help.keyboard.next_entry %></td>
+ </tr>
+ <tr>
+ <td></td>
+ <td></td>
+ <td><span class="key">&rarr;</span> - <%= t.help.keyboard.enter_entry %></td>
+ </tr>
+ <tr>
+ <td></td>
+ <td></td>
+ <td><span class="key">f</span> - <%= t.help.keyboard.activate_filter %></td>
+ </tr>
+</table>
diff --git a/web/views/help/search.erb b/web/views/help/search.erb
new file mode 100644
index 0000000..5c0dac9
--- /dev/null
+++ b/web/views/help/search.erb
@@ -0,0 +1,15 @@
+<p><b><%= t.help.search.intro %></b></p>
+<table class="help_table">
+ <tr><td width="50%">
+ <p><%= t.help.search.string %>:</p>
+ <p class="search">highway</p>
+ <p><%= t.help.search.substring %>:</p>
+ <p class="search">way</p>
+ </td><td width="50%">
+ <p><%= t.help.search.complete_tags %>:</p>
+ <p class="search">highway=residential</p>
+ <p><%= t.help.search.values_only %>:</p>
+ <p class="search">=residential</p>
+ </td></tr>
+</table>
+<p><%= t.help.search.suggestions %></p>