2008-08-04 16:13:51 +02:00
|
|
|
<%
|
2010-07-26 22:09:22 +02:00
|
|
|
new_todo_params = {:format => :m}
|
2008-08-04 16:13:51 +02:00
|
|
|
new_todo_params[:from_project] = @mobile_from_project if @mobile_from_project
|
|
|
|
|
new_todo_params[:from_context] = @mobile_from_context if @mobile_from_context
|
2008-12-04 16:52:17 +01:00
|
|
|
-%><?xml version="1.0"?>
|
|
|
|
|
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
|
2008-04-28 05:53:24 +00:00
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
2008-05-28 09:29:46 +00:00
|
|
|
<head>
|
|
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
|
|
|
|
<meta name="viewport" content="initial-scale = 1.0" />
|
2008-12-04 16:52:17 +01:00
|
|
|
<%= stylesheet_link_tag "mobile", :media => 'handheld,all' %>
|
2008-05-28 09:29:46 +00:00
|
|
|
<title><%= @page_title %></title>
|
|
|
|
|
</head><body>
|
|
|
|
|
<% if !(@new_mobile || @edit_mobile)
|
2011-02-26 11:38:39 +01:00
|
|
|
if current_user && !current_user.prefs.nil? -%>
|
2011-02-27 00:04:04 +01:00
|
|
|
<h1><span class="count" id="badge_count"><%= @down_count %></span> <%=
|
2011-01-06 23:01:17 +01:00
|
|
|
l(Date.today, :format => current_user.prefs.title_date_format) -%></h1>
|
2008-12-04 16:52:17 +01:00
|
|
|
<div class="nav">
|
2010-10-31 21:27:13 +08:00
|
|
|
<%= (link_to(t('layouts.mobile_navigation.new_action'), new_todo_path(new_todo_params))+" | ") unless @new_mobile -%>
|
|
|
|
|
<%= (link_to(t('layouts.mobile_navigation.home'), todos_path(:format => 'm'))+" | ") unless @home -%>
|
|
|
|
|
<%= (link_to(t('layouts.mobile_navigation.contexts'), contexts_path(:format => 'm'))+" | ") -%>
|
|
|
|
|
<%= (link_to(t('layouts.mobile_navigation.projects'), projects_path(:format => 'm'))+" | ") -%>
|
|
|
|
|
<%= (link_to(t('layouts.mobile_navigation.starred'), {:action => "tag", :controller => "todos", :id => "starred.m"})) -%>
|
2008-05-28 09:29:46 +00:00
|
|
|
<% end
|
|
|
|
|
end -%><%= render_flash -%>
|
2008-12-04 16:52:17 +01:00
|
|
|
</div>
|
|
|
|
|
<%= yield -%>
|
2011-02-26 11:38:39 +01:00
|
|
|
<hr/><% if current_user && !current_user.prefs.nil? -%>
|
2008-12-04 16:52:17 +01:00
|
|
|
<div class="nav">
|
2010-10-31 21:27:13 +08:00
|
|
|
<%= (link_to(t('layouts.mobile_navigation.logout'), logout_path(:format => 'm')) +" | ") -%>
|
|
|
|
|
<%= (link_to(t('layouts.mobile_navigation.new_action'), new_todo_path(new_todo_params), {:accesskey => "0"})+" | ") unless @new_mobile -%>
|
|
|
|
|
<%= (link_to(t('layouts.mobile_navigation.home'), todos_path(:format => 'm'), {:accesskey => "1"})+" | ") unless @home -%>
|
|
|
|
|
<%= (link_to(t('layouts.mobile_navigation.contexts'), contexts_path(:format => 'm'), {:accesskey => "2"})+" | ") -%>
|
|
|
|
|
<%= (link_to(t('layouts.mobile_navigation.projects'), projects_path(:format => 'm'), {:accesskey => "3"})+" | ") -%>
|
|
|
|
|
<%= (link_to(t('layouts.mobile_navigation.starred'), {:action => "tag", :controller => "todos", :id => "starred.m"}, {:accesskey => "4"})+" | ") -%>
|
|
|
|
|
<%= (link_to(t('layouts.mobile_navigation.tickler'), {:action => "index", :controller => "tickler.m"})+" | ") -%>
|
|
|
|
|
<%= (link_to(t('layouts.mobile_navigation.feeds'), {:action => "index", :controller => "feeds.m"})) -%>
|
2008-12-04 16:52:17 +01:00
|
|
|
</div>
|
2008-05-28 09:29:46 +00:00
|
|
|
<% end -%>
|
|
|
|
|
<%= render :partial => "shared/mobile_footer" -%>
|
2009-12-07 19:10:55 -05:00
|
|
|
</body></html>
|