mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-04 16:28:50 +01:00
get some further scenarios for adding todos to several pages
one is still failing, will get to that
This commit is contained in:
parent
ab2e51a51a
commit
8cbe077784
8 changed files with 118 additions and 32 deletions
|
|
@ -44,11 +44,15 @@ module NavigationHelpers
|
|||
feeds_path
|
||||
when /the context page for "([^\"]*)" for user "([^\"]*)"/i
|
||||
context_path(User.find_by_login($2).contexts.find_by_name($1))
|
||||
when /the context page for "([^\"]*)"/i
|
||||
context_path(@current_user.contexts.find_by_name($1))
|
||||
when /the "([^\"]*)" project for user "([^\"]*)"/i
|
||||
project_path(User.find_by_login($2).projects.find_by_name($1))
|
||||
when /the "([^\"]*)" project/i
|
||||
@project = @current_user.projects.find_by_name($1)
|
||||
project_path(@project)
|
||||
when /the tag page for "([^"]*)"/i
|
||||
tag_path($1)
|
||||
|
||||
# Add more mappings here.
|
||||
# Here is an example that pulls values out of the Regexp:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue