projects
/
pharext
/
replicator.pharext.org
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
show package info
[pharext/replicator.pharext.org]
/
public
/
html.php
diff --git
a/public/html.php
b/public/html.php
index 13ed7be8e2a6fef63f8eadf5fed15c4ce023e6ea..ebda332ffcee3cfcb9d82d96f526b0d9d618e8fc 100644
(file)
--- a/
public/html.php
+++ b/
public/html.php
@@
-88,6
+88,9
@@
$res->addHeader("Link", "<".dirname((new http\Env\Url)->path)."concise/css/conci
.old-version, #new-toggle {
display: none;
}
.old-version, #new-toggle {
display: none;
}
+ .package-description {
+ white-space: pre-line;
+ }
</style>
</head>
<body>
</style>
</head>
<body>
@@
-102,9
+105,14
@@
$res->addHeader("Link", "<".dirname((new http\Env\Url)->path)."concise/css/conci
</div>
<div class="container">
</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>
<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>
<table class="table table-full versions">
<thead>
<tr>