~ubuntu-branches/ubuntu/utopic/horizon/utopic

« back to all changes in this revision

Viewing changes to openstack_dashboard/dashboards/admin/volumes/tables.py

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2014-07-25 11:39:09 UTC
  • mfrom: (1.1.42)
  • Revision ID: package-import@ubuntu.com-20140725113909-b8920pdy87itn1ro
Tags: 1:2014.2~b2-0ubuntu1
* New upstream release.
* debian/patches/ubuntu_settings.patch: Refresed
* debian/patches/fix-dashboard-manage.patch: Refreshed
* debian/patches/fix-dashboard-django-wsgi.patch: Refreshed

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
    policy_rules = (("volume", "volume_extension:types_manage"),)
27
27
 
28
28
 
 
29
class ViewVolumeTypeExtras(tables.LinkAction):
 
30
    name = "extras"
 
31
    verbose_name = _("View Extra Specs")
 
32
    url = "horizon:admin:volumes:extras:index"
 
33
    classes = ("btn-edit",)
 
34
    policy_rules = (("volume", "volume_extension:types_manage"),)
 
35
 
 
36
 
29
37
class DeleteVolumeType(tables.DeleteAction):
30
38
    data_type_singular = _("Volume Type")
31
39
    data_type_plural = _("Volume Types")
59
67
        table_actions = (project_tables.DeleteVolume, VolumesFilterAction)
60
68
        row_actions = (project_tables.DeleteVolume,)
61
69
        columns = ('tenant', 'host', 'name', 'size', 'status', 'volume_type',
62
 
                   'attachments', 'bootable')
 
70
                   'attachments', 'bootable', 'encryption',)
63
71
 
64
72
 
65
73
class VolumeTypesTable(tables.DataTable):
76
84
        name = "volume_types"
77
85
        verbose_name = _("Volume Types")
78
86
        table_actions = (CreateVolumeType, DeleteVolumeType,)
79
 
        row_actions = (DeleteVolumeType,)
 
87
        row_actions = (ViewVolumeTypeExtras, DeleteVolumeType,)