Skip to content

Commit d687250

Browse files
authored
Merge branch 'enext' into fix/talk-permissions-clarity
2 parents 010927f + 0ce5028 commit d687250

File tree

204 files changed

+301439
-504580
lines changed

Some content is hidden

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

204 files changed

+301439
-504580
lines changed

README.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
eventyay-tickets (ENext)
22
========================
33

4-
.. image:: https://codecov.io/gh/fossasia/eventyay-tickets/branch/master/graph/badge.svg
4+
.. image:: https://codecov.io/gh/fossasia/eventyay/branch/enext/graph/badge.svg
55
:target: https://codecov.io/gh/pretix/pretix
66

77
Project status & release cycle
@@ -41,13 +41,13 @@ Getting Started
4141

4242
.. code-block:: bash
4343
44-
git clone https://github.com/fossasia/eventyay-tickets.git
44+
git clone https://github.com/fossasia/eventyay.git
4545
4646
2. **Enter the project directory and app directory**:
4747

4848
.. code-block:: bash
4949
50-
cd eventyay-tickets/app
50+
cd eventyay/app
5151
5252
3. **Switch to the `enext` branch**:
5353

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,24 @@
11
{% load i18n %}
22
{% load safelink %}
3+
{% load event_tags %}
34

45
<a href="{% url 'presale:event.index' event=request.event.slug organizer=request.event.organizer.slug %}" class="header-tab">
56
<i class="fa fa-ticket"></i> {% translate "Tickets" %}
67
</a>
78
{% if schedule or request.event.current_schedule %}
8-
<a href="{{ request.event.urls.schedule }}" class="header-tab {% if "/schedule/" in request.path_info %}active{% endif %}">
9+
<a href="{{ request.event.urls.schedule }}" class="header-tab {% if '/schedule/' in request.path_info %}active{% endif %}">
910
<i class="fa fa-calendar"></i> {{ phrases.schedule.schedule }}
1011
</a>
1112
{% endif %}
12-
{% if request.event.display_settings.schedule_display != "list" %}
13-
<a href="{{ request.event.urls.talks }}" class="header-tab {% if "/talk/" in request.path_info %} active{% endif %}">
14-
<i class="fa fa-comments-o"></i> {{ phrases.schedule.sessions }}
15-
</a>
16-
{% endif %}
1713
{% if schedule or request.event.current_schedule %}
18-
<a href="{{ request.event.urls.speakers }}" class="header-tab {% if "/speaker/" in request.path_info %} active{% endif %}">
14+
{% if request.event.display_settings.schedule_display != "list" %}
15+
<a href="{{ request.event.urls.talks }}" class="header-tab {% if '/sessions/' in request.path_info %} active{% endif %}">
16+
<i class="fa fa-comments-o"></i> {{ phrases.schedule.sessions }}
17+
</a>
18+
{% endif %}
19+
{% endif %}
20+
{% if request.event.speakers.exists %}
21+
<a href="{{ request.event.urls.speakers }}" class="header-tab {% if '/speakers/' in request.path_info %} active{% endif %}">
1922
<i class="fa fa-group"></i> {{ phrases.schedule.speakers }}
2023
</a>
2124
{% endif %}
@@ -27,7 +30,7 @@
2730

2831
{% with cfp=request.event.cfp %}
2932
{% if cfp.is_open or access_code.is_valid %}
30-
<a class="header-tab {% if "/cfp" in request.path_info %} active{% endif %}"
33+
<a class="header-tab {% if '/cfp' in request.path_info %} active{% endif %}"
3134
href="{% url 'cfp:event.start' event=request.event.slug organizer=request.event.organizer.slug %}">
3235
<i class="fa fa-bullhorn"></i> {% translate "Call for Speakers" %}
3336
</a>
@@ -38,6 +41,6 @@
3841
{% endif %}
3942
{% endwith %}
4043

41-
<a id="join-event-link" href='{% url "agenda:event.onlinevideo.join" organizer=request.event.organizer.slug event=request.event.slug %}' class="header-tab">
44+
<a id="join-event-link" href="{% url 'agenda:event.onlinevideo.join' organizer=request.event.organizer.slug event=request.event.slug %}" class="header-tab">
4245
<i class="fa fa-video-camera"></i> {% translate "Join online video" %}
4346
</a>

app/eventyay/agenda/templates/agenda/schedule.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{% load xmlescape %}<?xml version='1.0' encoding='utf-8' ?>
2-
<!-- Made with love by pretalx v{{ version }}. -->
2+
<!-- Made with love by eventyay v{{ version }}. -->
33
<schedule>
4-
<generator name="pretalx" version="{{ version }}" />
4+
<generator name="eventyay" version="{{ version }}" />
55
<version>{{ schedule.version|xmlescape }}</version>
66
<conference>
77
<title>{{ event.name|xmlescape }}</title>

app/eventyay/agenda/urls.py

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -60,21 +60,20 @@ def get_schedule_urls(regex_prefix, name_prefix=''):
6060
),
6161
*get_schedule_urls('schedule'),
6262
*get_schedule_urls('schedule/v/<version>', 'versioned-'),
63-
path('sneak/', featured.sneakpeek_redirect, name='oldsneak'),
6463
path('featured/', featured.FeaturedView.as_view(), name='featured'),
65-
path('speaker/', speaker.SpeakerList.as_view(), name='speakers'),
64+
path('speakers/', speaker.SpeakerList.as_view(), name='speakers'),
6665
path(
67-
'speaker/avatar.svg',
66+
'speakers/avatar.svg',
6867
speaker.empty_avatar_view,
6968
name='speakers.avatar',
7069
),
7170
path(
72-
'speaker/by-id/<int:pk>/',
71+
'speakers/by-id/<int:pk>/',
7372
speaker.SpeakerRedirect.as_view(),
7473
name='speaker.redirect',
7574
),
76-
path('talk/', schedule.ScheduleView.as_view(), name='talks'),
77-
path('talk/<slug>/', talk.TalkView.as_view(), name='talk'),
75+
path('sessions/', schedule.ScheduleView.as_view(), name='talks'),
76+
path('talk/<slug>/', talk.TalkView.as_view(), name='talk.detail'),
7877
path(
7978
'talk/<slug>/og-image',
8079
talk.TalkSocialMediaCard.as_view(),
@@ -96,17 +95,17 @@ def get_schedule_urls(regex_prefix, name_prefix=''):
9695
name='review',
9796
),
9897
path(
99-
'speaker/<code>/',
98+
'speakers/<code>/',
10099
speaker.SpeakerView.as_view(),
101100
name='speaker',
102101
),
103102
path(
104-
'speaker/<code>/og-image',
103+
'speakers/<code>/og-image',
105104
speaker.SpeakerSocialMediaCard.as_view(),
106105
name='speaker-social',
107106
),
108107
path(
109-
'speaker/<code>/talks.ics',
108+
'speakers/<code>/talks.ics',
110109
speaker.SpeakerTalksIcalView.as_view(),
111110
name='speaker.talks.ical',
112111
),

app/eventyay/agenda/views/schedule.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ def my_exporters(self):
171171

172172
@context
173173
def show_talk_list(self):
174-
return self.request.path.endswith('/talk/') or self.request.event.display_settings['schedule'] == 'list'
174+
return self.request.path.endswith('/sessions/') or self.request.event.display_settings['schedule'] == 'list'
175175

176176

177177
@cache_page(60 * 60 * 24)
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from drf_spectacular.types import OpenApiTypes
22
from drf_spectacular.utils import OpenApiParameter
33

4-
from pretalx.mail.models import MailTemplateRoles
4+
from eventyay.base.models.mail import MailTemplateRoles
55

66

