diff options
| author | Jules Laplace <jules@okfoc.us> | 2016-12-31 05:57:34 +0100 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2016-12-31 05:57:49 +0100 |
| commit | 3319b60ca946a0fad11da52bb3fee4aa66afb62c (patch) | |
| tree | 25ea604546324640388580f2ee269d244081f0e2 /themes/okadmin/templates | |
| parent | bdcc83dae3742bf1c88da43a23f7278127d6251c (diff) | |
image display type in backend
Diffstat (limited to 'themes/okadmin/templates')
| -rw-r--r-- | themes/okadmin/templates/index.liquid | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/themes/okadmin/templates/index.liquid b/themes/okadmin/templates/index.liquid index d2ae557..c5754dc 100644 --- a/themes/okadmin/templates/index.liquid +++ b/themes/okadmin/templates/index.liquid @@ -52,7 +52,11 @@ <ol class="resource-list"> {% for data in resource.data %} <a href="{{resource.type}}/{{data.id}}/" {% if data.disabled %}class="disabled"{% endif %}> - {{data.title}} + {% if resource.display == 'image' %} + <div class="image" style="background-image:url('{{data.title}}')"></div> + {% else %} + {{data.title}} + {% endif %} <input class="resource-input" type="hidden" name="{{resource.type}}[{{forloop.index0}}]" value='{{data | stringify | escape_once}}'> </a> |
