Commit 12934efe authored by IKEDA Soji's avatar IKEDA Soji
Browse files

Small refactoring.

parent b2a89e04
<!-- list_panel.tt2 -->
[% IF list_status == 'closed' || list_status == 'family_closed' %]
[% IF list_status && list_status != 'open' ~%]
<li class="menuLinks">
<span class="warning label">[%|loc%]Closed list[%END%]</span>
</li>
[% ELSIF list_status == 'pending' %]
<li class="menuLinks">
<span class="warning label">[%|loc%]List not activated yet[%END%]</span>
</li>
[% ELSIF list_status == 'error_config' %]
<li class="menuLinks">
<span class="warning label">[%|loc%]Erroneous configuration[%END%]</span>
<span class="warning label">[% list_status | optdesc('status:cap') %]</span>
</li>
[% END %]
......
......@@ -256,6 +256,14 @@ our %list_status = (
'closed' => {'gettext_id' => 'closed list'},
);
our %list_status_capital = (
'open' => {'gettext_id' => 'In operation'},
'pending' => {'gettext_id' => 'List not activated yet'},
'error_config' => {'gettext_id' => 'Erroneous configuration'},
'family_closed' => {'gettext_id' => 'Closed family instance'},
'closed' => {'gettext_id' => 'Closed list'},
);
# Deprecated: Moved to Sympa::Template::_get_option_description().
#sub get_option_description;
......
......@@ -329,6 +329,7 @@ sub _get_option_description {
'reception' => \%Sympa::ListOpt::reception_mode,
'visibility' => \%Sympa::ListOpt::visibility_mode,
'status' => \%Sympa::ListOpt::list_status,
'status:cap' => \%Sympa::ListOpt::list_status_capital,
}->{$type}
|| \%Sympa::ListOpt::list_option;
my $t = $map->{$option} || {};
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment