mirror of
https://github.com/TracksApp/tracks.git
synced 2026-03-10 22:52:37 +01:00
cleanup old selenium initializer stuff and migrate edit_a_todo
This commit is contained in:
parent
d193e21ee0
commit
d8b5c7d0d2
19 changed files with 501 additions and 191 deletions
|
|
@ -93,13 +93,16 @@ module NavigationHelpers
|
|||
feeds_path(options)
|
||||
when /the context page for "([^\"]*)" for user "([^\"]*)"/i
|
||||
@source_view = "context"
|
||||
context_path(User.find_by_login($2).contexts.find_by_name($1), options)
|
||||
@context = User.find_by_login($2).contexts.find_by_name($1)
|
||||
context_path(@context, options)
|
||||
when /the context page for "([^\"]*)"/i
|
||||
@source_view = "context"
|
||||
context_path(@current_user.contexts.find_by_name($1), options)
|
||||
@context = @current_user.contexts.find_by_name($1)
|
||||
context_path(@context, options)
|
||||
when /the "([^\"]*)" project for user "([^\"]*)"/i
|
||||
@source_view = "project"
|
||||
project_path(User.find_by_login($2).projects.find_by_name($1), options)
|
||||
@project = User.find_by_login($2).projects.find_by_name($1)
|
||||
project_path(@project, options)
|
||||
when /the "([^\"]*)" project/i
|
||||
@source_view = "project"
|
||||
@project = @current_user.projects.find_by_name($1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue