[odrs-web] Prefix static files with /static and divide them into sub-directories
- From: Andrea Veri <averi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [odrs-web] Prefix static files with /static and divide them into sub-directories
- Date: Thu, 28 Apr 2022 15:07:18 +0000 (UTC)
commit 53c306acf2c05eb3228366c193db54bdca66317b
Author: Andrea Veri <averi redhat com>
Date: Thu Apr 28 17:07:06 2022 +0200
Prefix static files with /static and divide them into sub-directories
odrs/static/{ => css}/style.css | 0
odrs/static/{ => img}/app-page.png | Bin
odrs/static/{ => img}/gnome-logo.svg | 0
odrs/static/{ => img}/review-submit.png | Bin
odrs/static/{ => js}/Chart.js | 0
odrs/templates/default.html | 4 ++--
odrs/templates/graph-month.html | 2 +-
odrs/templates/graph-year.html | 2 +-
odrs/templates/stats.html | 2 +-
9 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/odrs/static/style.css b/odrs/static/css/style.css
similarity index 100%
rename from odrs/static/style.css
rename to odrs/static/css/style.css
diff --git a/odrs/static/app-page.png b/odrs/static/img/app-page.png
similarity index 100%
rename from odrs/static/app-page.png
rename to odrs/static/img/app-page.png
diff --git a/odrs/static/gnome-logo.svg b/odrs/static/img/gnome-logo.svg
similarity index 100%
rename from odrs/static/gnome-logo.svg
rename to odrs/static/img/gnome-logo.svg
diff --git a/odrs/static/review-submit.png b/odrs/static/img/review-submit.png
similarity index 100%
rename from odrs/static/review-submit.png
rename to odrs/static/img/review-submit.png
diff --git a/odrs/static/Chart.js b/odrs/static/js/Chart.js
similarity index 100%
rename from odrs/static/Chart.js
rename to odrs/static/js/Chart.js
diff --git a/odrs/templates/default.html b/odrs/templates/default.html
index 13c14d0..6a8bf27 100644
--- a/odrs/templates/default.html
+++ b/odrs/templates/default.html
@@ -11,7 +11,7 @@
<meta content="GNOME: Open Desktop Review Server" name="application-name">
<link href="https://static.gnome.org/img/favicon.ico" rel="shortcut icon" />
<link href="https://static.gnome.org/css/deneb.min.css" media="all" rel="stylesheet" type="text/css">
- <link href="/style.css" rel="stylesheet" type="text/css" media="all" />
+ <link href="/static/css/style.css" rel="stylesheet" type="text/css" media="all" />
</head>
<body class="gnome-body">
@@ -26,7 +26,7 @@
<span class="icon-bar bottom-bar"></span>
</button>
<a href="/" class="gnome-navbar-brand" title="Go to home page">
- <img src="src/images/gnome-logo.svg" alt="GNOME: Open Desktop Review Server">
+ <img src="/static/img/gnome-logo.svg" alt="GNOME: Open Desktop Review Server">
</a>
</div>
<div class="navbar-collapse collapse" id="navbar-wrapper">
diff --git a/odrs/templates/graph-month.html b/odrs/templates/graph-month.html
index d80eb73..4fd8635 100644
--- a/odrs/templates/graph-month.html
+++ b/odrs/templates/graph-month.html
@@ -2,7 +2,7 @@
{% block title %}Review Activity (day){% endblock %}
{% block content %}
-<script src="Chart.js"></script>
+<script src="/static/js/Chart.js"></script>
<script>
Chart.defaults.global.animation = false;
</script>
diff --git a/odrs/templates/graph-year.html b/odrs/templates/graph-year.html
index a9f8935..0601af3 100644
--- a/odrs/templates/graph-year.html
+++ b/odrs/templates/graph-year.html
@@ -2,7 +2,7 @@
{% block title %}Review Activity (month){% endblock %}
{% block content %}
-<script src="Chart.js"></script>
+<script src="/static/js/Chart.js"></script>
<script>
Chart.defaults.global.animation = false;
</script>
diff --git a/odrs/templates/stats.html b/odrs/templates/stats.html
index 6b89bbc..d82da5b 100644
--- a/odrs/templates/stats.html
+++ b/odrs/templates/stats.html
@@ -2,7 +2,7 @@
{% block title %}Statistics{% endblock %}
{% block content %}
-<script src="Chart.js"></script>
+<script src="/static/js/Chart.js"></script>
<script>
Chart.defaults.global.animation = false;
</script>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]