Commit d2ac3bdf authored by IKEDA Soji's avatar IKEDA Soji
Browse files

Consistent headings and title bars.

parent 96de9940
......@@ -4,6 +4,9 @@
[% IF list %]
<div class="title-bar"
data-responsive-toggle="sympa-sub-bar" data-hide-for="medium">
<span class="menu-text" aria-hidden="true">
<i class="fa fa-envelope-square fa-lg"></i>
</span>
<div class="title-bar-right">
<div class="title-bar-title">
<span>[%|loc%]List Options Menu[%END%]</span>
......@@ -35,9 +38,13 @@
<div class="title-bar"
data-responsive-toggle="sympa-sub-bar" data-hide-for="medium">
<a class="menu-text" href="[% conf.wwsympa_url %]"
title="[% conf.wwsympa_url %]"><img src="[% icons_url %]/logo_sympa.png"
alt="[%|loc%]SYMPA logo[%END%]" /></a>
<span class="menu-text" aria-hidden="true">
[% IF conf.logo_html_definition %]
[% conf.logo_html_definition %]
[% ELSE %]
<a href="[% conf.wwsympa_url %]" title="[% conf.wwsympa_url %]"><img src="[% icons_url %]/logo_sympa.png" alt="[%|loc%]SYMPA logo[%END%]" /></a>
[% END %]
</span>
<div class="title-bar-right">
<div class="title-bar-title">
<span>[%|loc%]General Menu[%END%]</span>
......
<!-- compose_mail.tt2 -->
[% IF !subaction %]
<h2>[%|loc%]Sending a message to the list[%END%] <a href="[% 'nomenu/help/sendmsg' | url_rel %]" title="[%|loc%]Open in a new window[%END%]" onclick="window.open('','wws_help','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=400,height=200')" target="wws_help"><i class="fa fa-question-circle" title="[%|loc%]Help[%END%]"></i></a></h2>
[% END %]
[% IF subaction == "html_news_letter" %]
<h2>[%|loc%]Sending an HTML page to the list[%END%] <a href="[% 'nomenu/help/sendmsg' | url_rel %]" title="[%|loc%]Open in a new window[%END%]" onclick="window.open('','wws_help','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=400,height=200')" target="wws_help"><i class="fa fa-question-circle" title="[%|loc%]Help[%END%]"></i></a></h2>
[% END %]
<form class="noborder" action="[% path_cgi %]" method="post" name="compose_mail" enctype="multipart/form-data">
<fieldset>
[%|loc(user.email)%]From: %1[%END%]<br />
......
......@@ -3,7 +3,6 @@
<div class="block" id="create_switch">
<div id="list_create">
<h2><i class="fa fa-plus"></i> [%|loc%]Create list[%END%] <a href="[% 'nomenu/help/admin' | url_rel %]#create_list" title="[%|loc%]Open in a new window[%END%]" onclick="window.open('','wws_help','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=800,height=400')" target="wws_help"><i class="fa fa-question-circle" title="[%|loc%]Help[%END%]"></i></a></h2>
<form action="[% path_cgi %]" method="post">
<fieldset>
......@@ -75,11 +74,11 @@
[% IF all_lists.size > 0 %]
<div id="list_copy">
<h2>[%|loc%]Copy an existing list[%END%]</h2>
<br />
<p>
[%|loc%]You can create a list by using another existing list as a template. The configuration will be copied to the new list. Please note that neither the list members, archives, nor shared documents will be duplicated. Only the lists you own may be used as templates.[%END%]
[%|loc%]After the list is created, you will be able to modify the configuration.[%END%] <br />
[%|loc%]After the list is created, you will be able to modify the configuration.[%END%]
</p>
<form action="[% path_cgi %]" method="post">
<fieldset>
<select name="list">
......
<!-- d_read.tt2 -->
<h2>[%|loc%]Shared documents[%END%] <a href="[% 'nomenu/help/shared' | url_rel %]" title="[%|loc%]Open in a new window[%END%]" onclick="window.open('','wws_help','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=400,height=200')" target="wws_help"><i class="fa fa-question-circle" title="[%|loc%]Help[%END%]"></i></a></h2>
<menu class="shared">
[% IF shared_doc.paths.size -%]
[% FOREACH a = shared_doc.ancestors ~%]
......
......@@ -3,9 +3,13 @@
<div class="title-bar"
data-responsive-toggle="sympa-top-bar" data-hide-for="medium">
<a class="menu-text" href="[% conf.wwsympa_url %]"
title="[% conf.wwsympa_url %]"><img src="[% icons_url %]/logo_sympa.png"
alt="[%|loc%]SYMPA logo[%END%]" /></a>
<span class="menu-text" aria-hidden="true">
[% IF conf.logo_html_definition %]
[% conf.logo_html_definition %]
[% ELSE %]
<a href="[% conf.wwsympa_url %]" title="[% conf.wwsympa_url %]"><img src="[% icons_url %]/logo_sympa.png" alt="[%|loc%]SYMPA logo[%END%]" /></a>
[% END %]
</span>
<div class="title-bar-right">
<div class="title-bar-title">
<span>[%|loc%]Sympa Menu[%END%]</span>
......@@ -15,7 +19,7 @@
</div>
<nav class="top-bar" id="sympa-top-bar" role="navigation">
<ul class="top-bar-left large-2 columns show-for-medium">
<ul class="top-bar-left medium-2 columns show-for-medium">
<li class="name">
<span class="menu-text">
[% IF conf.logo_html_definition %]
......@@ -47,9 +51,17 @@
[%~ ELSIF use_passwd || use_sso || authentication_info_url ~%]
[% IF action == 'loginrequest'; SET class = 'active'; END ~%]
<li class="[% class %]">
<a href="[% 'loginrequest' | url_rel([action,list]) %]">
<i class="fa fa-user"></i> [%|loc%]Login[%END%]
</a>
<form action="[% path_cgi %]" method="POST">
<fieldset>
<input type="hidden" name="previous_action"
value="[% action %]" />
<input type="hidden" name="previous_list" value="[% list %]" />
<button type="submit" name="action_loginrequest"
value="[%|loc%]Login[%END%]">
<i class="fa fa-user"></i> [%|loc%]Login[%END%]
</button>
</fieldset>
</form>
</li>
[%~ END %]
</ul>
......
......@@ -55,7 +55,10 @@
</span></li>
[%~ END %]
<li class="menu_title"><label><i class="fa fa-envelope-square fa-lg"></i> [%|loc%]List Options[%END%]</label></li>
<li class="menu_title[%IF top_menu%] nolink[%END%]">
<label><i class="fa fa-envelope-square fa-lg"></i>
[%|loc%]List Options[%END%]</label>
</li>
[% PROCESS 'list_panel.tt2' %]
......
<!-- nav.tt2 -->
[% IF action == 'create_list_request' %]
[% IF all_lists.size > 0 ~%]
<h2 class="show-for-medium">
<i class="fa fa-plus"></i> [%|loc%]Create list[%END%]
<a href="[% 'nomenu/help/admin' | url_rel %]#create_list" title="[%|loc%]Open in a new window[%END%]" onclick="window.open('','wws_help','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=800,height=400')" target="wws_help"><i class="fa fa-question-circle" title="[%|loc%]Help[%END%]"></i></a>
</h2>
<div class="title-bar"
data-responsive-toggle="sympa-nav-bar" data-hide-for="medium">
<span class="menu-text" aria-hidden="true">
<i class="fa fa-plus"></i>
</span>
<div class="title-bar-right">
<div class="title-bar-title">
<span>[%|loc%]Create List Menu[%END%]</span>
<span>[%|loc%]Create list[%END%]</span>
</div>
<a class="menu-icon" href="#" data-toggle="sympa-nav-bar"></a>
</div>
......@@ -25,11 +33,18 @@
[% END %]
[% IF action == 'serveradmin' or action == 'skinsedit' or action == 'edit_config' or action == 'get_pending_lists' or action == 'get_closed_lists' or action == 'get_latest_lists' or action == 'get_inactive_lists' %]
<h2 class="show-for-medium">
<i class="fa fa-wrench"></i> [%|loc%]Listmaster Admin[%END%]
</h2>
<div class="title-bar"
data-responsive-toggle="sympa-nav-bar" data-hide-for="medium">
<span class="menu-text" aria-hidden="true">
<i class="fa fa-wrench"></i>
</span>
<div class="title-bar-right">
<div class="title-bar-title">
<span>[%|loc%]Listmaster Admin Menu[%END%]</span>
<span>[%|loc%]Listmaster Admin[%END%]</span>
</div>
<a class="menu-icon" href="#" data-toggle="sympa-nav-bar"></a>
</div>
......@@ -80,12 +95,17 @@
[% END %]
[% IF action == 'lists' %]
<h2>[%|loc%]Index of lists[%END%]</h2>
<h2 class="show-for-medium">
<i class="fa fa-list"></i> [%|loc%]Index of lists[%END%]
</h2>
[% letters = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z','others' ] ~%]
<div class="title-bar"
data-responsive-toggle="sympa-nav-bar" data-hide-for="medium">
<span class="menu-text" aria-hidden="true">
<i class="fa fa-list"></i>
</span>
<div class="title-bar-right">
<div class="title-bar-title">
<span>[%|loc%]Index of lists[%END%]</span>
......@@ -118,24 +138,25 @@
</nav>
[% END %]
[% IF action == 'admin' || action_type == 'admin' || action == 'editfile' %]
<h2>[%|loc%]Basic Operations[%END%]</h2>
[% IF action == 'admin' || action_type == 'admin' || action == 'editfile' ~%]
<h2 class="show-for-medium">[%|loc%]Basic Operations[%END%]</h2>
<div class="title-bar"
data-responsive-toggle="sympa-nav-bar" data-hide-for="medium">
<div class="title-bar-right">
<div class="title-bar-title">
<span>[%|loc%]Menu[%END%]</span>
<span>[%|loc%]Basic Operations[%END%]</span>
</div>
<a class="menu-icon" href="#" data-toggle="sympa-nav-bar"></a>
</div>
</div>
[% IF action == 'edit_list_request' || action == 'editfile' %][% SET class = 'active' %][% ELSE %][% SET class = '' %][% END %]
<nav class="top-bar" id="sympa-nav-bar">
<menu class="top-bar-left">
<ul class="vertical medium-horizontal menu"
data-responsive-menu="drilldown medium-dropdown">
[% IF action == 'edit_list_request' %][% SET class = 'active' %][% ELSE %][% SET class = '' %][% END %]
<li class="[% class %]"><a href="[% 'edit_list_request' | url_rel([list,'description']) %]">[%|loc%]Edit List Config[%END%]</a>
<ul class="vertical menu">
[% IF group == 'description' %][% SET class = 'active' %][% ELSE %][% SET class = '' %][% END %]
......@@ -207,18 +228,36 @@
[% END %]
[% IF action == 'compose_mail' %]
<h2 class="show-for-medium">
[% IF subaction == "html_news_letter" ~%]
[%|loc%]Sending an html page to the list [%END%]
[%~ ELSE ~%]
[%|loc%]Sending a message to the list[%END%]
[%~ END %]
<a href="[% 'nomenu/help/sendmsg' | url_rel %]"
title="[%|loc%]Open in a new window[%END%]"
onclick="window.open('','wws_help','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=400,height=200')" target="wws_help">
<i class="fa fa-question-circle" title="[%|loc%]Help[%END%]"></i>
</a>
[%~ END %]
</h2>
<div class="title-bar"
data-responsive-toggle="sympa-nav-bar" data-hide-for="medium">
<div class="title-bar-right">
<div class="title-bar-title">
<span>[%|loc%]Menu[%END%]</span>
<span>
[% IF subaction == "html_news_letter" ~%]
[%|loc%]Sending an html page to the list [%END%]
[%~ ELSE ~%]
[%|loc%]Sending a message to the list[%END%]
[%~ END %]
</span>
</div>
<a class="menu-icon" href="#" data-toggle="sympa-nav-bar"></a>
</div>
</div>
[% IF action == 'edit_list_request' %][% SET class = 'active' %][% ELSE %][% SET class = '' %][% END %]
[% IF subaction == '' %][% SET class = 'active' %][% ELSE %][% SET class = '' %][% END %]
<nav class="top-bar" id="sympa-nav-bar">
......@@ -234,12 +273,21 @@
[% END %]
[% IF action == 'd_read' ~%]
<h2 class="show-for-medium">
[%|loc%]Shared documents[%END%]
<a href="[% 'nomenu/help/shared' | url_rel %]"
title="[%|loc%]Open in a new window[%END%]"
onclick="window.open('','wws_help','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=400,height=200')"
target="wws_help">
<i class="fa fa-question-circle" title="[%|loc%]Help[%END%]"></i>
</a>
</h2>
<div class="title-bar"
data-responsive-toggle="sympa-nav-bar" data-hide-for="medium">
<div class="title-bar-right">
<div class="title-bar-title">
<span>[%|loc%]Menu[%END%]</span>
<span>[%|loc%]Shared documents[%END%]</span>
</div>
<a class="menu-icon" href="#" data-toggle="sympa-nav-bar"></a>
</div>
......
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