% if @prefs.refresh != 0 -%>
;url=<%= request.request_uri %>">
<% end -%>
<%= javascript_include_merged :tracks %>
<%= javascript_include_tag :unobtrusive %>
<%= stylesheet_link_merged :tracks %>
<%= stylesheet_link_tag "print", :media => "print" %>
<%= auto_discovery_link_tag(:rss, {:controller => "todos", :action => "index", :format => 'rss', :token => "#{current_user.token}"}, {:title => "RSS feed of next actions"}) %>
<%= @page_title %>
<% if @count %>
<%= @count %>
<% end %>
<%= user_time.strftime(@prefs.title_date_format) %>
<%= link_to_function("Toggle notes", nil, {:accesskey => "S", :title => "Toggle all notes", :id => "toggle-notes-nav"}) do |page|
page.select('body .todo_notes').each { |e| e.toggle }
end
-%> |
<%= link_to "Logout (#{current_user.display_name}) ยป", logout_path %>
<%= navigation_link("Home", home_path, {:accesskey => "t", :title => "Home"} ) %>
<%= navigation_link( "Contexts", contexts_path, {:accesskey=>"c", :title=>"Contexts"} ) %>
<%= navigation_link( "Projects", projects_path, {:accesskey=>"p", :title=>"Projects"} ) %>
<%= navigation_link( "Tickler", tickler_path, {:accesskey =>"k", :title => "Tickler"} ) %>
<%= navigation_link( "Done", done_path, {:accesskey=>"d", :title=>"Completed"} ) %>
<%= navigation_link( "Notes", notes_path, {:accesskey => "o", :title => "Show all notes"} ) %>
<%= navigation_link( "Preferences", preferences_path, {:accesskey => "u", :title => "Show my preferences"} ) %>
<%= navigation_link( "Export", {:controller => "data", :action => "index"}, {:accesskey => "i", :title => "Import and export data"} ) %>
<% if current_user.is_admin? -%>
<%= navigation_link("Admin", users_path, {:accesskey => "a", :title => "Add or delete users"} ) %>
<% end -%>
<%= navigation_link(image_tag("x-office-calendar.png", :size => "16X16", :border => 0), calendar_path, :title => "Calendar of due actions" ) %>
<%= navigation_link(image_tag("recurring_menu16x16.png", :size => "16X16", :border => 0), {:controller => "recurring_todos", :action => "index"}, :title => "Manage recurring actions" ) %>
<%= navigation_link(image_tag("feed-icon.png", :size => "16X16", :border => 0), {:controller => "feedlist", :action => "index"}, :title => "See a list of available feeds" ) %>
<%= navigation_link(image_tag("menustar.gif", :size => "16X16", :border => 0), tag_path("starred"), :title => "See your starred actions" ) %>
<%= navigation_link(image_tag("stats.gif", :size => "16X16", :border => 0), {:controller => "stats", :action => "index"}, :title => "See your statistics" ) %>
<%= navigation_link(image_tag("system-search.png", :size => "16X16", :border => 0), {:controller => "search", :action => "index"}, :title => "Search All Items" ) %>
<%= render_flash %>
<% unless @controller_name == 'feed' or session['noexpiry'] == "on" -%>
<%= periodically_call_remote( :url => {:controller => "login", :action => "check_expiry"},
:frequency => (5*60)) %>
<% end -%>
<%= periodically_call_remote( :url => formatted_check_deferred_todos_path(:js),
:method => :post,
:frequency => (10*60)) %>
<%= yield %>
<%= render :partial => "shared/footer" %>