// fix modules list

This commit is contained in:
Kevin Granger
2013-09-04 18:56:00 +02:00
parent 22d636f93a
commit 161c612c02
3 changed files with 30 additions and 27 deletions
File diff suppressed because one or more lines are too long
@@ -833,10 +833,10 @@ fieldset > .row
@include box-shadow(rgba(white,0.9) 0 0 0 1px inset) @include box-shadow(rgba(white,0.9) 0 0 0 1px inset)
padding: 10px 10px 5px 10px padding: 10px 10px 5px 10px
margin-bottom: 3px!important margin-bottom: 3px!important
.module_name .module_name
font-size: 1.2em font-size: 1.2em
.module_description .module_description
@extend .text-muted @extend .text-muted
.hook_panel_header .hook_panel_header
margin: 0 -10px 0 -10px margin: 0 -10px 0 -10px
padding: 0 10px 10px 10px padding: 0 10px 10px 10px
@@ -59,12 +59,19 @@
{/if} {/if}
</td> </td>
<td> <td>
<img width="57" alt="" src="{if isset($module->image)}{$module->image}{else}../modules/{$module->name}/{$module->logo}{/if}" /> <img width="32" alt="" src="{if isset($module->image)}{$module->image}{else}../modules/{$module->name}/{$module->logo}{/if}" />
</td> </td>
<td> <td>
<div id="anchor{$module->name|ucfirst}"> <div id="anchor{$module->name|ucfirst}">
<h3 class="module-title"> <div class="text-muted">
{$module->categoryName}
</div>
<div class="module_name">
{$module->displayName} {$module->displayName}
<small>v{$module->version}</small>
{if isset($module->type) && $module->type == 'addonsMustHave'} {if isset($module->type) && $module->type == 'addonsMustHave'}
<span class="label label-info">{l s='Must Have'}</span> <span class="label label-info">{l s='Must Have'}</span>
{elseif isset($module->id) && $module->id gt 0} {elseif isset($module->id) && $module->id gt 0}
@@ -83,29 +90,25 @@
{else} {else}
<span class="label label-warning">{l s='Not installed'}</span> <span class="label label-warning">{l s='Not installed'}</span>
{/if} --> {/if} -->
</h3> </div>
<div class="row"> <!-- <p class="text-muted">
<p class="module-infos"> {if isset($module->author) && !empty($module->author)}
<strong>{$module->categoryName}</strong> - {l s='Developed by'} {$module->author|truncate:20:'...'}
{if isset($module->author) && !empty($module->author)} {/if}
{l s='Developed by'} {$module->author|truncate:20:'...'} {if isset($module->version_addons)}
{/if} ({l s='Update'} {$module->version_addons} {l s='Available on PrestaShop Addons'})
&nbsp;- {l s='Version'} : {$module->version} {/if}
{if isset($module->version_addons)} </p> -->
({l s='Update'} {$module->version_addons} {l s='Available on PrestaShop Addons'}) <p class="module_description">
{/if} {if isset($module->description) && $module->description ne ''}
</p> {$module->description}
<p class="module-description"> {/if}
{if isset($module->description) && $module->description ne ''} </p>
{$module->description}
{/if}
</p>
</div>
{if isset($module->message) && (!isset($module->type) || ($module->type != 'addonsMustHave' || $module->type !== 'addonsNative'))}<div class="alert alert-success">{$module->message}</div>{/if} {if isset($module->message) && (!isset($module->type) || ($module->type != 'addonsMustHave' || $module->type !== 'addonsNative'))}<div class="alert alert-success">{$module->message}</div>{/if}
</div> </div>
</td> </td>
<td> <td>
<div class="btn-group list-action-button"> <div class="btn-group btn-group-action">
{if isset($module->type) && $module->type == 'addonsMustHave'} {if isset($module->type) && $module->type == 'addonsMustHave'}
<a class="btn btn-default" href="{$module->addons_buy_url}" target="_blank"> <a class="btn btn-default" href="{$module->addons_buy_url}" target="_blank">
<i class="icon-shopping-cart"></i> &nbsp;{if isset($module->id_currency) && isset($module->price)}{displayPrice price=$module->price currency=$module->id_currency}{/if} <i class="icon-shopping-cart"></i> &nbsp;{if isset($module->id_currency) && isset($module->price)}{displayPrice price=$module->price currency=$module->id_currency}{/if}