Skip to content

Commit e360958

Browse files
committed
show different text, when no history cookie was found
1 parent 1ffb5e5 commit e360958

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

src/main/resources/migration_redirect.php

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,19 +72,28 @@
7272
<div class="frame">
7373
<div class="content">
7474
<h1>This webCAT instance moved!</h1>
75+
7576
<p class="explain">
76-
This <a href="http://sems.uni-rostock.de/cat" target="_blank">webCAT</a> instance move to a new domain. To ensure you can still access your pressures workspaces and archives
77+
This <a href="http://sems.uni-rostock.de/cat" target="_blank">webCAT</a> instance move to a new domain.
78+
<?php if( $success ) { ?>
79+
To ensure you can still access your pressures workspaces and archives
7780
you can migrate the history cookie, which contains all the workspace ids. To do so please click on the button down below.
81+
<?php } else { ?>
82+
It does not seem, that you do not had any workspaces stored at this place. So you can just click at the button below to
83+
access webCAT at the new domain.
84+
<?php } ?>
7885
</p>
7986
<p class="button">
80-
<a class="button" href="<?php echo($redirect_url); ?>">Migrate Workspaces</a>
87+
<a class="button" href="<?php echo($redirect_url); ?>"><?php echo($success ? "Migrate Workspaces" : "Go to new Instance"); ?></a>
8188
</p>
89+
<?php if($success) { ?>
8290
<p class="ws-list">
8391
Following workspaces were found:
8492
<ul>
8593
<?php foreach( $result as $entry ) { ?><li><code><?php echo($entry); ?></code></li><?php } ?>
8694
</ul>
8795
</p>
96+
<?php } ?>
8897
</div>
8998
</div>
9099
</body>

0 commit comments

Comments
 (0)