Skip to content

Commit 96cfe62

Browse files
authored
Merge pull request #3 from Xpirix/separated_qgis_changelog
Separated qgis changelog
2 parents 0196e29 + 5fd9812 commit 96cfe62

File tree

606 files changed

+933
-45210
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

606 files changed

+933
-45210
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ make superuser
8585

8686
If you wish to make use of [intercom.io](https://www.intercom.io), include a
8787
`private.py` file in `core.settings` with your `INTERCOM_APP_ID` as a string.
88-
The necessary code snippet is already included in `project_base.html`.
88+
The necessary code snippet is already included in `base_with_sidebar.html`.
8989

9090
**google authentication**
9191

deployment/.env.example

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Copy paste the env variable as .env to use
2-
COMPOSE_PROJECT_NAME=projecta
2+
COMPOSE_PROJECT_NAME=qgis_changelog_website
33

44
## Btsync credentials notes:
55
# The environment file should define two variables:
@@ -28,11 +28,11 @@ DATABASE_HOST=db
2828

2929
# Django env
3030
DJANGO_SETTINGS_MODULE=core.settings.prod_docker
31-
VIRTUAL_HOST=projecta.kartoza.com
31+
VIRTUAL_HOST=changelog.qgis.org
3232
VIRTUAL_PORT=8080
3333

3434
# DB Backups
35-
DUMPPREFIX=PG_projecta
35+
DUMPPREFIX=PG_QGIS_CHANGELOG
3636

3737

3838
# Nginx config
@@ -45,7 +45,7 @@ STATIC_VOLUME=./static
4545
BACKUPS_VOLUME=./backups
4646

4747
# VALID_DOMAIN
48-
VALID_DOMAIN=["localhost", "changelog.kartoza.com", "staging.changelog.kartoza.com","changelog.qgis.org", "staging.changelog.qgis.org"]
48+
VALID_DOMAIN=["localhost", "changelog.qgis.org", "staging.changelog.qgis.org"]
4949

5050
# Email
5151
EMAIL_BACKEND='django.core.mail.backends.smtp.EmailBackend'

deployment/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ services:
7171
- static-data:/home/web/static:rw
7272
- media-data:/home/web/media:rw
7373
- reports-data:/home/web/reports
74-
command: bash -c "npm run build && uwsgi --ini /uwsgi.conf"
74+
command: bash -c "npm install && npm run build && uwsgi --ini /uwsgi.conf"
7575
links:
7676
- db:db
7777
# - smtp:smtp

django_project/base/forms.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,13 @@
1414
)
1515
from .models import (
1616
Project, ProjectScreenshot, Domain, Organisation, ProjectFlatpage)
17-
from certification.forms import MultiSelectWidget
1817

1918
logger = logging.getLogger(__name__)
2019

2120

21+
class MultiSelectWidget(forms.SelectMultiple):
22+
template_name = 'widgets/multiselect.html'
23+
2224
class ProjectScreenshotForm(forms.ModelForm):
2325
"""Form to input a screenshot linked to a project."""
2426

@@ -40,6 +42,7 @@ def __init__(self, *args, **kwargs):
4042
self.helper.layout = layout
4143
self.helper.include_media = False
4244
self.helper.html5_required = False
45+
self.helper.form_class = 'box-content'
4346
super(ProjectScreenshotForm, self).__init__(*args, **kwargs)
4447

4548

@@ -181,6 +184,7 @@ def __init__(self, *args, **kwargs):
181184
self.helper.layout = layout
182185
self.helper.include_media = False
183186
self.helper.html5_required = False
187+
self.helper.form_class = 'box-content'
184188
super(ProjectForm, self).__init__(*args, **kwargs)
185189
self.fields['changelog_managers'].label_from_instance = \
186190
lambda obj: "%s <%s>" % (obj.get_full_name(), obj)
@@ -274,6 +278,7 @@ def __init__(self, *args, **kwargs):
274278
)
275279
self.helper.layout = layout
276280
self.helper.html5_required = False
281+
self.helper.form_class = 'box-content'
277282
super(RegisterDomainForm, self).__init__(*args, **kwargs)
278283
self.helper.add_input(Submit('submit', 'Submit', css_class='button is-success pt-2 mt-5'))
279284

@@ -307,6 +312,7 @@ def __init__(self, *args, **kwargs):
307312
)
308313
self.helper.layout = layout
309314
self.helper.html5_required = False
315+
self.helper.form_class = 'box-content'
310316
super(OrganisationForm, self).__init__(*args, **kwargs)
311317
self.helper.add_input(Submit('submit', 'Submit', css_class='button is-success pt-2 mt-5'))
312318

@@ -345,6 +351,7 @@ def __init__(self, *args, **kwargs):
345351
)
346352
self.helper.layout = layout
347353
self.helper.html5_required = False
354+
self.helper.form_class = 'box-content'
348355
super(UserForm, self).__init__(*args, **kwargs)
349356
self.helper.add_input(Submit('submit', 'Submit', css_class='button is-success pt-2 mt-5'))
350357

django_project/base/models/project.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ def get_absolute_url(self):
339339
:rtype: str
340340
341341
"""
342-
return reverse('project-detail', kwargs={'slug': self.slug})
342+
return reverse('project-detail')
343343

344344
def versions(self):
345345
"""Get all the versions for this project."""

django_project/base/static/js/index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ import 'datatables.net';
44
import 'datatables.net-dt';
55
import 'leaflet';
66
import 'leaflet/dist/leaflet.css';
7+
import 'air-datepicker';
8+
import 'air-datepicker/air-datepicker.css';
9+
import 'air-datepicker/locale/en';
10+
import 'jquery-ui/ui/widgets/sortable';
11+
import 'jquery-ui/themes/base/sortable.css';
712

813
document.addEventListener("DOMContentLoaded", () => {
914
// Get all "navbar-burger" elements

django_project/base/static/style/scss/style.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
@import "toogle-switch.scss";
55
@import "../../../../node_modules/@creativebulma/bulma-tooltip/src/sass/index.sass";
66

7+
html {
8+
scroll-padding-top: 120px; /* height of your fixed header */
9+
}
10+
711
body {
812
color: $text-primary1;
913
font-weight: 300;
@@ -371,4 +375,8 @@ a.is-active > span {
371375
box-shadow: $shadow-hover;
372376
cursor: pointer;
373377
}
378+
}
379+
380+
.rounded .rich-right img {
381+
box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
374382
}

django_project/base/templates/account/profile.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{% extends "project_base.html" %}
1+
{% extends "base_with_sidebar.html" %}
22
{% load static %}
33
{% block title %}Profile Page{% endblock %}
44

django_project/base/templates/account/update.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{% extends "project_base.html" %}
1+
{% extends "base_with_sidebar.html" %}
22
{% load static %}
33
{% load crispy_forms_tags %}
44

django_project/base/templates/custom_domain/delete.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{% extends "project_base.html" %}
1+
{% extends "base_with_sidebar.html" %}
22
{% load custom_markup %}
33

44
{% block title %}Domain Deleted - {{ block.super }}{% endblock %}

0 commit comments

Comments
 (0)