Esempio n. 1
0
 def get_context_data(self, **kwargs):
     context = super(BackupDetailView, self).get_context_data(**kwargs)
     backup = self.get_data()
     table = backup_tables.BackupsTable(self.request)
     context["backup"] = backup
     context["url"] = self.get_redirect_url()
     context["actions"] = table.render_row_actions(backup)
     return context
Esempio n. 2
0
    def get_context_data(self, **kwargs):
        context = super(BackupDetailView, self).get_context_data(**kwargs)
        backup = self.get_data()
        table = backup_tables.BackupsTable(self.request)
        context["backup"] = backup
        context["url"] = self.get_redirect_url()
        context["actions"] = table.render_row_actions(backup)
        context["page_title"] = _("Volume Backup Details: "
                                  "%(backup_name)s") % {'backup_name':
                                                        backup.name}

        return context