From 5eb3d15638e1daa949fcf147609f96b4f8922048 Mon Sep 17 00:00:00 2001 From: Benjamin ter Kuile Date: Sun, 15 Feb 2015 08:22:43 +0100 Subject: [PATCH] Fix specs --- .../supplier/app/templates/tables/index.emblem | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/app/assets/javascripts/supplier/app/templates/tables/index.emblem b/app/assets/javascripts/supplier/app/templates/tables/index.emblem index 13355ae5..37f3039c 100644 --- a/app/assets/javascripts/supplier/app/templates/tables/index.emblem +++ b/app/assets/javascripts/supplier/app/templates/tables/index.emblem @@ -21,7 +21,8 @@ a.table-edit{ action 'editTable' table }: span a.table-destroy{ action 'destroyTable' table }: span .form-actions - a.form-action-new{action "newTable"}= t 'table.new_button' - a.table-qr-codes{path qr_codes_suppliers_tables} target="_blank" - span.qr-icon - = t 'table.print_qr_codes' + a.form-action-new.new-table-button{action "newTable"}= t 'table.new_button' + if tables + a.table-qr-codes{path qr_codes_suppliers_tables} target="_blank" + span.qr-icon + = t 'table.print_qr_codes'