-
Notifications
You must be signed in to change notification settings - Fork 103
Hide Domain column from mailbox listing #248
Copy link
Copy link
Closed
Description
As that is quite redundant column especially when there is one domain only, and as the domain name is shown at the top when browsing mailboxes per domain and the domain also shows in the username (in my configuration at least); I would suggest the following patch to optionally hide that column to file application/views/mailbox/list.phtml using configuration variable defaults.list_domain.disabled :
{if isset($options.defaults.list_size.disabled) && !$options.defaults.list_size.disabled}
<th>Size ({$size_multiplier})</th>
{/if}
- <th>Domain</th>
+ {if isset($options.defaults.list_domain.disabled) && !$options.defaults.list_domain.disabled}
+ <th>Domain</th>
+ {/if}
<th width="55">Active</th>
<th width="140"></th>
</tr>
@@ -57,7 +59,9 @@
{/if}
</td>
{/if}
- <td>{$mbox.domain}</td>
+ {if isset($options.defaults.list_domain.disabled) && !$options.defaults.list_domain.disabled}
+ <td>{$mbox.domain}</td>
+ {/if}
<td>
<div id="throb-toggle-active-{$mbox.id}" style="float: right;"></div>
<span id="toggle-active-{$mbox.id}" onclick="toggleActive( 'toggle-active-{$mbox.id}', {$mbox.id} );" class="btn btn-mini {if $mbox.active}btn-success{else}btn-danger{/if}">{$mbox.active|yesno}</span>
and the following lines to application.conf
;; Enable or disable display of Domain name column. Default : disabled
defaults.list_domain.disabled = true
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels