~ubuntu-branches/ubuntu/vivid/horizon/vivid-proposed

« back to all changes in this revision

Viewing changes to openstack_dashboard/dashboards/router/nexus1000v/tables.py

  • Committer: Package Import Robot
  • Author(s): James Page, Chris Johnston, James Page
  • Date: 2014-10-03 17:54:18 UTC
  • mfrom: (0.3.1) (1.2.2)
  • Revision ID: package-import@ubuntu.com-20141003175418-wuk513xcytndqft7
Tags: 1:2014.2~rc1-0ubuntu1
[ Chris Johnston ]
* d/theme/css/ubuntu.css: Fix Ubuntu theme for Instances "more" dropdown
  (LP: #1308651).

[ James Page ]
* New upstream release candidate:
  - d/p/*: Refresh.
* d/watch: Use tarballs.openstack.org for upstream releases. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 
18
18
from django.core.urlresolvers import reverse
19
19
from django.utils.translation import ugettext_lazy as _
 
20
from django.utils.translation import ungettext_lazy
20
21
 
21
22
from horizon import exceptions
22
23
from horizon import tables
35
36
 
36
37
 
37
38
class DeleteNetworkProfile(tables.DeleteAction):
38
 
    data_type_singular = _("Network Profile")
39
 
    data_type_plural = _("Network Profiles")
 
39
    @staticmethod
 
40
    def action_present(count):
 
41
        return ungettext_lazy(
 
42
            u"Delete Network Profile",
 
43
            u"Delete Network Profiles",
 
44
            count
 
45
        )
 
46
 
 
47
    @staticmethod
 
48
    def action_past(count):
 
49
        return ungettext_lazy(
 
50
            u"Deleted Network Profile",
 
51
            u"Deleted Network Profiles",
 
52
            count
 
53
        )
40
54
 
41
55
    def delete(self, request, obj_id):
42
56
        try: