Skip to content

Commit f81f808

Browse files
authored
Merge pull request #1 from Xpirix/separated_qgis_members
Separated qgis members
2 parents 0196e29 + d58e5f5 commit f81f808

File tree

610 files changed

+1816
-36743
lines changed

Some content is hidden

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

610 files changed

+1816
-36743
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

backup-qgis.org.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# The first time before running this script, connect once manually to
44
# accept the ssh key:
55

6-
# sftp sftp://changelog.qgis.org:2222
6+
# sftp sftp://members.qgis.org:2222
77

88
#First the database backups on the remote server
99
SOURCE=ftp/db
@@ -32,7 +32,7 @@ shopt -u nocasematch
3232
echo 'Source :' $SOURCE
3333
echo 'Destination :' $DEST
3434
echo 'Objective :' $OBJECTIVE
35-
lftp -u kartoza, sftp://changelog.qgis.org:2222 -e "mirror $REMOVE_FILE $SOURCE $DEST; bye"
35+
lftp -u kartoza, sftp://members.qgis.org:2222 -e "mirror $REMOVE_FILE $SOURCE $DEST; bye"
3636
#Next the media backups on the remote server
3737
SOURCE=ftp/media
3838
DEST=backups/media
@@ -60,4 +60,4 @@ shopt -u nocasematch
6060
echo 'Source :' $SOURCE
6161
echo 'Destination :' $DEST
6262
echo 'Objective :' $OBJECTIVE
63-
lftp -u kartoza, sftp://changelog.qgis.org:2222 -e "mirror $REMOVE_FILE $SOURCE $DEST; bye"
63+
lftp -u kartoza, sftp://members.qgis.org:2222 -e "mirror $REMOVE_FILE $SOURCE $DEST; bye"

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=members.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", "members.qgis.org", "staging.members.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

deployment/projecta.nginx.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ server {
2121
# the port your site will be served on
2222
listen 80;
2323
# the domain name it will serve for
24-
server_name staging.projecta.kartoza.com changelog.linfiniti.com changelog.kartoza.com changelog.qgis.org changelog.inasafe.org;
24+
server_name staging.projecta.kartoza.com changelog.linfiniti.com changelog.kartoza.com members.qgis.org changelog.inasafe.org;
2525
charset utf-8;
2626

2727
# max upload size, adjust to taste

django_project/base/forms.py

Lines changed: 3 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

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
2+
.legend {
3+
line-height: 18px;
4+
color: #555;
5+
}
6+
.legend i {
7+
width: 18px;
8+
height: 16px;
9+
float: left;
10+
margin-right: 8px;
11+
opacity: 0.7;
12+
}
13+
14+
.info {
15+
padding: 6px 8px;
16+
background: white;
17+
box-shadow: 0 0 15px rgba(0,0,0,0.2);
18+
border-radius: 5px;
19+
max-width: 300px;
20+
max-height: 600px;
21+
overflow: auto;
22+
}
23+
24+
.info.top {
25+
min-width: 300px;
26+
}
27+
28+
.info h4 {
29+
margin: 0 0 5px;
30+
color: #777;
31+
}
32+
33+
.info-sponsor-row {
34+
margin-top: 8px;
35+
margin-bottom: 8px;
36+
font-size: 10pt;
37+
}
38+
39+
.levels {
40+
display: none;
41+
}
42+
43+
.levels.info-sponsor-row {
44+
height: 20px;
45+
}
46+
47+
.lvl-image {
48+
width: 20px;
49+
min-height: 15px;
50+
float: left;
51+
}
52+
53+
.levels.info-image img {
54+
width: 15px !important;
55+
height: 15px !important;
56+
}
57+
58+
.info-image{
59+
width: 40px;
60+
min-height: 40px;
61+
float: left;
62+
margin-right: 10px;
63+
}
64+
65+
.info-image img {
66+
max-width: 40px;
67+
max-height: 35px;
68+
}
69+
70+
.info-sponsor-row .sub-info {
71+
font-size: 8pt;
72+
}
73+
74+
.info hr {
75+
margin-bottom: 5px !important;
76+
margin-top: 5px !important;
77+
}

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

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
@import "custom.bulma.scss";
33
@import "sustaining_members.scss";
44
@import "toogle-switch.scss";
5+
@import "map.scss";
56
@import "../../../../node_modules/@creativebulma/bulma-tooltip/src/sass/index.sass";
67

78
body {
@@ -360,15 +361,20 @@ a.is-active > span {
360361

361362
.card {
362363
color: inherit !important;
363-
transition: all 0.3s ease;
364-
border: 1px solid $border;
365364

366365
.card-header {
367366
box-shadow: 0 0.02em 0.25em rgba($scheme-invert, 0.1) !important;
368367
}
368+
}
369369

370-
&:hover {
371-
box-shadow: $shadow-hover;
372-
cursor: pointer;
373-
}
370+
.rounded .rich-right img {
371+
box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
372+
}
373+
374+
.truncate-td {
375+
display: block;
376+
white-space: nowrap;
377+
width: 200px;
378+
overflow: hidden;
379+
text-overflow: ellipsis;
374380
}

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

0 commit comments

Comments
 (0)