mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-28 19:56:11 +01:00
migrate creating a new context and refactor some project js to share with context js
This commit is contained in:
parent
8f5efff8da
commit
15fdb1e572
14 changed files with 178 additions and 101 deletions
|
|
@ -14,6 +14,7 @@ class ContextsController < ApplicationController
|
|||
@active_contexts = current_user.contexts.active(true)
|
||||
@hidden_contexts = current_user.contexts.hidden(true)
|
||||
@count = @active_contexts.size + @hidden_contexts.size
|
||||
@new_context = current_user.contexts.build
|
||||
init_not_done_counts(['context'])
|
||||
respond_to do |format|
|
||||
format.html &render_contexts_html
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue