~ubuntu-branches/ubuntu/trusty/horizon/trusty

« back to all changes in this revision

Viewing changes to horizon/dashboards/nova/instances_and_volumes/volumes/tables.py

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2012-03-09 11:50:22 UTC
  • mfrom: (1.1.9)
  • Revision ID: package-import@ubuntu.com-20120309115022-ymiww5i58rbg97my
Tags: 2012.1~rc1~20120308.1479-0ubuntu1
* New upstream version.
* debian/rules: Fix symlink when installing horizon.
  (LP: #947118)
* debian/control: Add python-django-nose as a dep. (LP: #944235)
* debian/control: Fix broken depends.

Show diffs side-by-side

added added

removed removed

Lines of Context:
59
59
    name = "snapshots"
60
60
    verbose_name = _("Create Snapshot")
61
61
    url = "horizon:nova:instances_and_volumes:volumes:create_snapshot"
 
62
    attrs = {"class": "ajax-modal"}
62
63
 
63
64
    def allowed(self, request, volume=None):
64
65
        return volume.status in ("available",)
89
90
    description = tables.Column("displayDescription",
90
91
                                verbose_name=_("Description"))
91
92
    size = tables.Column(get_size, verbose_name=_("Size"))
92
 
    status = tables.Column("status", filters=(title,))
 
93
    status = tables.Column("status", filters=(title,),
 
94
                           verbose_name=_("Status"))
93
95
 
94
96
    def sanitize_id(self, obj_id):
95
97
        return int(obj_id)