<!-- $Id: menu.tt2 12726 2016-03-09 04:01:24Z sikeda $ -->

<div class="navBar printNone">
	<ul class="MainMenu">	
		[% IF action == 'home' %][% SET class = 'MainMenuLinksCurrentPage' %][% ELSE %][% SET class = 'MainMenuLinks' %][% END %]
		<li><a class="[% class %]" href="[% 'home' | url_rel %]">[%|loc%]Home[%END%]</a></li>
		
	[% IF may_create_list %]
		[% IF action == 'create_list_request' %][% SET class = 'MainMenuLinksCurrentPage' %][% ELSE %][% SET class = 'MainMenuLinks' %][% END %]
		<li><a class="[% class %]" href="[% 'create_list_request' | url_rel %]" onclick="show('loading'); hide('content-inner');">[%|loc%]Request a List[%END%]</a></li>
	[% END %]
		
	[% IF is_listmaster %]
		[% IF action == 'serveradmin' or action == 'skinsedit' or action == 'get_pending_lists'  or action == 'get_closed_lists'  or action == 'get_latest_lists'   or action == 'get_inactive_lists' or action == 'edit_config' %][% SET class = 'MainMenuLinksCurrentPage' %][% ELSE %][% SET class = 'MainMenuLinks' %][% END %]
		<li><a  class="[% class %]" href="[% 'serveradmin' | url_rel %]" >[%|loc%]Listmaster Admin[%END%]</a></li>
	[% END %]
		
		[% IF action == 'lists' %][% SET class = 'MainMenuLinksCurrentPage' %][% ELSE %][% SET class = 'MainMenuLinks' %][% END %]
		<li><a class="[% class %]" href="[% 'lists' | url_rel %]" onclick="show('loading'); hide('content-inner');">[%|loc%]Index of Lists[%END%]</a></li>
		
		<li><a href="[% 'search_list_request' | url_rel %]">[%|loc%]Search for List(s)[%END%]</a></li>
		
		[% IF action == 'help' %][% SET class = 'MainMenuLinksCurrentPage' %][% ELSE %][% SET class = 'MainMenuLinks' %][% END %]
		<li><a class="[% class %]" href="[% 'help' | url_rel %]" >[%|loc%]Help[%END%]</a></li>
		
	[% IF conf.main_menu_custom_button_1_title %]
		<li><a class="MainMenuLinks" [% IF conf.main_menu_custom_button_1_target %] target ="[% conf.main_menu_custom_button_1_target %]"[% END %] href="[% conf.main_menu_custom_button_1_url %]">[% conf.main_menu_custom_button_1_title %]</a></li>
	[%END%]
		
	[% IF conf.main_menu_custom_button_2_title %]
		<li><a class="MainMenuLinks" [% IF conf.main_menu_custom_button_2_target %] target ="[% conf.main_menu_custom_button_2_target %]"[% END %] href="[% conf.main_menu_custom_button_2_url %]">[% conf.main_menu_custom_button_2_title %]</a></li>
	[%END%]
	
	[% IF conf.main_menu_custom_button_3_title %]
		<li><a class="MainMenuLinks" [% IF conf.main_menu_custom_button_3_target %] target ="[% conf.main_menu_custom_button_3_target %]"[% END %] href="[% conf.main_menu_custom_button_3_url %]">[% conf.main_menu_custom_button_3_title %]</a></li>
	[%END%]
	
[% FOREACH alf IN conf.automatic_list_families.keys %]
	[% IF session.is_family_owner.$alf %]
		[% IF action == 'automatic_lists_request' && family.name == conf.automatic_list_families.$alf.name %][% SET class = 'MainMenuLinksCurrentPage' %][% ELSE %][% SET class = 'MainMenuLinks' %][% END %]
		<li><a class="[% class %]" href="[% 'automatic_lists_request' | url_rel([conf.automatic_list_families.$alf.name]) %]" >[% conf.automatic_list_families.$alf.display %]</a></li>
	[% END %]
[% END %]

	</ul>

</div>

<!-- end menu.tt2 -->
