File tree Expand file tree Collapse file tree
templates/dashboard/packages Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -503,6 +503,16 @@ public function setReleasedAt(?\DateTimeImmutable $releasedAt): void
503503 $ this ->releasedAt = $ releasedAt ;
504504 }
505505
506+ public function getSourceReference (): ?string
507+ {
508+ return $ this ->source ['reference ' ] ?? null ;
509+ }
510+
511+ public function getSourceType (): ?string
512+ {
513+ return $ this ->source ['type ' ] ?? null ;
514+ }
515+
506516 public function getSourceUrl (): ?string
507517 {
508518 return $ this ->source ['url ' ] ?? null ;
@@ -523,6 +533,11 @@ public function getDistUrl(): ?string
523533 return $ this ->dist ['url ' ] ?? null ;
524534 }
525535
536+ public function getReference (): ?string
537+ {
538+ return $ this ->source ['reference ' ] ?? $ this ->dist ['reference ' ] ?? null ;
539+ }
540+
526541 public function hasVersionAlias (): bool
527542 {
528543 return $ this ->isDevelopment () && $ this ->getVersionAlias ();
Original file line number Diff line number Diff line change 2626 {% endfor %}
2727 </div >
2828 {% endif %}
29+
30+ {% if version .reference %}
31+ <p >{{ ' Reference' | trans }}: <code >{{ version .reference }}</code ></p >
32+ {% endif %}
2933 </div >
3034 <div class =" col-md-4" >
3135 <div class =" dirigent-package-sidebar bg-body-secondary px-3 py-2 mb-2 rounded" >
Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ Implementations: Implementations
4848Installations : Installations
4949License : License
5050Providers : Providers
51+ Reference : Reference
5152Statistics : Statistics
5253Suggesters : Suggesters
5354
You can’t perform that action at this time.
0 commit comments