77
def build_expand_docs(*params):
@@ -58,7 +58,7 @@ def postprocess_schema(result, generator, request, public):
5858
{
5959
"name": "teams",
6060
"description": (
61-
"Access permissions for events are organised in teams within an organiser. "
61+
"Access permissions for events are organised in teams within an organizer. "
6262
"This is the only API endpoint that does not use the event setting on your access token, as teams exist outside the event structure."
6363
),
6464
},
@@ -78,14 +78,14 @@ def postprocess_schema(result, generator, request, public):
7878
},
7979
{
8080
"name": "speakers",
81-
"description": "Speakers can currently only updated, not created or deleted, as a speaker refers to a user object, and users can only be deleted by administrators. Organisers will see additional fields in the API, in line with the response to the update actions.",
81+
"description": "Speakers can currently only updated, not created or deleted, as a speaker refers to a user object, and users can only be deleted by administrators. organizers will see additional fields in the API, in line with the response to the update actions.",
8282
},
8383
{
8484
"name": "schedules",
8585
"description": (
8686
"In pretalx, an event’s schedule is versioned, and each version is a schedule object in the API. "
8787
"In addition to the normal ID based routing, you can use the `latest` shortcut to see the current public schedule, "
88-
"and as organiser, the `wip` shortcut will show the current unpublished working copy. "
88+
"and as organizer, the `wip` shortcut will show the current unpublished working copy. "
8989
"As retrieving the fully expanded endpoint is expensive on the pretalx side, "
9090
"consider using the redirect offered at ``by-version/?version=latest`` to check for a new release."
9191
),
@@ -100,7 +100,7 @@ def postprocess_schema(result, generator, request, public):
100100
},
101101
{
102102
"name": "rooms",
103-
"description": "Rooms are part of conference schedules. Only once the conference schedule is public will the rooms API be available to unauthenticated users. Authenticated organisers will see additional fields in the API, in line with the create and update actions.",
103+
"description": "Rooms are part of conference schedules. Only once the conference schedule is public will the rooms API be available to unauthenticated users. Authenticated organizers will see additional fields in the API, in line with the create and update actions.",
104104
},
105105
{
106106
"name": "submission-types",
@@ -112,7 +112,7 @@ def postprocess_schema(result, generator, request, public):
112112
},
113113
{
114114
"name": "tags",
115-
"description": "Tags are currently only used in the organiser backend and not publicly. As such, all tag endpoints require authentication.",
115+
"description": "Tags are currently only used in the organizer backend and not publicly. As such, all tag endpoints require authentication.",
116116
"externalDocs": {
117117
"url": "https://docs.pretalx.org/user/sessions/#tags",
118118
"description": "User documentation",
@@ -129,7 +129,7 @@ def postprocess_schema(result, generator, request, public):
129129
{
130130
"name": "questions",
131131
"description": (
132-
"The questions resource represents all fields created by organisers via the flexible “custom fields” model, "
132+
"The questions resource represents all fields created by organizers via the flexible “custom fields” model, "
133133
"with the answers available under the ``/answers/`` endpoint."
134134
),
135135
},
@@ -142,7 +142,7 @@ def postprocess_schema(result, generator, request, public):
142142
{
143143
"name": "answers",
144144
"description": (
145-
"The answers resource represents all data collected by organisers via the flexible “custom fields” model, which "
145+
"The answers resource represents all data collected by organizers via the flexible “custom fields” model, which "
146146
"allows for nearly arbitrary data collection from speakers or reviewers. "
147147
),
148148
},
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import django_filters
22
from django_scopes import scopes_disabled
33

4-
from pretalx.person.models import User
5-
from pretalx.submission.models import Review, Submission
4+
from eventyay.base.models.auth import User
5+
from eventyay.base.models.submission import Submission
6+
from eventyay.base.models.review import Review
67

78
with scopes_disabled():
89

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
import django_filters
22
from django_scopes import scopes_disabled
33

4-
from pretalx.person.models import User
5-
from pretalx.schedule.models import Room, Schedule, TalkSlot
6-
from pretalx.submission.models import Submission
4+
from eventyay.base.models.auth import User
5+
from eventyay.base.models.schedule import Schedule
6+
from eventyay.base.models.slot import TalkSlot
7+
from eventyay.base.models.room import Room
8+
from eventyay.base.models.submission import Submission
79

810
with scopes_disabled():
911

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from rest_framework import exceptions
88
from rest_framework.serializers import ModelSerializer
99

10-
from pretalx.api.versions import get_api_version_from_request, get_serializer_by_version
10+
from eventyay.api.versions import get_api_version_from_request, get_serializer_by_version
1111

1212

1313
class ApiVersionException(exceptions.APIException):

0 commit comments

Comments
 (0)