mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-15 11:48:07 +01:00
Added a new row to the context table: hide. This determines whether a context gets hidden from the front todo/list page (it can still be accessed directly or via the context/list page). If it's true (1), the context is hidden. By default, it's false, so you don't have to check the box for every context you add, only the ones you want to hide.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@14 a4c988fc-2ded-0310-b66e-134b36920a42
This commit is contained in:
parent
9a649506a5
commit
ed4481f3b6
6 changed files with 15 additions and 5 deletions
|
|
@ -24,7 +24,7 @@ class ContextController < ApplicationController
|
|||
#
|
||||
def add_context
|
||||
context = Context.new
|
||||
context.name = @params["new_context"]["name"]
|
||||
context.attributes = @params["new_context"]
|
||||
|
||||
if context.save
|
||||
flash["confirmation"] = "Succesfully created context"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue