module Space class Screen class Dashboard < View def render App.logger.debug('RENDER dashboard') clear render_header render_repos end def notify(event) render end private def render_repos project.repos.scope.self_and_deps.each do |repo| render_template(:repo, assigns(repo)) end end def assigns(repo) { repos: project.repos, repo: repo, git: repo.git, bundle: repo.bundle } end end end end