5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-23 00:56:22 +00:00
panel/app/views/application/markdown.haml

75 lines
2.2 KiB
Text
Raw Permalink Normal View History

2018-02-25 01:10:37 +00:00
- if request.referer
= render 'layouts/breadcrumb', crumbs: [ link_to(t('help.markdown.back'), request.referer) ]
.row
.col
2019-09-12 18:11:55 +00:00
%table.table.table-responsive-md
2018-02-25 01:10:37 +00:00
%thead
%tr
%th= t('help.markdown.input')
%th= t('help.markdown.output')
%tbody
%tr
%td
%code= "**#{t('help.markdown.bold')}**"
%td
%strong= t('help.markdown.bold')
%tr
%td
%code= "_#{t('help.markdown.italic')}_"
%td
%em= t('help.markdown.italic')
- 7.times do |i|
- next if i == 0
%tr
%td
%code= "#{'#' * i} #{t('help.markdown.heading')} #{i}"
%td= raw "<h#{i}>#{t('help.markdown.heading')} #{i}</h#{i}>"
%tr
%td
%code= "[#{t('help.markdown.link.text')}](#{t('help.markdown.link.url')})"
%td= link_to t('help.markdown.link.text'), t('help.markdown.link.url')
%tr
%td
%code= "> #{t('help.markdown.quote')}"
%td
%blockquote.blockquote= t('help.markdown.quote')
%tr
%td
%code
- 3.times do
= "* #{t('help.markdown.ul')}"
%br
%td
%ul
- 3.times do
%li= t('help.markdown.ul')
%tr
%td
%code
- 3.times do |i|
= "#{i}. #{t('help.markdown.ol')}"
%br
%td
%ol
- 3.times do
%li= t('help.markdown.ol')
2018-02-28 17:45:03 +00:00
%tr
%td{colspan: 2}= t('help.markdown.dir')
%tr
%td
%code= "[#{t('help.markdown.ltr')}]{dir=ltr lang=es}"
%td
%span{dir: 'ltr', lang: 'es'}= t('help.markdown.ltr')
%tr
%td
%code= "[#{t('help.markdown.rtl')}]{dir=rtl lang=es}"
%td
%span{dir: 'rtl', lang: 'es'}= t('help.markdown.rtl')
2018-02-25 01:10:37 +00:00
%tr
%td
%code= "![#{t('help.markdown.img.text')}](#{t('help.markdown.img.url')})"
%td
%img{alt: t('help.markdown.img.text'), src: t('help.markdown.img.url')}