mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-20 06:08:08 +01:00
the span with class m_t and m_t_d and its styling are no longer needed mobile todo lists need to be wrapped in ul element. fixing up missing or unclosed
39 lines
2.6 KiB
Text
39 lines
2.6 KiB
Text
<%
|
|
new_todo_params = {:format => :m}
|
|
new_todo_params[:from_project] = @mobile_from_project if @mobile_from_project
|
|
new_todo_params[:from_context] = @mobile_from_context if @mobile_from_context
|
|
-%><?xml version="1.0"?>
|
|
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
|
<meta name="viewport" content="width=device-width, user-scalable=no">
|
|
<%= stylesheet_link_tag "mobile", :media => 'handheld,all' %>
|
|
<title><%= @page_title %></title>
|
|
</head><body>
|
|
<% if current_user && !current_user.prefs.nil? -%>
|
|
<div id="topbar"><h1><% if @down_count -%><span class="count" id="badge_count"><%= @down_count %></span><% end -%> <%=
|
|
l(Date.today, :format => current_user.prefs.title_date_format) -%></h1>
|
|
<div class="nav">
|
|
<%= (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"})) -%>
|
|
<% end -%>
|
|
</div></div>
|
|
<div id="content"><%= render_flash -%><%= yield -%></div>
|
|
<hr/><% if current_user && !current_user.prefs.nil? -%>
|
|
<div class="nav">
|
|
<%= (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"})) -%>
|
|
</div>
|
|
<% end -%>
|
|
<%= render :partial => "shared/mobile_footer" -%>
|
|
</body></html>
|