mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-19 15:36:10 +01:00
* fixed redirect to last page instead of /mobile after adding a new todo using mobile interface * fixed adding new todo to tickler instead of home after marking a todo belonging an active recurring todo complete
36 lines
No EOL
2 KiB
Text
36 lines
No EOL
2 KiB
Text
<%
|
|
new_todo_params = {}
|
|
new_todo_params[:from_project] = @mobile_from_project if @mobile_from_project
|
|
new_todo_params[:from_context] = @mobile_from_context if @mobile_from_context
|
|
-%><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.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="initial-scale = 1.0" />
|
|
<%= stylesheet_link_tag "mobile"%>
|
|
<title><%= @page_title %></title>
|
|
</head><body>
|
|
<% if !(@new_mobile || @edit_mobile)
|
|
if !@prefs.nil? -%>
|
|
<h1><span class="count"><%= @down_count %></span> <%=
|
|
user_time.strftime(@prefs.title_date_format) -%></h1>
|
|
<%= (link_to("0-Add new action", formatted_new_todo_path(:m, new_todo_params))+" | ") unless @new_mobile -%>
|
|
<%= (link_to("1-Home", formatted_todos_path(:m))+" | ") unless @home -%>
|
|
<%= (link_to("2-Contexts", formatted_contexts_path(:m))+" | ") -%>
|
|
<%= (link_to("3-Projects", formatted_projects_path(:m))+" | ") -%>
|
|
<%= (link_to("4-Starred", {:action => "tag", :controller => "todos", :id => "starred.m"})) -%>
|
|
<% end
|
|
end -%><%= render_flash -%>
|
|
<hr/><%= yield -%>
|
|
<hr/><% if !@prefs.nil? -%>
|
|
<%= (link_to("Logout", formatted_logout_path(:format => 'm')) +" | ") -%>
|
|
<%= (link_to("0-Add new action", formatted_new_todo_path(:m), {:accesskey => "0"})+" | ") unless @new_mobile -%>
|
|
<%= (link_to("1-Home", formatted_todos_path(:m), {:accesskey => "1"})+" | ") unless @home -%>
|
|
<%= (link_to("2-Contexts", formatted_contexts_path(:m), {:accesskey => "2"})+" | ") -%>
|
|
<%= (link_to("3-Projects", formatted_projects_path(:m), {:accesskey => "3"})+" | ") -%>
|
|
<%= (link_to("4-Starred", {:action => "tag", :controller => "todos", :id => "starred.m"}, {:accesskey => "4"})+" | ") -%>
|
|
<%= (link_to("Tickler", {:action => "index", :controller => "tickler.m"})+" | ") -%>
|
|
<%= (link_to("Feeds", {:action => "index", :controller => "feeds.m"})) -%>
|
|
<% end -%>
|
|
<%= render :partial => "shared/mobile_footer" -%>
|
|
</body></html> |