migrate creating a new context and refactor some project js to share with context js

This commit is contained in:
Reinier Balt 2010-10-22 20:46:06 +02:00
parent 8f5efff8da
commit 15fdb1e572
14 changed files with 178 additions and 101 deletions

View file

@ -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