Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
sympa
sympa
Commits
12934efe
Commit
12934efe
authored
Sep 02, 2019
by
IKEDA Soji
Browse files
Small refactoring.
parent
b2a89e04
Changes
3
Hide whitespace changes
Inline
Side-by-side
default/web_tt2/list_panel.tt2
View file @
12934efe
<!-- 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 %]
...
...
src/lib/Sympa/ListOpt.pm
View file @
12934efe
...
...
@@ -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;
...
...
src/lib/Sympa/Template.pm
View file @
12934efe
...
...
@@ -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
}
||
{};
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment