diff options
author | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2013-02-11 16:52:24 +0100 |
---|---|---|
committer | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2013-02-11 16:52:24 +0100 |
commit | da362f73cf417aa2eda9124d17c66850087ea0f6 (patch) | |
tree | be39a26515c5219ee038c1f21e22f88bc005e054 /app/views/tenants/_table_of_backup_jobs.html.haml | |
parent | 42ee5557a5ac11743b573b25eb8fdb60c8c13aa3 (diff) |
Backup GUI improvements.
Diffstat (limited to 'app/views/tenants/_table_of_backup_jobs.html.haml')
-rw-r--r-- | app/views/tenants/_table_of_backup_jobs.html.haml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/app/views/tenants/_table_of_backup_jobs.html.haml b/app/views/tenants/_table_of_backup_jobs.html.haml new file mode 100644 index 0000000..a585010 --- /dev/null +++ b/app/views/tenants/_table_of_backup_jobs.html.haml @@ -0,0 +1,11 @@ +-# BackupJobs +-# +- if (can?( :index, BackupJob ) && backup_jobs.count > 0 ) || can?( :create, BackupJob ) + - if backup_jobs.count == BackupJob.count + %h2= t('backup_jobs.index.page_title') + - else + %h2= t('backup_jobs.index.page_title_with_limit', :limit => '5') + + - if can?( :index, BackupJob ) && backup_jobs.count > 0 + = render "backup_jobs/index_core", :backup_jobs => backup_jobs + = render :partial => 'shared/create_link', :locals => {:child_class => BackupJob}
\ No newline at end of file |