From 20415f00e1a19b1e0c080e5da2d25a7637dbdac5 Mon Sep 17 00:00:00 2001 From: dpliakos Date: Fri, 26 Oct 2018 05:56:48 +0300 Subject: [PATCH] Remove link from splash page edit subtitle, if splashpage is not created. --- app/views/admin/splashpages/show.html.haml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/app/views/admin/splashpages/show.html.haml b/app/views/admin/splashpages/show.html.haml index 1bb6a0aa..aedd4aff 100644 --- a/app/views/admin/splashpages/show.html.haml +++ b/app/views/admin/splashpages/show.html.haml @@ -3,9 +3,13 @@ .page-header %h1 Splashpage %p.text-muted - Build a - = link_to "splash page", conference_path(@conference.short_title) - with all the information for your conference + - if @splashpage + View the + = link_to "splash page", conference_path(@conference.short_title) + + - else + Build a splashpage with all the information for your conference + - if @splashpage .row .col-md-12