mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-11 18:01:10 -06:00
Merge pull request #193 from openclassify/dia
show banner image in user listing page
This commit is contained in:
commit
0febe19655
@ -1,18 +1,22 @@
|
||||
{% if app.request.get('user') != null or app.request.get('user') != "" %}
|
||||
{% set store = entries('store','store').where('user_id', user.id).first() %}
|
||||
{% if store is null %}
|
||||
{% set user = entries('store','user').where('user_id', user.id).first() %}
|
||||
{% set store = user.store %}
|
||||
{% endif %}
|
||||
{% if store is not null %}
|
||||
{% if userProfile.adv_listing_banner.url == '' %}
|
||||
{% set background_user = img('visiosoft.module.advs::images/user_section_back.png').url %}
|
||||
{% if store.store_banner is null %}
|
||||
{% set background_image = img('visiosoft.module.advs::images/user_section_back.png').url %}
|
||||
{% else %}
|
||||
{% set background_user = userProfile.adv_listing_banner.url %}
|
||||
{% set background_image = store.store_banner.url %}
|
||||
{% endif %}
|
||||
<div class="col-md-12 upper-list-banner" style="background-image: url('{{ background_user }}');">
|
||||
<div class="col-md-12 upper-list-banner" style="background-image: url('{{ background_image }}');">
|
||||
<div class="row">
|
||||
<div class="col-md-3 col-xs-3">
|
||||
<div class="card m-4">
|
||||
<img src="{{ store.file.url }}" class="card-img-top">
|
||||
<div class="card-body">
|
||||
<h5 class="card-title text-center">{{ store.name }}</h5>
|
||||
<h5 class="card-title text-center mb-0">{{ store.name }}</h5>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user