Add help page for Foodsoft variables

This commit is contained in:
wvengen 2015-03-20 16:32:58 +01:00
parent a6f02a24d4
commit 15ac566ece
5 changed files with 38 additions and 1 deletions

View file

@ -85,5 +85,6 @@
%td(colspan=2)
%ul
%li!= link_to t('.help.link_table'), '//www.mediawiki.org/wiki/Help:Tables', target: '_blank'
%li!= link_to t('.help.link_variables'), page_path('Help:Foodsoft_variables'), target: '_blank'
%li!= link_to t('.help.link_lists'), '//www.mediawiki.org/wiki/Help:Lists', target: '_blank'
%li!= link_to t('.help.link_templates'), '//www.mediawiki.org/wiki/Help:Templates', target: '_blank'

View file

@ -0,0 +1,16 @@
- title t '.title'
%p= t '.description'
%table.table.table-hover
%thead
%tr
%th= t '.variable'
%th= t '.value'
%tbody
- @variables.each do |key, value|
%tr
%td
%tt= "{{#{key}}}"
%td
= value