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>
|
2012-09-01 18:50:33 +02:00
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
2014-02-17 13:38:49 +01:00
|
|
|
<meta name="mobile-web-app-capable" content="yes">
|
2012-09-01 18:50:33 +02:00
|
|
|
<meta name="viewport" content="width=device-width, user-scalable=no">
|
|
|
|
|
<%= stylesheet_link_tag "mobile", :media => 'handheld,all' %>
|
|
|
|
|
<%= favicon_link_tag 'favicon.ico' %>
|
|
|
|
|
<%= favicon_link_tag 'apple-touch-icon.png', :rel => 'apple-touch-icon', :type => 'image/png' %>
|
|
|
|
|
<title><%= @page_title %></title>
|
2008-05-28 09:29:46 +00:00
|
|
|
</head><body>
|
2011-11-22 09:42:21 -06:00
|
|
|
<% if current_user && !current_user.prefs.nil? -%>
|
2012-02-22 09:05:39 -06:00
|
|
|
<div id="topbar"><h1><% if @down_count -%><span class="count" id="badge_count"><%= @down_count %></span><% end -%> <%=
|
2015-08-04 23:08:13 +02:00
|
|
|
l(Time.zone.today, :format => current_user.prefs.title_date_format) -%></h1>
|
2012-04-13 17:33:39 -05:00
|
|
|
<ul class="nav">
|
2012-10-17 14:48:31 -05:00
|
|
|
<li class="link"><%= (link_to(t('layouts.mobile_navigation.new_action'), new_todo_path(new_todo_params))) -%></li>
|
|
|
|
|
<li class="link"><%= (link_to(t('layouts.mobile_navigation.home'), todos_path(:format => 'm'))) -%></li>
|
2012-04-13 17:33:39 -05:00
|
|
|
<li class="link"><%= (link_to(t('layouts.mobile_navigation.contexts'), contexts_path(:format => 'm'))) -%></li>
|
|
|
|
|
<li class="link"><%= (link_to(t('layouts.mobile_navigation.projects'), projects_path(:format => 'm'))) -%></li>
|
2012-05-12 13:37:36 +02:00
|
|
|
<li class="link"><%= (link_to(t('layouts.mobile_navigation.starred'), tag_path("starred", :format => 'm'))) -%></li>
|
2012-04-13 17:33:39 -05:00
|
|
|
</ul></div>
|
2012-11-30 17:23:03 -05:00
|
|
|
<% end -%>
|
2011-11-22 09:42:21 -06:00
|
|
|
<div id="content"><%= render_flash -%><%= yield -%></div>
|
2011-02-26 11:38:39 +01:00
|
|
|
<hr/><% if current_user && !current_user.prefs.nil? -%>
|
2012-04-13 17:33:39 -05:00
|
|
|
<ul class="nav">
|
2012-10-17 15:02:36 -05:00
|
|
|
<li class="link"><%= (link_to(t('layouts.mobile_navigation.home'), todos_path(:format => 'm'))) -%></li>
|
2012-04-13 17:33:39 -05:00
|
|
|
<li class="link"><%= (link_to(t('layouts.mobile_navigation.logout'), logout_path(:format => 'm'))) -%></li>
|
2012-05-12 13:37:36 +02:00
|
|
|
<li class="link"><%= (link_to(t('layouts.mobile_navigation.tickler'), tickler_path(:format => :m))) -%></li>
|
2014-04-21 12:09:32 -04:00
|
|
|
<li class="link"><%= (link_to(t('layouts.mobile_navigation.calendar'), calendar_path(:format => :m))) -%></li>
|
2012-05-12 13:37:36 +02:00
|
|
|
<li class="link"><%= (link_to(t('layouts.mobile_navigation.feeds'), feeds_path(:format=>:m))) -%></li>
|
2012-04-13 17:33:39 -05:00
|
|
|
</ul>
|
2008-05-28 09:29:46 +00:00
|
|
|
<% end -%>
|
2012-05-12 13:37:36 +02:00
|
|
|
<%= render :partial => "shared/footer" -%>
|
2009-12-07 19:10:55 -05:00
|
|
|
</body></html>
|