Added clickable web_url to the headline, Fixed missing headline in error template

This commit is contained in:
2021-08-13 12:01:05 +02:00
parent f5fc534195
commit f011755a63
8 changed files with 14 additions and 4 deletions

View File

@@ -72,6 +72,7 @@ $prefix = trim($prefix);
// Load page
$smarty->assign("headline", $headline);
$smarty->assign("web_url", $web_url);
$smarty->assign("subscribers", $subscribers);
$smarty->assign("list_name", $list_name);
$smarty->assign("domain", $domain);

View File

@@ -4,6 +4,9 @@ require("init.php");
$error_code = isset($_SESSION["error_code"]) ? $_SESSION["error_code"] : "";
unset($_SESSION["error_code"]);
$smarty->assign("headline", $headline);
$smarty->assign("web_url", $web_url);
$smarty->assign("error_code", $error_code);
$smarty->display("error.tpl");

View File

@@ -45,6 +45,7 @@ else
}
$smarty->assign("headline", $headline);
$smarty->assign("web_url", $web_url);
$smarty->assign("lists", $lists_new);
$smarty->assign("domain", $domain);
$smarty->assign("username", $_SESSION["username"]);

View File

@@ -72,6 +72,7 @@ else
{
// If no submission, display login form
$smarty->assign("headline", $headline);
$smarty->assign("web_url", $web_url);
$smarty->display("login.tpl");
}

View File

@@ -46,7 +46,7 @@
<body onload="switch_moderators_form()">
<div id="header">
<div id="header_left">
{$headline}
<a href="{$web_url}">{$headline}</a>
</div>
<div id="header_right">
<a href="logout.php">Logout ({$username})</a>

View File

@@ -3,7 +3,9 @@
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<div id="header">{$headline}</div>
<div id="header_left">
<a href="{$web_url}">{$headline}</a>
</div>
<div id="error">
{if $error_code == 1}
Domain can contain only english letters, dots, hyphens and digits.

View File

@@ -34,7 +34,7 @@
<body>
<div id="header">
<div id="header_left">
{$headline}
<a href="{$web_url}">{$headline}</a>
</div>
<div id="header_right">
<a href="logout.php">Logout ({$username})</a>

View File

@@ -27,7 +27,9 @@
</script>
</head>
<body>
<div id="header">{$headline}</div>
<div id="header_left">
<a href="{$web_url}">{$headline}</a>
</div>
<div id="login">
<div id="login_form">
<p>Please enter the credentials of your ECG account (<strong>without</strong> @ecogood.org).</p>