mirror of
https://github.com/YunoHost-Apps/ihatemoney_ynh.git
synced 2024-09-03 19:26:15 +02:00
Add patch for the buggy showcase
This commit is contained in:
parent
a1ab5d149b
commit
b85c58a6c4
3 changed files with 19 additions and 0 deletions
13
conf/ihatemoney_showcase.patch
Normal file
13
conf/ihatemoney_showcase.patch
Normal file
|
@ -0,0 +1,13 @@
|
|||
diff --git a/templates/showcase.html b/templates/showcase.html
|
||||
index cd9a371..77b50f0 100644
|
||||
--- a/templates/showcase.html
|
||||
+++ b/templates/showcase.html
|
||||
@@ -33,7 +33,7 @@
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
var pswpElement = document.getElementById('pswp');
|
||||
-var items = JSON.parse('[{"h": 2450, "src": "/static/showcase/1.jpg", "w": 2450}, {"h": 2509, "src": "/static/showcase/2.jpg", "w": 2221}, {"h": 2536, "src": "/static/showcase/3.jpg", "w": 2101}, {"h": 2722, "src": "/static/showcase/4.jpg", "w": 2348}, {"h": 2745, "src": "/static/showcase/5.jpg", "w": 1804}, {"h": 3307, "src": "/static/showcase/6.jpg", "w": 2897}, {"h": 2321, "src": "/static/showcase/7.jpg", "w": 2239}, {"h": 2470, "src": "/static/showcase/8.jpg", "w": 2419}, {"h": 3307, "src": "/static/showcase/9.jpg", "w": 2602}]');
|
||||
+var items = JSON.parse('[{"h": 2450, "src": "{{url_for("static", filename="showcase/1.jpg")}}", "w": 2450}, {"h": 2509, "src": "{{url_for("static", filename="showcase/2.jpg")}}", "w": 2221}, {"h": 2536, "src": "{{url_for("static", filename="showcase/3.jpg")}}", "w": 2101}, {"h": 2722, "src": "{{url_for("static", filename="showcase/4.jpg")}}", "w": 2348}, {"h": 2745, "src": "{{url_for("static", filename="showcase/5.jpg")}}", "w": 1804}, {"h": 3307, "src": "{{url_for("static", filename="showcase/6.jpg")}}", "w": 2897}, {"h": 2321, "src": "{{url_for("static", filename="showcase/7.jpg")}}", "w": 2239}, {"h": 2470, "src": "{{url_for("static", filename="showcase/8.jpg")}}", "w": 2419}, {"h": 3307, "src": "{{url_for("static", filename="showcase/9.jpg")}}", "w": 2602}]');
|
||||
var options = {
|
||||
index: 0,
|
||||
loop: false,
|
|
@ -114,6 +114,9 @@ sub_path_only="$(if [[ "$path_url" == "/" ]]; then echo '# ' ; else echo ''; fi)
|
|||
ynh_add_config --template ../conf/ihatemoney.cfg --destination "$final_path/ihatemoney.cfg"
|
||||
chmod 640 "$final_path/ihatemoney.cfg"
|
||||
|
||||
# Upstream issue : https://github.com/spiral-project/ihatemoney/issues/973
|
||||
src_dir=$("$final_path/venv/bin/python3" -c "import ihatemoney ; print(ihatemoney.__file__)")
|
||||
patch -p1 -d "$(dirname "$src_dir")" < "../conf/ihatemoney_showcase.patch"
|
||||
|
||||
# FIXME: this should be managed by the core in the future
|
||||
# Here, as a packager, you may have to tweak the ownerhsip/permissions
|
||||
|
|
|
@ -166,6 +166,9 @@ sub_path_only="$(if [[ "$path_url" == "/" ]]; then echo '# ' ; else echo ''; fi)
|
|||
ynh_add_config --template ../conf/ihatemoney.cfg --destination "$final_path/ihatemoney.cfg"
|
||||
chmod 600 "$final_path/ihatemoney.cfg"
|
||||
|
||||
# Upstream issue : https://github.com/spiral-project/ihatemoney/issues/973
|
||||
src_dir=$("$final_path/venv/bin/python3" -c "import ihatemoney ; print(ihatemoney.__file__)")
|
||||
patch -p1 -d "$(dirname "$src_dir")" < "../conf/ihatemoney_showcase.patch"
|
||||
|
||||
# FIXME: this should be managed by the core in the future
|
||||
# Here, as a packager, you may have to tweak the ownerhsip/permissions
|
||||
|
|
Loading…
Add table
Reference in a new issue