require_once "index.php";
ob_start($res);
+$res->addHeader("Link", "<".dirname((new http\Env\Url)->path)."concise/css/concise.min.css>; rel=preload; as=style");
?>
<!doctype html>
.old-version, #new-toggle {
display: none;
}
+ .package-description {
+ white-space: pre-line;
+ }
</style>
</head>
<body>
</div>
<div class="container">
- <?php if (!empty($package)) : $versions = package_versions($package); ?>
+ <?php if (!empty($package)) : $versions = package_versions($package); $info = package_info($package); ?>
<h2><?= htmlspecialchars($package) ?></h2>
+ <?php if ($info) : ?>
+ <h3><?= htmlspecialchars($info["title"]) ?><br>
+ <small>License: <?= htmlspecialchars($info["license"]) ?></small></h3>
+ <p class="package-description"><?= htmlspecialchars($info["description"]) ?></p>
+ <?php endif; ?>
<table class="table table-full versions">
<thead>
<tr>