Reformat
This commit is contained in:
parent
af17ca9665
commit
ae3f1090bf
21 changed files with 887 additions and 238 deletions
|
@ -11,3 +11,7 @@ repos:
|
||||||
rev: 22.12.0
|
rev: 22.12.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: black
|
- id: black
|
||||||
|
- repo: https://github.com/hadialqattan/pycln
|
||||||
|
rev: 'v2.3.0'
|
||||||
|
hooks:
|
||||||
|
- id: pycln
|
||||||
|
|
|
@ -29,7 +29,6 @@ from django.utils import timezone
|
||||||
from django.contrib.auth.decorators import login_required
|
from django.contrib.auth.decorators import login_required
|
||||||
from django.urls import reverse
|
from django.urls import reverse
|
||||||
|
|
||||||
import datetime
|
|
||||||
|
|
||||||
from judge import event_poster as event
|
from judge import event_poster as event
|
||||||
from judge.jinja2.gravatar import gravatar
|
from judge.jinja2.gravatar import gravatar
|
||||||
|
@ -38,8 +37,6 @@ from judge.models import Friend
|
||||||
from chat_box.models import Message, Profile, Room, UserRoom, Ignore
|
from chat_box.models import Message, Profile, Room, UserRoom, Ignore
|
||||||
from chat_box.utils import encrypt_url, decrypt_url, encrypt_channel, get_unread_boxes
|
from chat_box.utils import encrypt_url, decrypt_url, encrypt_channel, get_unread_boxes
|
||||||
|
|
||||||
import json
|
|
||||||
|
|
||||||
|
|
||||||
class ChatView(ListView):
|
class ChatView(ListView):
|
||||||
context_object_name = "message"
|
context_object_name = "message"
|
||||||
|
|
|
@ -9,7 +9,6 @@ https://docs.djangoproject.com/en/1.11/ref/settings/
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
|
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
|
||||||
import datetime
|
|
||||||
import os
|
import os
|
||||||
import tempfile
|
import tempfile
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,6 @@ import json
|
||||||
import logging
|
import logging
|
||||||
import threading
|
import threading
|
||||||
import time
|
import time
|
||||||
import os
|
|
||||||
from collections import deque, namedtuple
|
from collections import deque, namedtuple
|
||||||
from operator import itemgetter
|
from operator import itemgetter
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
from django.core.management.base import BaseCommand
|
from django.core.management.base import BaseCommand
|
||||||
from judge.models import *
|
from judge.models import *
|
||||||
from collections import defaultdict
|
|
||||||
import csv
|
import csv
|
||||||
import os
|
import os
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -2,7 +2,6 @@ import numpy as np
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
import os
|
import os
|
||||||
from django.core.cache import cache
|
from django.core.cache import cache
|
||||||
import hashlib
|
|
||||||
|
|
||||||
from judge.caching import cache_wrapper
|
from judge.caching import cache_wrapper
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
import errno
|
import errno
|
||||||
from operator import attrgetter
|
from operator import attrgetter
|
||||||
from math import sqrt
|
|
||||||
|
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
from django.contrib.contenttypes.fields import GenericRelation
|
from django.contrib.contenttypes.fields import GenericRelation
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import csv
|
import csv
|
||||||
from tempfile import mktemp
|
|
||||||
import re
|
import re
|
||||||
|
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
|
|
|
@ -5,7 +5,6 @@ from django import forms
|
||||||
from django.forms import ClearableFileInput
|
from django.forms import ClearableFileInput
|
||||||
|
|
||||||
import os, os.path
|
import os, os.path
|
||||||
import tempfile
|
|
||||||
import shutil
|
import shutil
|
||||||
|
|
||||||
__all__ = ("handle_upload", "save_upload", "FineUploadForm", "FineUploadFileInput")
|
__all__ = ("handle_upload", "save_upload", "FineUploadForm", "FineUploadFileInput")
|
||||||
|
|
|
@ -2,7 +2,6 @@ import hashlib
|
||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
import shutil
|
|
||||||
import yaml
|
import yaml
|
||||||
import zipfile
|
import zipfile
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
from collections import defaultdict
|
from collections import defaultdict
|
||||||
from math import e
|
from math import e
|
||||||
import os, zipfile
|
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
import random
|
import random
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
import json
|
import json
|
||||||
import os.path
|
import os.path
|
||||||
import zipfile
|
|
||||||
from operator import attrgetter
|
from operator import attrgetter
|
||||||
|
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
|
|
|
@ -25,17 +25,17 @@ div.dmmd-preview-has-content div.dmmd-preview-content {
|
||||||
}
|
}
|
||||||
|
|
||||||
div.dmmd-no-button div.dmmd-preview-update {
|
div.dmmd-no-button div.dmmd-preview-update {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
div.dmmd-no-button div.dmmd-preview-content {
|
div.dmmd-no-button div.dmmd-preview-content {
|
||||||
padding-bottom: 0;
|
padding-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
div.dmmd-no-button:not(.dmmd-preview-has-content) {
|
div.dmmd-no-button:not(.dmmd-preview-has-content) {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
div.dmmd-preview-stale {
|
div.dmmd-preview-stale {
|
||||||
background: repeating-linear-gradient(-45deg, #fff, #fff 10px, #f8f8f8 10px, #f8f8f8 20px);
|
background: repeating-linear-gradient(-45deg, #fff, #fff 10px, #f8f8f8 10px, #f8f8f8 20px);
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,59 +4,59 @@
|
||||||
if you are not yet familiar with Fine Uploader UI.
|
if you are not yet familiar with Fine Uploader UI.
|
||||||
-->
|
-->
|
||||||
<script type="text/template" id="qq-template">
|
<script type="text/template" id="qq-template">
|
||||||
<div class="qq-uploader-selector qq-uploader" qq-drop-area-text="Drop files here">
|
<div class="qq-uploader-selector qq-uploader" qq-drop-area-text="Drop files here">
|
||||||
<div class="qq-total-progress-bar-container-selector qq-total-progress-bar-container">
|
<div class="qq-total-progress-bar-container-selector qq-total-progress-bar-container">
|
||||||
<div role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" class="qq-total-progress-bar-selector qq-progress-bar qq-total-progress-bar"></div>
|
<div role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" class="qq-total-progress-bar-selector qq-progress-bar qq-total-progress-bar"></div>
|
||||||
</div>
|
|
||||||
<div class="qq-upload-drop-area-selector qq-upload-drop-area" qq-hide-dropzone>
|
|
||||||
<span class="qq-upload-drop-area-text-selector"></span>
|
|
||||||
</div>
|
|
||||||
<div class="qq-upload-button-selector qq-upload-button">
|
|
||||||
<div>Upload a file</div>
|
|
||||||
</div>
|
|
||||||
<span class="qq-drop-processing-selector qq-drop-processing">
|
|
||||||
<span>Processing dropped files...</span>
|
|
||||||
<span class="qq-drop-processing-spinner-selector qq-drop-processing-spinner"></span>
|
|
||||||
</span>
|
|
||||||
<ul class="qq-upload-list-selector qq-upload-list" aria-live="polite" aria-relevant="additions removals">
|
|
||||||
<li>
|
|
||||||
<div class="qq-progress-bar-container-selector">
|
|
||||||
<div role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" class="qq-progress-bar-selector qq-progress-bar"></div>
|
|
||||||
</div>
|
|
||||||
<span class="qq-upload-spinner-selector qq-upload-spinner"></span>
|
|
||||||
<span class="qq-upload-file-selector qq-upload-file"></span>
|
|
||||||
<span class="qq-edit-filename-icon-selector qq-edit-filename-icon" aria-label="Edit filename"></span>
|
|
||||||
<input class="qq-edit-filename-selector qq-edit-filename" tabindex="0" type="text">
|
|
||||||
<span class="qq-upload-size-selector qq-upload-size"></span>
|
|
||||||
<button type="button" class="qq-btn qq-upload-cancel-selector qq-upload-cancel">Cancel</button>
|
|
||||||
<button type="button" class="qq-btn qq-upload-retry-selector qq-upload-retry">Retry</button>
|
|
||||||
<button type="button" class="qq-btn qq-upload-delete-selector qq-upload-delete">Delete</button>
|
|
||||||
<span role="status" class="qq-upload-status-text-selector qq-upload-status-text"></span>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
<dialog class="qq-alert-dialog-selector">
|
|
||||||
<div class="qq-dialog-message-selector"></div>
|
|
||||||
<div class="qq-dialog-buttons">
|
|
||||||
<button type="button" class="qq-cancel-button-selector">Close</button>
|
|
||||||
</div>
|
|
||||||
</dialog>
|
|
||||||
|
|
||||||
<dialog class="qq-confirm-dialog-selector">
|
|
||||||
<div class="qq-dialog-message-selector"></div>
|
|
||||||
<div class="qq-dialog-buttons">
|
|
||||||
<button type="button" class="qq-cancel-button-selector">No</button>
|
|
||||||
<button type="button" class="qq-ok-button-selector">Yes</button>
|
|
||||||
</div>
|
|
||||||
</dialog>
|
|
||||||
|
|
||||||
<dialog class="qq-prompt-dialog-selector">
|
|
||||||
<div class="qq-dialog-message-selector"></div>
|
|
||||||
<input type="text">
|
|
||||||
<div class="qq-dialog-buttons">
|
|
||||||
<button type="button" class="qq-cancel-button-selector">Cancel</button>
|
|
||||||
<button type="button" class="qq-ok-button-selector">Ok</button>
|
|
||||||
</div>
|
|
||||||
</dialog>
|
|
||||||
</div>
|
</div>
|
||||||
|
<div class="qq-upload-drop-area-selector qq-upload-drop-area" qq-hide-dropzone>
|
||||||
|
<span class="qq-upload-drop-area-text-selector"></span>
|
||||||
|
</div>
|
||||||
|
<div class="qq-upload-button-selector qq-upload-button">
|
||||||
|
<div>Upload a file</div>
|
||||||
|
</div>
|
||||||
|
<span class="qq-drop-processing-selector qq-drop-processing">
|
||||||
|
<span>Processing dropped files...</span>
|
||||||
|
<span class="qq-drop-processing-spinner-selector qq-drop-processing-spinner"></span>
|
||||||
|
</span>
|
||||||
|
<ul class="qq-upload-list-selector qq-upload-list" aria-live="polite" aria-relevant="additions removals">
|
||||||
|
<li>
|
||||||
|
<div class="qq-progress-bar-container-selector">
|
||||||
|
<div role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" class="qq-progress-bar-selector qq-progress-bar"></div>
|
||||||
|
</div>
|
||||||
|
<span class="qq-upload-spinner-selector qq-upload-spinner"></span>
|
||||||
|
<span class="qq-upload-file-selector qq-upload-file"></span>
|
||||||
|
<span class="qq-edit-filename-icon-selector qq-edit-filename-icon" aria-label="Edit filename"></span>
|
||||||
|
<input class="qq-edit-filename-selector qq-edit-filename" tabindex="0" type="text">
|
||||||
|
<span class="qq-upload-size-selector qq-upload-size"></span>
|
||||||
|
<button type="button" class="qq-btn qq-upload-cancel-selector qq-upload-cancel">Cancel</button>
|
||||||
|
<button type="button" class="qq-btn qq-upload-retry-selector qq-upload-retry">Retry</button>
|
||||||
|
<button type="button" class="qq-btn qq-upload-delete-selector qq-upload-delete">Delete</button>
|
||||||
|
<span role="status" class="qq-upload-status-text-selector qq-upload-status-text"></span>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<dialog class="qq-alert-dialog-selector">
|
||||||
|
<div class="qq-dialog-message-selector"></div>
|
||||||
|
<div class="qq-dialog-buttons">
|
||||||
|
<button type="button" class="qq-cancel-button-selector">Close</button>
|
||||||
|
</div>
|
||||||
|
</dialog>
|
||||||
|
|
||||||
|
<dialog class="qq-confirm-dialog-selector">
|
||||||
|
<div class="qq-dialog-message-selector"></div>
|
||||||
|
<div class="qq-dialog-buttons">
|
||||||
|
<button type="button" class="qq-cancel-button-selector">No</button>
|
||||||
|
<button type="button" class="qq-ok-button-selector">Yes</button>
|
||||||
|
</div>
|
||||||
|
</dialog>
|
||||||
|
|
||||||
|
<dialog class="qq-prompt-dialog-selector">
|
||||||
|
<div class="qq-dialog-message-selector"></div>
|
||||||
|
<input type="text">
|
||||||
|
<div class="qq-dialog-buttons">
|
||||||
|
<button type="button" class="qq-cancel-button-selector">Cancel</button>
|
||||||
|
<button type="button" class="qq-ok-button-selector">Ok</button>
|
||||||
|
</div>
|
||||||
|
</dialog>
|
||||||
|
</div>
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -5,78 +5,78 @@
|
||||||
on how to customize this template.
|
on how to customize this template.
|
||||||
-->
|
-->
|
||||||
<script type="text/template" id="qq-template">
|
<script type="text/template" id="qq-template">
|
||||||
<div class="qq-uploader-selector qq-uploader qq-gallery" qq-drop-area-text="Drop files here">
|
<div class="qq-uploader-selector qq-uploader qq-gallery" qq-drop-area-text="Drop files here">
|
||||||
<div class="qq-total-progress-bar-container-selector qq-total-progress-bar-container">
|
<div class="qq-total-progress-bar-container-selector qq-total-progress-bar-container">
|
||||||
<div role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" class="qq-total-progress-bar-selector qq-progress-bar qq-total-progress-bar"></div>
|
<div role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" class="qq-total-progress-bar-selector qq-progress-bar qq-total-progress-bar"></div>
|
||||||
</div>
|
|
||||||
<div class="qq-upload-drop-area-selector qq-upload-drop-area" qq-hide-dropzone>
|
|
||||||
<span class="qq-upload-drop-area-text-selector"></span>
|
|
||||||
</div>
|
|
||||||
<div class="qq-upload-button-selector qq-upload-button">
|
|
||||||
<div>Upload a file</div>
|
|
||||||
</div>
|
|
||||||
<span class="qq-drop-processing-selector qq-drop-processing">
|
|
||||||
<span>Processing dropped files...</span>
|
|
||||||
<span class="qq-drop-processing-spinner-selector qq-drop-processing-spinner"></span>
|
|
||||||
</span>
|
|
||||||
<ul class="qq-upload-list-selector qq-upload-list" role="region" aria-live="polite" aria-relevant="additions removals">
|
|
||||||
<li>
|
|
||||||
<span role="status" class="qq-upload-status-text-selector qq-upload-status-text"></span>
|
|
||||||
<div class="qq-progress-bar-container-selector qq-progress-bar-container">
|
|
||||||
<div role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" class="qq-progress-bar-selector qq-progress-bar"></div>
|
|
||||||
</div>
|
|
||||||
<span class="qq-upload-spinner-selector qq-upload-spinner"></span>
|
|
||||||
<div class="qq-thumbnail-wrapper">
|
|
||||||
<img class="qq-thumbnail-selector" qq-max-size="120" qq-server-scale>
|
|
||||||
</div>
|
|
||||||
<button type="button" class="qq-upload-cancel-selector qq-upload-cancel">X</button>
|
|
||||||
<button type="button" class="qq-upload-retry-selector qq-upload-retry">
|
|
||||||
<span class="qq-btn qq-retry-icon" aria-label="Retry"></span>
|
|
||||||
Retry
|
|
||||||
</button>
|
|
||||||
|
|
||||||
<div class="qq-file-info">
|
|
||||||
<div class="qq-file-name">
|
|
||||||
<span class="qq-upload-file-selector qq-upload-file"></span>
|
|
||||||
<span class="qq-edit-filename-icon-selector qq-btn qq-edit-filename-icon" aria-label="Edit filename"></span>
|
|
||||||
</div>
|
|
||||||
<input class="qq-edit-filename-selector qq-edit-filename" tabindex="0" type="text">
|
|
||||||
<span class="qq-upload-size-selector qq-upload-size"></span>
|
|
||||||
<button type="button" class="qq-btn qq-upload-delete-selector qq-upload-delete">
|
|
||||||
<span class="qq-btn qq-delete-icon" aria-label="Delete"></span>
|
|
||||||
</button>
|
|
||||||
<button type="button" class="qq-btn qq-upload-pause-selector qq-upload-pause">
|
|
||||||
<span class="qq-btn qq-pause-icon" aria-label="Pause"></span>
|
|
||||||
</button>
|
|
||||||
<button type="button" class="qq-btn qq-upload-continue-selector qq-upload-continue">
|
|
||||||
<span class="qq-btn qq-continue-icon" aria-label="Continue"></span>
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
<dialog class="qq-alert-dialog-selector">
|
|
||||||
<div class="qq-dialog-message-selector"></div>
|
|
||||||
<div class="qq-dialog-buttons">
|
|
||||||
<button type="button" class="qq-cancel-button-selector">Close</button>
|
|
||||||
</div>
|
|
||||||
</dialog>
|
|
||||||
|
|
||||||
<dialog class="qq-confirm-dialog-selector">
|
|
||||||
<div class="qq-dialog-message-selector"></div>
|
|
||||||
<div class="qq-dialog-buttons">
|
|
||||||
<button type="button" class="qq-cancel-button-selector">No</button>
|
|
||||||
<button type="button" class="qq-ok-button-selector">Yes</button>
|
|
||||||
</div>
|
|
||||||
</dialog>
|
|
||||||
|
|
||||||
<dialog class="qq-prompt-dialog-selector">
|
|
||||||
<div class="qq-dialog-message-selector"></div>
|
|
||||||
<input type="text">
|
|
||||||
<div class="qq-dialog-buttons">
|
|
||||||
<button type="button" class="qq-cancel-button-selector">Cancel</button>
|
|
||||||
<button type="button" class="qq-ok-button-selector">Ok</button>
|
|
||||||
</div>
|
|
||||||
</dialog>
|
|
||||||
</div>
|
</div>
|
||||||
|
<div class="qq-upload-drop-area-selector qq-upload-drop-area" qq-hide-dropzone>
|
||||||
|
<span class="qq-upload-drop-area-text-selector"></span>
|
||||||
|
</div>
|
||||||
|
<div class="qq-upload-button-selector qq-upload-button">
|
||||||
|
<div>Upload a file</div>
|
||||||
|
</div>
|
||||||
|
<span class="qq-drop-processing-selector qq-drop-processing">
|
||||||
|
<span>Processing dropped files...</span>
|
||||||
|
<span class="qq-drop-processing-spinner-selector qq-drop-processing-spinner"></span>
|
||||||
|
</span>
|
||||||
|
<ul class="qq-upload-list-selector qq-upload-list" role="region" aria-live="polite" aria-relevant="additions removals">
|
||||||
|
<li>
|
||||||
|
<span role="status" class="qq-upload-status-text-selector qq-upload-status-text"></span>
|
||||||
|
<div class="qq-progress-bar-container-selector qq-progress-bar-container">
|
||||||
|
<div role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" class="qq-progress-bar-selector qq-progress-bar"></div>
|
||||||
|
</div>
|
||||||
|
<span class="qq-upload-spinner-selector qq-upload-spinner"></span>
|
||||||
|
<div class="qq-thumbnail-wrapper">
|
||||||
|
<img class="qq-thumbnail-selector" qq-max-size="120" qq-server-scale>
|
||||||
|
</div>
|
||||||
|
<button type="button" class="qq-upload-cancel-selector qq-upload-cancel">X</button>
|
||||||
|
<button type="button" class="qq-upload-retry-selector qq-upload-retry">
|
||||||
|
<span class="qq-btn qq-retry-icon" aria-label="Retry"></span>
|
||||||
|
Retry
|
||||||
|
</button>
|
||||||
|
|
||||||
|
<div class="qq-file-info">
|
||||||
|
<div class="qq-file-name">
|
||||||
|
<span class="qq-upload-file-selector qq-upload-file"></span>
|
||||||
|
<span class="qq-edit-filename-icon-selector qq-btn qq-edit-filename-icon" aria-label="Edit filename"></span>
|
||||||
|
</div>
|
||||||
|
<input class="qq-edit-filename-selector qq-edit-filename" tabindex="0" type="text">
|
||||||
|
<span class="qq-upload-size-selector qq-upload-size"></span>
|
||||||
|
<button type="button" class="qq-btn qq-upload-delete-selector qq-upload-delete">
|
||||||
|
<span class="qq-btn qq-delete-icon" aria-label="Delete"></span>
|
||||||
|
</button>
|
||||||
|
<button type="button" class="qq-btn qq-upload-pause-selector qq-upload-pause">
|
||||||
|
<span class="qq-btn qq-pause-icon" aria-label="Pause"></span>
|
||||||
|
</button>
|
||||||
|
<button type="button" class="qq-btn qq-upload-continue-selector qq-upload-continue">
|
||||||
|
<span class="qq-btn qq-continue-icon" aria-label="Continue"></span>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<dialog class="qq-alert-dialog-selector">
|
||||||
|
<div class="qq-dialog-message-selector"></div>
|
||||||
|
<div class="qq-dialog-buttons">
|
||||||
|
<button type="button" class="qq-cancel-button-selector">Close</button>
|
||||||
|
</div>
|
||||||
|
</dialog>
|
||||||
|
|
||||||
|
<dialog class="qq-confirm-dialog-selector">
|
||||||
|
<div class="qq-dialog-message-selector"></div>
|
||||||
|
<div class="qq-dialog-buttons">
|
||||||
|
<button type="button" class="qq-cancel-button-selector">No</button>
|
||||||
|
<button type="button" class="qq-ok-button-selector">Yes</button>
|
||||||
|
</div>
|
||||||
|
</dialog>
|
||||||
|
|
||||||
|
<dialog class="qq-prompt-dialog-selector">
|
||||||
|
<div class="qq-dialog-message-selector"></div>
|
||||||
|
<input type="text">
|
||||||
|
<div class="qq-dialog-buttons">
|
||||||
|
<button type="button" class="qq-cancel-button-selector">Cancel</button>
|
||||||
|
<button type="button" class="qq-ok-button-selector">Ok</button>
|
||||||
|
</div>
|
||||||
|
</dialog>
|
||||||
|
</div>
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -5,60 +5,60 @@
|
||||||
on how to customize this template.
|
on how to customize this template.
|
||||||
-->
|
-->
|
||||||
<script type="text/template" id="qq-simple-thumbnails-template">
|
<script type="text/template" id="qq-simple-thumbnails-template">
|
||||||
<div class="qq-uploader-selector qq-uploader" qq-drop-area-text="Drop files here">
|
<div class="qq-uploader-selector qq-uploader" qq-drop-area-text="Drop files here">
|
||||||
<div class="qq-total-progress-bar-container-selector qq-total-progress-bar-container">
|
<div class="qq-total-progress-bar-container-selector qq-total-progress-bar-container">
|
||||||
<div role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" class="qq-total-progress-bar-selector qq-progress-bar qq-total-progress-bar"></div>
|
<div role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" class="qq-total-progress-bar-selector qq-progress-bar qq-total-progress-bar"></div>
|
||||||
</div>
|
|
||||||
<div class="qq-upload-drop-area-selector qq-upload-drop-area" qq-hide-dropzone>
|
|
||||||
<span class="qq-upload-drop-area-text-selector"></span>
|
|
||||||
</div>
|
|
||||||
<div class="qq-upload-button-selector qq-upload-button">
|
|
||||||
<div>Upload a file</div>
|
|
||||||
</div>
|
|
||||||
<span class="qq-drop-processing-selector qq-drop-processing">
|
|
||||||
<span>Processing dropped files...</span>
|
|
||||||
<span class="qq-drop-processing-spinner-selector qq-drop-processing-spinner"></span>
|
|
||||||
</span>
|
|
||||||
<ul class="qq-upload-list-selector qq-upload-list" aria-live="polite" aria-relevant="additions removals">
|
|
||||||
<li>
|
|
||||||
<div class="qq-progress-bar-container-selector">
|
|
||||||
<div role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" class="qq-progress-bar-selector qq-progress-bar"></div>
|
|
||||||
</div>
|
|
||||||
<span class="qq-upload-spinner-selector qq-upload-spinner"></span>
|
|
||||||
<img class="qq-thumbnail-selector" qq-max-size="100" qq-server-scale>
|
|
||||||
<span class="qq-upload-file-selector qq-upload-file"></span>
|
|
||||||
<span class="qq-edit-filename-icon-selector qq-edit-filename-icon" aria-label="Edit filename"></span>
|
|
||||||
<input class="qq-edit-filename-selector qq-edit-filename" tabindex="0" type="text">
|
|
||||||
<span class="qq-upload-size-selector qq-upload-size"></span>
|
|
||||||
<button type="button" class="qq-btn qq-upload-cancel-selector qq-upload-cancel">Cancel</button>
|
|
||||||
<button type="button" class="qq-btn qq-upload-retry-selector qq-upload-retry">Retry</button>
|
|
||||||
<button type="button" class="qq-btn qq-upload-delete-selector qq-upload-delete">Delete</button>
|
|
||||||
<span role="status" class="qq-upload-status-text-selector qq-upload-status-text"></span>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
<dialog class="qq-alert-dialog-selector">
|
|
||||||
<div class="qq-dialog-message-selector"></div>
|
|
||||||
<div class="qq-dialog-buttons">
|
|
||||||
<button type="button" class="qq-cancel-button-selector">Close</button>
|
|
||||||
</div>
|
|
||||||
</dialog>
|
|
||||||
|
|
||||||
<dialog class="qq-confirm-dialog-selector">
|
|
||||||
<div class="qq-dialog-message-selector"></div>
|
|
||||||
<div class="qq-dialog-buttons">
|
|
||||||
<button type="button" class="qq-cancel-button-selector">No</button>
|
|
||||||
<button type="button" class="qq-ok-button-selector">Yes</button>
|
|
||||||
</div>
|
|
||||||
</dialog>
|
|
||||||
|
|
||||||
<dialog class="qq-prompt-dialog-selector">
|
|
||||||
<div class="qq-dialog-message-selector"></div>
|
|
||||||
<input type="text">
|
|
||||||
<div class="qq-dialog-buttons">
|
|
||||||
<button type="button" class="qq-cancel-button-selector">Cancel</button>
|
|
||||||
<button type="button" class="qq-ok-button-selector">Ok</button>
|
|
||||||
</div>
|
|
||||||
</dialog>
|
|
||||||
</div>
|
</div>
|
||||||
|
<div class="qq-upload-drop-area-selector qq-upload-drop-area" qq-hide-dropzone>
|
||||||
|
<span class="qq-upload-drop-area-text-selector"></span>
|
||||||
|
</div>
|
||||||
|
<div class="qq-upload-button-selector qq-upload-button">
|
||||||
|
<div>Upload a file</div>
|
||||||
|
</div>
|
||||||
|
<span class="qq-drop-processing-selector qq-drop-processing">
|
||||||
|
<span>Processing dropped files...</span>
|
||||||
|
<span class="qq-drop-processing-spinner-selector qq-drop-processing-spinner"></span>
|
||||||
|
</span>
|
||||||
|
<ul class="qq-upload-list-selector qq-upload-list" aria-live="polite" aria-relevant="additions removals">
|
||||||
|
<li>
|
||||||
|
<div class="qq-progress-bar-container-selector">
|
||||||
|
<div role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" class="qq-progress-bar-selector qq-progress-bar"></div>
|
||||||
|
</div>
|
||||||
|
<span class="qq-upload-spinner-selector qq-upload-spinner"></span>
|
||||||
|
<img class="qq-thumbnail-selector" qq-max-size="100" qq-server-scale>
|
||||||
|
<span class="qq-upload-file-selector qq-upload-file"></span>
|
||||||
|
<span class="qq-edit-filename-icon-selector qq-edit-filename-icon" aria-label="Edit filename"></span>
|
||||||
|
<input class="qq-edit-filename-selector qq-edit-filename" tabindex="0" type="text">
|
||||||
|
<span class="qq-upload-size-selector qq-upload-size"></span>
|
||||||
|
<button type="button" class="qq-btn qq-upload-cancel-selector qq-upload-cancel">Cancel</button>
|
||||||
|
<button type="button" class="qq-btn qq-upload-retry-selector qq-upload-retry">Retry</button>
|
||||||
|
<button type="button" class="qq-btn qq-upload-delete-selector qq-upload-delete">Delete</button>
|
||||||
|
<span role="status" class="qq-upload-status-text-selector qq-upload-status-text"></span>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<dialog class="qq-alert-dialog-selector">
|
||||||
|
<div class="qq-dialog-message-selector"></div>
|
||||||
|
<div class="qq-dialog-buttons">
|
||||||
|
<button type="button" class="qq-cancel-button-selector">Close</button>
|
||||||
|
</div>
|
||||||
|
</dialog>
|
||||||
|
|
||||||
|
<dialog class="qq-confirm-dialog-selector">
|
||||||
|
<div class="qq-dialog-message-selector"></div>
|
||||||
|
<div class="qq-dialog-buttons">
|
||||||
|
<button type="button" class="qq-cancel-button-selector">No</button>
|
||||||
|
<button type="button" class="qq-ok-button-selector">Yes</button>
|
||||||
|
</div>
|
||||||
|
</dialog>
|
||||||
|
|
||||||
|
<dialog class="qq-prompt-dialog-selector">
|
||||||
|
<div class="qq-dialog-message-selector"></div>
|
||||||
|
<input type="text">
|
||||||
|
<div class="qq-dialog-buttons">
|
||||||
|
<button type="button" class="qq-cancel-button-selector">Cancel</button>
|
||||||
|
<button type="button" class="qq-ok-button-selector">Ok</button>
|
||||||
|
</div>
|
||||||
|
</dialog>
|
||||||
|
</div>
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -1,49 +1,49 @@
|
||||||
.mwe-math-mathml-inline {
|
.mwe-math-mathml-inline {
|
||||||
display: inline !important;
|
display: inline !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mwe-math-mathml-display {
|
.mwe-math-mathml-display {
|
||||||
display: block !important;
|
display: block !important;
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
margin-right: auto;
|
margin-right: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mwe-math-mathml-a11y {
|
.mwe-math-mathml-a11y {
|
||||||
clip: rect(1px, 1px, 1px, 1px);
|
clip: rect(1px, 1px, 1px, 1px);
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
width: 1px;
|
width: 1px;
|
||||||
height: 1px;
|
height: 1px;
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mwe-math-fallback-image-inline {
|
.mwe-math-fallback-image-inline {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mwe-math-fallback-image-display {
|
.mwe-math-fallback-image-display {
|
||||||
display: block;
|
display: block;
|
||||||
margin-left: auto !important;
|
margin-left: auto !important;
|
||||||
margin-right: auto !important;
|
margin-right: auto !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'Latin Modern Math';
|
font-family: 'Latin Modern Math';
|
||||||
src: url('libs/latinmodernmath/latinmodern-math.eot'); /* IE9 Compat Modes */
|
src: url('libs/latinmodernmath/latinmodern-math.eot'); /* IE9 Compat Modes */
|
||||||
src: local('Latin Modern Math'), local('LatinModernMath-Regular'),
|
src: local('Latin Modern Math'), local('LatinModernMath-Regular'),
|
||||||
url('libs/latinmodernmath/latinmodern-math.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
|
url('libs/latinmodernmath/latinmodern-math.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
|
||||||
url('libs/latinmodernmath/latinmodern-math.woff2') format('woff2'), /* Modern Browsers */
|
url('libs/latinmodernmath/latinmodern-math.woff2') format('woff2'), /* Modern Browsers */
|
||||||
url('libs/latinmodernmath/latinmodern-math.woff') format('woff'), /* Modern Browsers */
|
url('libs/latinmodernmath/latinmodern-math.woff') format('woff'), /* Modern Browsers */
|
||||||
url('libs/latinmodernmath/latinmodern-math.ttf') format('truetype'); /* Safari, Android, iOS */
|
url('libs/latinmodernmath/latinmodern-math.ttf') format('truetype'); /* Safari, Android, iOS */
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
math {
|
math {
|
||||||
font-family: "Latin Modern Math";
|
font-family: "Latin Modern Math";
|
||||||
}
|
}
|
||||||
|
|
||||||
img.inline-math {
|
img.inline-math {
|
||||||
display: inline;
|
display: inline;
|
||||||
}
|
}
|
|
@ -1,12 +1,12 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>Courses</title>
|
<title>Courses</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
|
@ -1,19 +1,19 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>Document</title>
|
<title>Document</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1>Enrolling</h1>
|
<h1>Enrolling</h1>
|
||||||
{% for course in enrolling %}
|
{% for course in enrolling %}
|
||||||
<h2> {{ course }} </h2>
|
<h2> {{ course }} </h2>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
<h1> Available </h1>
|
<h1> Available </h1>
|
||||||
{% for course in available %}
|
{% for course in available %}
|
||||||
<h2> {{ course }} </h2>
|
<h2> {{ course }} </h2>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
Loading…
Reference in a new issue