addons/web/static/src/views/widgets/documentation_link/documentation_link.xml
raw| 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <templates xml:space="preserve"> |
| 3 | <t t-name="web.DocumentationLink"> |
| 4 | <a t-att-href="url" title="Documentation" t-att-class="classes" target="_blank"> |
| 5 | <t t-if="!props.icon and !props.label"> |
| 6 | <i class="fa fa-external-link" aria-hidden="true"></i> |
| 7 | <span>View Documentation</span> |
| 8 | </t> |
| 9 | <t t-else=""> |
| 10 | <i t-if="props.icon" class="fa pe-1" t-att-class="props.icon"></i> |
| 11 | <span t-esc="props.label"/> |
| 12 | </t> |
| 13 | </a> |
| 14 | </t> |
| 15 | </templates> |