mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-07 08:21:47 +01:00
Fix #969 by implementing a new mobile view for notes.
Did not create tests for it
This commit is contained in:
parent
2c6d514970
commit
110d3daf95
5 changed files with 23 additions and 2 deletions
|
|
@ -8,7 +8,7 @@ class TodosController < ApplicationController
|
|||
append_before_filter :init, :except => [ :destroy, :completed,
|
||||
:completed_archive, :check_deferred, :toggle_check, :toggle_star,
|
||||
:edit, :update, :create, :calendar, :auto_complete_for_predecessor, :remove_predecessor, :add_predecessor]
|
||||
append_before_filter :get_todo_from_params, :only => [ :edit, :toggle_check, :toggle_star, :show, :update, :destroy, :remove_predecessor]
|
||||
append_before_filter :get_todo_from_params, :only => [ :edit, :toggle_check, :toggle_star, :show, :update, :destroy, :remove_predecessor, :show_notes]
|
||||
protect_from_forgery :except => [:auto_complete_for_predecessor]
|
||||
|
||||
def index
|
||||
|
|
@ -736,7 +736,19 @@ class TodosController < ApplicationController
|
|||
@project.save!
|
||||
redirect_to project_url(@project)
|
||||
end
|
||||
|
||||
|
||||
def show_notes
|
||||
@return_path=cookies[:mobile_url] ? cookies[:mobile_url] : mobile_path
|
||||
respond_to do |format|
|
||||
format.html {
|
||||
redirect_to home_path, "Viewing note of todo is not implemented"
|
||||
}
|
||||
format.m {
|
||||
render:action => "mobile_show_notes"
|
||||
}
|
||||
end
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def get_todo_from_params
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue