Skip to content

Commit

Permalink
fix: Info needs status.js
Browse files Browse the repository at this point in the history
  • Loading branch information
YDX-2147483647 committed Aug 9, 2023
1 parent 8b48f98 commit c1eacdc
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion contest/js/static_src/rollup.config.dev.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import commonjs from '@rollup/plugin-commonjs'

export default {
input: {
index: './src/index.js',
status: './src/status.js',
contest: './src/contest.js',
toggle_mobile_menu: './src/toggle_mobile_menu.js',
},
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion contest/quiz/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{% load my_humanize %}
{% load static %}
{% block scripts %}
<script type='module' src="{% static 'js/dist/index.js' %}"></script>
<script type='module' src="{% static 'js/dist/status.js' %}"></script>
{{ status | json_script:"data:status" }}
{% endblock scripts %}
{% block header %}
Expand Down
4 changes: 4 additions & 0 deletions contest/quiz/templates/info.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
{% extends "base.html" %}
{% load my_humanize humanize %}
{% load static %}
{% block scripts %}
<script type='module' src="{% static 'js/dist/status.js' %}"></script>
{{ status | json_script:"data:status" }}
{% endblock scripts %}
{% block content %}
{% if user.is_authenticated %}
<div class="prose">
Expand Down

0 comments on commit c1eacdc

Please sign in to comment.