diff options
author | Arthur Zamarin <arthurzam@gentoo.org> | 2023-04-08 10:43:18 +0300 |
---|---|---|
committer | Arthur Zamarin <arthurzam@gentoo.org> | 2023-04-08 10:43:18 +0300 |
commit | a46fe499eaee019e46834f9c327e4a3602f05aa3 (patch) | |
tree | c0f2a894b66ee02061ffd0395b4c32960adc7517 /web | |
parent | updater: perform metadata updated on full update (diff) | |
download | soko-a46fe499eaee019e46834f9c327e4a3602f05aa3.tar.gz soko-a46fe499eaee019e46834f9c327e4a3602f05aa3.tar.bz2 soko-a46fe499eaee019e46834f9c327e4a3602f05aa3.zip |
app/packages: show deprecation warning
Closes: https://bugs.gentoo.org/903987
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'web')
-rw-r--r-- | web/templates/packages/components/overview.tmpl | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/web/templates/packages/components/overview.tmpl b/web/templates/packages/components/overview.tmpl index fe2ad3e..d0596f3 100644 --- a/web/templates/packages/components/overview.tmpl +++ b/web/templates/packages/components/overview.tmpl @@ -61,6 +61,37 @@ </li> </ul> </div> + {{ else if isDeprecated .Versions }} + + <h3 class="pt-3 mb-2">Deprecation Warning</h3> + + <div class="card bg-warning mb-3"> + <ul class="list-group list-group-flush bg-warning"> + <li class="list-group-item bg-warning"> + <strong class="kk-mask-reason">{{(getDeprecation .Versions).Reason}}</strong> + + <div class="kk-mask-details"> + + <div class="row"> + <div class="col-xs-12 col-md-3 kk-metadata-key"> + Affected packages + </div> + <div class="col-xs-12 col-md-9 kk-mask-atoms overflow-hidden"> + {{(getDeprecation .Versions).Versions}} + </div> + </div> + <div class="row"> + <div class="col-xs-12 col-md-3 kk-metadata-key"> + Author/Date + </div> + <div class="col-xs-12 col-md-9"> + {{(getDeprecation .Versions).Author}} <{{(getDeprecation .Versions).AuthorEmail}}> <span class="text-muted">({{(getDeprecation .Versions).Date.Format "2006-01-02"}})</span> + </div> + </div> + </div> + </li> + </ul> + </div> {{end}} {{ if not .Package.Maintainers }} |