Skip to content
Snippets Groups Projects
Commit 0ba34c09 authored by Tomáš's avatar Tomáš
Browse files

add links, base

parent d2f0a2c1
No related branches found
No related tags found
1 merge request!1Test release
Pipeline #11226 passed
......@@ -3,7 +3,7 @@
PYTHON = python
VENV = .venv
PORT = 8012
SETTINGS = rybicka.settings.prod
SETTINGS = rybicka.settings.dev
.PHONY: help venv install build run shell migrations migrate
......
......@@ -47,6 +47,7 @@ INSTALLED_APPS = [
"shared",
"member_group_size_calc",
"rv_voting_calc",
]
MIDDLEWARE = [
......
......@@ -17,5 +17,6 @@ from django.urls import include, path
urlpatterns = [
path("vypocet-skupiny-clenu", include("member_group_size_calc.urls")),
path("hlasovani-rv", include("rv_voting_calc.urls")),
path("", include("shared.urls")),
]
shared/static/shared/voting.webp

262 KiB

......@@ -39,6 +39,7 @@
<link rel="shortcut icon" type="image/png" href="https://www.pirati.cz/static/shared/favicon/favicon-32.png" sizes="32x32">
<link rel="shortcut icon" type="image/png" href="https://www.pirati.cz/static/shared/favicon/favicon-16.png" sizes="16x16">
{% render_bundle "shared" %}
{% render_bundle "base" %}
{% block head %}{% endblock %}
......
......@@ -34,6 +34,25 @@
</div>
</div>
</li>
<li class="card">
<a href="{% url "rv_voting_calc:index" %}">
<img
src="{% static "shared/voting.webp" %}"
alt="Kalkulačka velikosti skupiny členů"
class="w-full h-48 object-cover"
>
</a>
<div class="p-4">
<h2 class="mb-2 text-xl font-bold">
<a href="{% url "rv_voting_calc:index" %}">
Kalkulačka hlasování RV
</a>
</h2>
<div class="font-light text-sm break-words">
Výpočet velikosti skupiny členů podle jednacího řádu.
</div>
</div>
</li>
<li class="card">
<a href="https://z.pirati.cz" target="_blank">
<img
......
......@@ -5,8 +5,19 @@ module.exports = {
mode: "production",
context: __dirname,
entry: {
base: path.resolve("static_src", "base.js"),
member_group_size_calc: path.resolve("static_src", "member_group_size_calc.js"),
base: {
import: path.resolve("static_src", "base.js"),
dependOn: "shared",
},
member_group_size_calc: {
import: path.resolve("static_src", "member_group_size_calc.js"),
dependOn: "shared",
},
rv_voting_calc: {
import: path.resolve("static_src", "rv_voting_calc.js"),
dependOn: "shared",
},
shared: ["jquery"],
},
output: {
path: path.resolve(__dirname, "shared", "static", "shared"),
......@@ -20,6 +31,9 @@ module.exports = {
},
],
},
optimization: {
runtimeChunk: "single",
},
plugins: [
new BundleTracker({filename: './webpack-stats.json'})
],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment