]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/site/_markdown_help.html.erb
Add preview functionality to rich text controls
[rails.git] / app / views / site / _markdown_help.html.erb
diff --git a/app/views/site/_markdown_help.html.erb b/app/views/site/_markdown_help.html.erb
new file mode 100644 (file)
index 0000000..9c03ac6
--- /dev/null
@@ -0,0 +1,29 @@
+<table>
+  <thead>
+    <tr>
+      <th colspan="2"><%= t "site.markdown_help.title" %></th>
+    </tr>
+  </thead>
+  <tbody>
+    <tr>
+      <th><%= t "site.markdown_help.headings" %></th>
+      <td># <%= t "site.markdown_help.heading" %><br />## <%= t "site.markdown_help.subheading" %></td>
+    </tr>
+    <tr>
+      <th><%= t "site.markdown_help.unordered" %></th>
+      <td>* <%= t "site.markdown_help.first" %><br />* <%= t "site.markdown_help.second" %></td>
+    </tr>
+    <tr>
+      <th><%= t "site.markdown_help.ordered" %></th>
+      <td>1. <%= t "site.markdown_help.first" %><br />2. <%= t "site.markdown_help.second" %></td>
+    </tr>
+    <tr>
+      <th><%= t "site.markdown_help.link" %></th>
+      <td>[<%= t "site.markdown_help.text" %>](<%= t "site.markdown_help.url" %>)</td>
+    </tr>
+    <tr>
+      <th><%= t "site.markdown_help.image" %></th>
+      <td>![<%= t "site.markdown_help.alt" %>](<%= t "site.markdown_help.url" %>)</td>
+    </tr>
+  </tbody>
+</table>