crowbar/barclamp-crowbar — pull request #617 by cloudedge (2013-07-22 18:45:38+00:00)
Title: UI views to support TODO states for node-roles [1/1]

I'm working towards being able to run the annealer from the UI/API.

The core of this work is the addition of the snapshots.transistion method; however,
there is also a lot of UI cleanup and love that went into this pull too.

From the UI, you can now navigate between deployments, snapshots, roles, nodes, and node-roles.

I've got the awesome snapshot node-role overview (grid with state icons!).

I've also been sprinkling the state icon into the relevant snapshot & node places.

Also, I'm using i18n xref so we should be able to limit en.yml explosion.

BDD/bdd.erl | 5 +-
BDD/eurl.erl | 2 +-
BDD/features/annealer.feature | 10 ++++
BDD/features/node_role.feature | 18 +++++--
BDD/features/snapshot.feature | 2 +-
.../app/assets/stylesheets/_common.sass | 21 ++++----
.../app/controllers/crowbar_controller.rb | 44 ---------------
.../app/controllers/node_roles_controller.rb | 7 ++-
.../app/controllers/snapshots_controller.rb | 12 +++++
crowbar_framework/app/models/node.rb | 14 +++++
crowbar_framework/app/models/node_role.rb | 14 +++--
crowbar_framework/app/models/snapshot.rb | 49 ++++++++++++++++-
.../app/views/deployments/show.html.haml | 56 +++++---------------
.../app/views/node_roles/index.html.haml | 33 +++++++++---
.../app/views/node_roles/show.html.haml | 5 ++
crowbar_framework/app/views/nodes/index.html.haml | 27 ++++++----
crowbar_framework/app/views/nodes/show.html.haml | 5 ++
.../app/views/snapshots/index.html.haml | 27 +++++++---
.../app/views/snapshots/show.html.haml | 15 +++++-
crowbar_framework/config/locales/crowbar/en.yml | 52 ++++++++++++------
crowbar_framework/config/routes.rb | 50 +++++++++++------
21 files changed, 297 insertions(+), 171 deletions(-)

Crowbar-Pull-ID: 73a3e3e18e358219f228351d44e40fa990db914f

Crowbar-Release: development