summaryrefslogtreecommitdiff
path: root/lib/VNWeb/Releases
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2024-04-07 17:00:20 +0200
committerYorhel <git@yorhel.nl>2024-04-07 17:00:20 +0200
commit51f8af32911a2152006e98f2744f5fe91919be38 (patch)
tree54ca908ad1a84a57cc6bbdc094b1faa56301e554 /lib/VNWeb/Releases
parent91bdd03459cbc293b840da0012ef2a1dd1d3bf27 (diff)
Releases: Show MTL link for patches, clarify reason for hidingHEADmaster
Diffstat (limited to 'lib/VNWeb/Releases')
-rw-r--r--lib/VNWeb/Releases/Lib.pm2
-rw-r--r--lib/VNWeb/Releases/Page.pm4
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/VNWeb/Releases/Lib.pm b/lib/VNWeb/Releases/Lib.pm
index 644239a0..6688dedb 100644
--- a/lib/VNWeb/Releases/Lib.pm
+++ b/lib/VNWeb/Releases/Lib.pm
@@ -179,7 +179,7 @@ sub release_row_ {
elm_ 'UList.ReleaseEdit', $VNWeb::ULists::Elm::RLIST_STATUS, { rid => $r->{id}, uid => auth->uid, status => $r->{rlist_status}, empty => '--' } if auth;
};
td_ class => 'tc6', sub {
- release_extlinks_ $r, "$opt->{id}_$r->{id}" if $r->{official} || !grep $_->{mtl}, $r->{titles}->@*;
+ release_extlinks_ $r, "$opt->{id}_$r->{id}" if $r->{patch} || $r->{official} || !grep $_->{mtl}, $r->{titles}->@*;
};
}
}
diff --git a/lib/VNWeb/Releases/Page.pm b/lib/VNWeb/Releases/Page.pm
index 9a60008a..47bd6b63 100644
--- a/lib/VNWeb/Releases/Page.pm
+++ b/lib/VNWeb/Releases/Page.pm
@@ -268,10 +268,10 @@ sub _infotable_ {
tr_ sub {
td_ 'Links';
td_ sub {
- if ($r->{official} || !grep $_->{mtl}, $r->{titles}->@*) {
+ if ($r->{patch} || $r->{official} || !grep $_->{mtl}, $r->{titles}->@*) {
join_ ', ', sub { a_ href => $_->{url2}, $_->{label} }, $r->{extlinks}->@*;
} else {
- small_ 'hidden';
+ small_ 'piracy link hidden';
}
}
} if $r->{extlinks}->@*;