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

« back to all changes in this revision

Viewing changes to openstack_dashboard/dashboards/project/database_backups/tables.py

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2014-03-06 16:53:28 UTC
  • mfrom: (1.1.37)
  • Revision ID: package-import@ubuntu.com-20140306165328-w2vgmtfriqlhp27m
Tags: 1:2014.1~b3-0ubuntu1
* New upstream milestone release.
* d/static/*: Refreshed assets for new upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
    url = "horizon:project:databases:launch"
48
48
    classes = ("btn-launch", "ajax-modal")
49
49
 
 
50
    def allowed(self, request, backup=None):
 
51
        return backup.status == 'COMPLETED'
 
52
 
50
53
    def get_link_url(self, datum):
51
54
        url = reverse(self.url)
52
55
        return url + '?backup=%s' % datum.id