summaryrefslogtreecommitdiff
path: root/app/views/tenants/_table_of_backup_jobs.html.haml
diff options
context:
space:
mode:
authorspag <spag@golwen.net>2013-02-12 08:19:10 +0100
committerspag <spag@golwen.net>2013-02-12 08:19:10 +0100
commit8e55bf891a0520ba241585d8295ccc37ed57b09e (patch)
treedf823d812586612de3a285e22a4cca52170a9b60 /app/views/tenants/_table_of_backup_jobs.html.haml
parentd1145ad9d4f495d7416ed97e0dd3c17365990323 (diff)
parent3d817bef265f70b147455db4b0fb5e1ca3c0d379 (diff)
Merge branch 'develop' of github.com:amooma/GS5 into develop
Diffstat (limited to 'app/views/tenants/_table_of_backup_jobs.html.haml')
-rw-r--r--app/views/tenants/_table_of_backup_jobs.html.haml11
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