Skip to content

Commit ea820b2

Browse files
committed
More TEMP
1 parent ec78463 commit ea820b2

2 files changed

Lines changed: 19 additions & 6 deletions

File tree

src/Doctrine/Entity/Package.php

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -441,17 +441,18 @@ public function getActiveVersions(): array
441441
$activePrereleaseVersions = [];
442442

443443
foreach ($this->getSortedVersions() as $version) {
444+
if ('dev' === VersionParser::parseStability($version->getNormalizedVersion())) {
445+
continue;
446+
}
447+
448+
dump($version);
444449
[$majorVersion, $minorVersion] = explode('.', $version->getNormalizedVersion());
445450

446451
if ('7.3.0.0' === $version->getNormalizedVersion()) {
447452
// todo REMOVE break for testing
448453
continue;
449454
}
450455

451-
if ('stable' !== VersionParser::parseStability($version->getNormalizedVersion())) {
452-
continue;
453-
}
454-
455456
if ('0' === $majorVersion) {
456457
$prereleaseVersion = "$majorVersion.$minorVersion";
457458

@@ -474,6 +475,10 @@ public function getActiveVersions(): array
474475

475476
// Find newer unstable releases of active versions
476477
foreach ($this->getSortedVersions() as $version) {
478+
if ('dev' === VersionParser::parseStability($version->getNormalizedVersion())) {
479+
continue;
480+
}
481+
477482
[$majorVersion, $minorVersion] = explode('.', $version->getNormalizedVersion());
478483

479484
if (in_array(VersionParser::parseStability($version->getNormalizedVersion()), ['stable', 'dev'], true)) {

templates/dashboard/packages/package_info.html.twig

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,17 @@
2323

2424
<p class="lead">{{ version.description }}</p>
2525

26-
<p class="mb-0">Last updated at {{ package.updatedAt|date }}</p>
26+
{% if version.authors|length > 0 %}
27+
<div class="d-flex gap-3 mb-2">
28+
{% for author in version.authors %}
29+
{% set authorText %}<span class="fa-solid fa-user me-2" aria-hidden="true"></span>{{ author.name }}{% endset %}
30+
{% if author.homepage is defined %}<a href="{{ author.homepage }}">{{ authorText }}</a>{% else %}<span>{{ authorText }}</span>{% endif %}
31+
{% endfor %}
32+
</div>
33+
{% endif %}
2734
</div>
2835
<div class="col-md-4">
29-
<div class="dirigent-package-sidebar bg-body-secondary px-3 py-2 rounded">
36+
<div class="dirigent-package-sidebar bg-body-secondary px-3 py-2 mb-2 rounded">
3037
{% if package.browsableRepositoryUrl %}
3138
<div>
3239
<a href="{{ package.browsableRepositoryUrl }}">{{ package.prettyBrowsableRepositoryUrl }}</a>
@@ -68,6 +75,7 @@
6875
<div>No license specified</div>
6976
{% endif %}
7077
</div>
78+
<p class="px-3 mb-0"><small>Last updated at {{ package.updatedAt|date }}</small></p>
7179
</div>
7280
</div>
7381

0 commit comments

Comments
 (0)