{% trans "The Open Study Room have and always will be a project to help online go community organising and setting up go leagues. " %}
13 | {% trans "With that in mind, we are very happy to host some league for other friendly go community." %}
14 |
{% trans "Below is the list of the public communities OSR is hosting. Joining a community will allow you to play in their leagues." %}
15 |
{% trans "If you want your community to run some leagues using the OSR league system, contact us at openstudyroom@gmail.com." %}
35 |
--------------------------------------------------------------------------------
/fullcalendar/templates/fullcalendar/messages/game_appointment.txt:
--------------------------------------------------------------------------------
1 | {% load l10n i18n tz %}
2 | {% localize off %}
3 | {% language 'en' %}
4 | Hello !
5 |
6 | This message was automaticly sent to you to inform you that the user {{user.username}} have planned a game appointment with you on the {{date|utc}} UTC.
7 |
8 | Thanks for playing in the Open Study Room !
9 | {% endlanguage %}
10 | {% endlocalize %}
11 |
--------------------------------------------------------------------------------
/fullcalendar/templates/fullcalendar/messages/game_cancel.txt:
--------------------------------------------------------------------------------
1 | {% load l10n i18n tz %}
2 | {% localize off %}
3 | {% language 'en' %}
4 | Hello !
5 |
6 | This message was automaticly sent to you to inform that the user {{user.username}} has cancelled your game appointment on {{date|utc}} UTC.
7 |
8 | Thanks for playing in the Open Study Room !
9 | {% endlanguage %}
10 | {% endlocalize %}
11 |
--------------------------------------------------------------------------------
/fullcalendar/templates/fullcalendar/messages/game_request.txt:
--------------------------------------------------------------------------------
1 | {% load l10n i18n tz %}
2 | {% localize off %}
3 | {% language 'en' %}
4 | Hello !
5 |
6 | This message was automatically sent to you to inform you that the user {{sender.username}} want to play on {{date|utc}} UTC.
7 |
8 | You can either accept or decline this game request on your calendar.
9 |
10 | Thanks for playing in the Open Study Room !
11 | {% endlanguage %}
12 | {% endlocalize %}
--------------------------------------------------------------------------------
/fullcalendar/templates/fullcalendar/messages/game_request_accepted.txt:
--------------------------------------------------------------------------------
1 | {% load l10n i18n tz %}
2 | {% localize off %}
3 | {% language 'en' %}
4 | Hello !
5 |
6 | This message was automaticly sent to you to inform you that the user {{user.username}} have accepted your game request !
7 |
8 | You should play a game with him on the {{date|utc}} UTC.
9 |
10 | Thanks for playing in the Open Study Room !
11 | {% endlanguage %}
12 | {% endlocalize %}
13 |
--------------------------------------------------------------------------------
/fullcalendar/templates/fullcalendar/publicevent_create_form.html:
--------------------------------------------------------------------------------
1 | {% extends 'league/admin/base.html' %}
2 | {% load bootstrap3 league_tags static tz i18n %}
3 | {% block title %}{% trans "OSR league admin" %} - {% trans "Create new event" %}{% endblock %}
4 |
5 | {% block heading %}
6 |
9 | {% include "home/includes/streamfield.html" with content=self.body %}
10 |
11 | {% endif %}
12 | {% endblock %}
13 |
--------------------------------------------------------------------------------
/home/templates/home/includes/blog_list_item.html:
--------------------------------------------------------------------------------
1 | {% load wagtailcore_tags wagtailimages_tags %}
2 |
3 | {# Individual blog item in a list - used on blog index and home page #}
4 |
5 |
--------------------------------------------------------------------------------
/home/templates/home/includes/event_list_item.html:
--------------------------------------------------------------------------------
1 | {% load wagtailcore_tags wagtailimages_tags %}
2 |
3 | {# Individual event item in a list - used on event index and home page #}
4 |
5 |
7 | {% endif %}
--------------------------------------------------------------------------------
/home/templates/home/includes/person_list_item.html:
--------------------------------------------------------------------------------
1 | {% load wagtailcore_tags wagtailimages_tags %}
2 |
3 | {# Individual person item in a list - used on people index and home page #}
4 |
5 |
{% if event.community %}{{event.community|community_link}}{%else%}OSR{%endif%} {% trans "League" %} - {%if event %}{{event}}{% else%}{% trans "Archives"%}{% endif %}{%if game %} - {{game.black.kgs_username}} vs {{game.white.kgs_username}} {%endif%}
6 | {% if event.description %}{{event.description|safe|rendered}}{% endif %}
7 |
Edit the {{object.name}} division from {{object.league_event.name}} league
9 |
{% blocktrans with object_name=object.name object_league_event_name=object.league_event.name %}Edit the {{object_name}} division from {{object_league_event_name}} league{% endblocktrans %}
10 |
11 | {%endblock%}
12 | {% block content %}
13 |
17 |
18 | {% endblock %}
19 | {% block extra_css %}
20 | {{ form.media.css }}
21 | {% endblock extra_css %}
22 |
23 | {% block extra_js %}
24 | {{ form.media.js }}
25 | {% endblock extra_js %}
26 |
--------------------------------------------------------------------------------
/league/templates/league/iframe/archives_games.html:
--------------------------------------------------------------------------------
1 | {% extends "iframe.html" %}
2 | {% load league_tags wgo_tags l10n i18n static %}
3 |
4 | {% block title %}Archives - Games {% if sgf %}- {{sgf.black.username}} vs {{sgf.white.username}} {%endif %}{% endblock %}
5 | {% block extra_head_js %}
6 |
31 | {% endblock %}
32 |
33 | {% block content %}
34 | {% include "league/includes/game_table_view.html" %}
35 | {% endblock %}
36 |
37 | {% block extra_css %}
38 |
39 |
40 | {% endblock %}
41 | {% block extra_js %}
42 | {% include "league/includes/sgrfs_datatable.html" with sgfs_data_json=sgfs_data_json %}
43 | {% endblock %}
44 |
--------------------------------------------------------------------------------
/league/templates/league/iframe/games.html:
--------------------------------------------------------------------------------
1 | {% extends "iframe.html" %}
2 | {% load tz static league_tags wgo_tags bootstrap3 l10n i18n%}
3 |
4 | {% block extra_head_js %}
5 |
31 | {% endblock %}
32 | {% block content %}
33 |
34 | {% include "league/includes/game_table_view.html" with event=event %}
35 | {% endblock %}
36 |
37 | {% block extra_js %}
38 | {% get_current_language as LANGUAGE_CODE %}
39 | {% include "league/includes/sgrfs_datatable.html" with sgfs_data_json=sgfs_data_json %}
40 | {% endblock %}
41 |
--------------------------------------------------------------------------------
/league/templates/league/includes/admin_nav.html:
--------------------------------------------------------------------------------
1 | {% load i18n %}
2 |
15 |
--------------------------------------------------------------------------------
/league/templates/league/includes/ajax_setup.html:
--------------------------------------------------------------------------------
1 | // we will do some ajax post request and hence we will need to grab csrf from cookie.
2 | // https://docs.djangoproject.com/en/1.11/ref/csrf/#ajax
3 | function getCookie(name) {
4 | var cookieValue = null;
5 | if (document.cookie && document.cookie !== '') {
6 | var cookies = document.cookie.split(';');
7 | for (var i = 0; i < cookies.length; i++) {
8 | var cookie = jQuery.trim(cookies[i]);
9 | // Does this cookie string begin with the name we want?
10 | if (cookie.substring(0, name.length + 1) === (name + '=')) {
11 | cookieValue = decodeURIComponent(cookie.substring(name.length + 1));
12 | break;
13 | }
14 | }
15 | }
16 | return cookieValue;
17 | }
18 | var csrftoken = getCookie('csrftoken');
19 | $.ajaxSetup({ headers: { "X-CSRFToken": csrftoken } });
20 | // end of csrftoken cookie set up
21 |
--------------------------------------------------------------------------------
/league/templates/league/includes/event.html:
--------------------------------------------------------------------------------
1 | {% load l10n i18n %}
2 |
{% trans "Infos" %}
3 |
{% blocktrans with event_name=event.name event_begin=event.begin_time |date:"M d, Y" %}The {{event_name}} started on {{event_begin}} and {% endblocktrans %}{% if close %}{% trans "stopped" %}{% else %}{% trans "will stop" %}{%endif%} {% blocktrans with event_end=event.end_time |date:"M d, Y" %}on {{event_end}}.{% endblocktrans %}
4 |
{% blocktrans with event_number_players=event.number_players event_number_games=event.number_games event_number_divisions=event.number_divisions event_percent_game_played=event.percent_game_played event_possible_games=event.possible_games %}{{event_number_players}} players played {{event_number_games}} games in {{event_number_divisions}} divisions. That is {{event_percent_game_played}} % of {{event_possible_games}} possible games.{% endblocktrans %}
7 | {% if event %}
8 | {% blocktrans with event=event %}Games from {{event}}{% endblocktrans %}
9 | {% else %}
10 | {% trans "All OSR games" %}
11 | {% endif %}
12 |
13 | {# don't forget to add data-community-pk or data-event-pk! #}
14 |
15 |
16 |
17 |
{% trans "date" %}
18 |
{% trans "white" %}
19 |
{% trans "black" %}
20 |
{% trans "result" %}
21 |
22 |
23 |
24 |
25 |
26 |
27 | {% if sgf %}
28 | {% include "league/includes/game_info.html" %}
29 | {% endif %}
30 |
31 | {% if sgf %}
32 |
33 |
34 | {% else %}
35 |
36 |
37 | {% trans "Click a game result to see it." %}
38 |
39 |
40 | {% endif %}
41 |
42 |
43 |
--------------------------------------------------------------------------------
/league/templates/league/includes/games.html:
--------------------------------------------------------------------------------
1 | {% load wagtailcore_tags league_tags i18n %}
2 | {% get_meijin as meijin %}
3 | {% load static %}
4 |
5 |
16 | {# generate a table from a game queryset #}
17 | {# don't forget to add data-community-pk or data-event-pk! #}
18 |
19 |
20 |
21 |
{% trans "date" %}
22 |
{% trans "white" %}
23 |
{% trans "black" %}
24 |
{% trans "result" %}
25 |
26 |
27 |
--------------------------------------------------------------------------------
/league/templates/league/includes/games_iframe.html:
--------------------------------------------------------------------------------
1 | {% load wagtailcore_tags league_tags l10n i18n %}
2 |
3 | {# generate a table from a game queryset #}
4 | {# don't forget to add the extrajs when including this ! #}
5 |
{% blocktrans with event_name=event.name event_begin=event.begin_time |date:"M d, Y" %}The {{event_name}} started on {{event_begin}} and {% endblocktrans %}{% if close %}{% trans "stopped" %}{% else %}{% trans "will stop" %}{%endif%} {% blocktrans with event_end=event.end_time |date:"M d, Y" %}on {{event_end}}.{% endblocktrans %}
12 |
{% blocktrans with event_number_players=event.number_players event_number_games=event.number_games event_number_divisions=event.number_divisions event_percent_game_played=event.percent_game_played event_possible_games=event.possible_games %}{{event_number_players}} players played {{event_number_games}} games in {{event_number_divisions}} divisions. That is {{event_percent_game_played}} % of {{event_possible_games}} possible games.{% endblocktrans %}
{% trans "Sorry, there seems to be an error. Please try again soon." %}
17 |
18 |
19 |
--------------------------------------------------------------------------------
/openstudyroom/templates/account/email/email_confirmation_message.txt:
--------------------------------------------------------------------------------
1 | {% load i18n account %}{% blocktrans with site_name=current_site.name %}A user on {{ site_name }} has created an account using this email address.
2 |
3 | To confirm this email address, go to {{ activate_url }}
4 |
5 | If you did not sign up for this site, you can ignore this message.
6 | {% endblocktrans %}
7 |
--------------------------------------------------------------------------------
/openstudyroom/templates/account/email/email_confirmation_subject.txt:
--------------------------------------------------------------------------------
1 | {% load i18n %}{% blocktrans with site_name=current_site.name %}Confirm email address for {{ site_name }}{% endblocktrans %}
--------------------------------------------------------------------------------
/openstudyroom/templates/account/email/invite_user.txt:
--------------------------------------------------------------------------------
1 | {% load i18n %}{% blocktrans with name=current_site.name %}You have been invited to sign up at {{ name }}.
2 |
3 | {{ signup_url }}
4 | {% endblocktrans %}
--------------------------------------------------------------------------------
/openstudyroom/templates/account/email/invite_user_subject.txt:
--------------------------------------------------------------------------------
1 | {% load i18n %}{% blocktrans with name=current_site.name %}Create an account on {{ name }}{% endblocktrans %}
--------------------------------------------------------------------------------
/openstudyroom/templates/account/email/password_change.txt:
--------------------------------------------------------------------------------
1 | {% load i18n %}{% blocktrans with now=user.account.now %}This is the email notification to confirm your password has been changed on {{ now }}.{% endblocktrans %}
--------------------------------------------------------------------------------
/openstudyroom/templates/account/email/password_change_subject.txt:
--------------------------------------------------------------------------------
1 | {% load i18n %}{% trans "Change password email notification" %}
--------------------------------------------------------------------------------
/openstudyroom/templates/account/email/password_reset.txt:
--------------------------------------------------------------------------------
1 | {% load i18n %}{% blocktrans with site_name=current_site.name %}You're receiving this email because you or someone else has requested a password for your user account at {{ site_name }}.
2 | It can be safely ignored if you did not request a password reset. Click the link below to reset your password.
3 |
4 | {{ password_reset_url }}
5 | {% endblocktrans %}
--------------------------------------------------------------------------------
/openstudyroom/templates/account/email/password_reset_subject.txt:
--------------------------------------------------------------------------------
1 | {% load i18n %}{% blocktrans with site_name=current_site.name %}[{{ site_name }}] Password reset{% endblocktrans %}
--------------------------------------------------------------------------------
/openstudyroom/templates/account/email_confirm.html:
--------------------------------------------------------------------------------
1 | {% extends "full_width.html" %}
2 |
3 | {% load i18n %}
4 | {% load account %}
5 | {% block title %} Confirm e-mail{% endblock %}
6 | {% block heading %}
7 |
{% blocktrans with confirmation.email_address.email as email %}Please confirm that {{ email }} is an e-mail address for user {{ user_display }}.{% endblocktrans %}
{% blocktrans %}We have sent you an email to {{ email }} for verification. Follow the link provided to finalize the signup process. If you do not receive it within a few minutes, contact us at openstudyroom@gmail.com.{% endblocktrans %}
15 |
16 | {% if token_fail %}
17 | {% url 'account_reset_password' as passwd_reset_url %}
18 |
{% blocktrans %}The password reset link was invalid, possibly because it has already been used. Please request a new password reset.{% endblocktrans %}
{% trans "Your adventure now begins, as you just joined a young and enthusiastic online community dedicated to playing, studying and teaching Go." %}
12 |
{% trans "Very soon, our team will add you as an OSR member. Then you will have your own profile page, you'll be able to play league games and use our forum. Make sure to verify your e-mail and check that you have either a valid KGS or OGS account. These two criteria are mandatory in order to join the OSR." %}
13 |
14 |
{% blocktrans %}In the meantime, you might want to check out our FAQ to be sure you got a good grasp of what the OSR is about.{% endblocktrans %}
15 |
16 |
{% blocktrans %}You are also very welcome to meet us in our discord server, in the Open Study Room on KGS (Room list -> Social), and to join our OGS group.{% endblocktrans %}
17 |
18 |
{% blocktrans %}We have sent you an email to you for verification. Please follow the link provided to finalize the signup process. If you do not receive it within a few minutes, contact us at openstudyroom@gmail.com.{% endblocktrans %}
34 | {% endblock %}
35 |
--------------------------------------------------------------------------------
/openstudyroom/templates/postman/email_user.txt:
--------------------------------------------------------------------------------
1 | {% load i18n %}{% autoescape off %}
2 | Hello {{object.obfuscated_recipient}}
3 | {% if action == 'rejection' %}
4 | {% blocktrans with object.sent_at|date:"DATETIME_FORMAT" as date and object.obfuscated_recipient as recipient %}On {{ date }}, you asked to send a message to the user '{{ recipient }}'.{% endblocktrans %}
5 |
6 | {% trans "Your message has been rejected by the moderator" %}{% if object.moderation_reason %}{% trans ", for the following reason:" %}
7 | {{ object.moderation_reason }}{% else %}.{% endif %}
8 |
9 | {% else %}{# 'acceptance' #}
10 |
11 | {% blocktrans with object.obfuscated_sender as sender %}You have received a message from the user '{{ sender }}'{% endblocktrans %}:
12 | {%endif%}
13 | ---------------------------------------------
14 | {{object.body}}
15 | ---------------------------------------------
16 | Hope you enjoy your time in the Open Study Room !
17 |
18 | openstudyroom.org
19 | {% endautoescape %}
20 |
--------------------------------------------------------------------------------
/openstudyroom/templates/postman/email_user_subject.txt:
--------------------------------------------------------------------------------
1 | {% load i18n %}{% autoescape off %}{% blocktrans with object.subject as subject and site.name as sitename %}Message "{{ subject }}" on the site {{ sitename }}{% endblocktrans %}{% endautoescape %}
--------------------------------------------------------------------------------
/openstudyroom/templates/postman/email_visitor.txt:
--------------------------------------------------------------------------------
1 | {% load i18n %}{% autoescape off %}{% trans "Dear visitor," %}
2 | {% if action == 'rejection' %}
3 | {% blocktrans with object.sent_at|date:"DATETIME_FORMAT" as date and object.recipient as recipient %}On {{ date }}, you asked to send a message to the user '{{ recipient }}'.{% endblocktrans %}
4 |
5 | {% trans "Your message has been rejected by the moderator" %}{% if object.moderation_reason %}{% trans ", for the following reason:" %}
6 | {{ object.moderation_reason }}{% else %}.{% endif %}
7 |
8 | {% trans "As a reminder, please find below the content of your message." %}
9 | {% else %}{# 'acceptance' #}
10 | {% blocktrans with object.parent.sent_at|date:"DATETIME_FORMAT" as date and object.sender as sender %}On {{ date }}, you sent a message to the user '{{ sender }}'.{% endblocktrans %}
11 | {% trans "Please find below the answer from your correspondent." %}
12 | {% endif %}
13 |
14 | {% trans "Thank you again for your interest in our services." %}
15 | {% trans "For more comfort, we encourage you to open an account on the site." %}
16 | {% trans "The site administrator" %}
17 |
18 | {% blocktrans %}Note: This message is issued by an automated system.
19 | Do not reply, this would not be taken into account.{% endblocktrans %}
20 | -------------------------------------------------------
21 | {{ object.body }}
22 | -------------------------------------------------------{% endautoescape %}
--------------------------------------------------------------------------------
/openstudyroom/templates/postman/email_visitor_subject.txt:
--------------------------------------------------------------------------------
1 | {% load i18n %}{% autoescape off %}{% blocktrans with object.subject as subject and site.name as sitename %}Message "{{ subject }}" on the site {{ sitename }}{% endblocktrans %}{% endautoescape %}
--------------------------------------------------------------------------------
/openstudyroom/templates/postman/inbox.html:
--------------------------------------------------------------------------------
1 | {% extends "postman/base_folder.html" %}
2 | {% load i18n %}{% load postman_tags bootstrap3 %}
3 | {% block pm_folder_title %}{% trans "Received Messages" %}{% endblock %}
4 | {% block pm_undelete_button %}{% endblock %}
5 | {% block pm_recipient_header %}{% endblock %}
6 | {% block pm_date %}{% trans "Received" %}{% endblock %}
7 | {% block pm_recipient_cell %}{% endblock %}
8 |
9 | {% block sidebar %}
10 |
{% with postman_unread_count as unread_count %}
11 |
18 | {% endblock %}
19 |
--------------------------------------------------------------------------------
/openstudyroom/templates/postman/inc_subject_ex.html:
--------------------------------------------------------------------------------
1 | {% comment %}
2 | This file is intended to be included, such as in postman/base_folder.html:
3 | {% include "postman/inc_subject_ex.html" %}
4 |
5 | It provides an extended subject, as a replacement to a simple {{ message.subject }} tag.
6 | Enhancements are:
7 | * limit the subject length to a few words
8 | * if there is still room up to a maximum number of words, then add the very first words of the body,
9 | in a grey style.
10 |
11 | Examples:
12 | With a total of at most 12 words, and 5 words of subject.
13 | With body: "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod."
14 |
15 | With subject: "a subject of great interest for you":
16 | "a subject of great interest ... - Lorem ipsum dolor sit amet, consectetur ..."
17 |
18 | With subject: "a great interest":
19 | "a great interest - Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed ..."
20 |
21 | {% endcomment %}{% load postman_tags %}{% with message.subject|truncatewords:5 as truncated_subject %}{{ truncated_subject }}
22 | {% with truncated_subject|wordcount as subject_wc %}{% with 12|sub:subject_wc as wc %}{% if message.body and wc > 0 %} - {{ message.body|truncatewords:wc }}{% endif %}{% endwith %}{% endwith %}{% endwith %}
--------------------------------------------------------------------------------
/openstudyroom/templates/postman/reply.html:
--------------------------------------------------------------------------------
1 | {% extends "postman/base_write.html" %}
2 | {% load i18n %}
3 | {% block pm_write_title %}{% trans "Reply"%}{% endblock %}
4 | {% block pm_write_recipient %}