File: system-bootstrap.patch

package info (click to toggle)
finalcif 154%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 53,284 kB
  • sloc: fortran: 148,126; python: 50,133; cpp: 67; sh: 51; makefile: 22
file content (25 lines) | stat: -rw-r--r-- 1,184 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From: Andrius Merkys <merkys@debian.org>
Date: Wed, 27 Aug 2025 14:24:28 +0200
Subject: Use system-provided bootstrap, as the embedded file is excluded.

Forwarded: not-needed
---
 finalcif/report/templated_report.py | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/finalcif/report/templated_report.py b/finalcif/report/templated_report.py
index abb5de0..47101b3 100644
--- a/finalcif/report/templated_report.py
+++ b/finalcif/report/templated_report.py
@@ -1306,9 +1306,8 @@ class TemplatedReport:
                    'references'             : self.references,
                    'experiment_table'       : self.text_formatter.format_experiment_table(cif),
                    'experiment_time'        : self.text_formatter.get_experiment_time(cif),
-                   'bootstrap_css'          : (app_path.application_path /
-                                               'template/bootstrap/bootstrap.min.css').read_text(encoding='utf-8'),
-
+                   'bootstrap_css'          : Path('/usr/share/javascript/bootstrap5/css/bootstrap.min.css').read_text(
+                       encoding='utf-8'),
                    }
         return context