Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Iss3342 #3509

Closed
wants to merge 730 commits into from
Closed

Iss3342 #3509

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
730 commits
Select commit Hold shift + click to select a range
babe796
fix compile bug
PYushchenko Oct 26, 2013
c7aa502
l10n and script for merge po files
PYushchenko Oct 28, 2013
4c6e86b
fixes dependency
Oct 28, 2013
c2dc054
Fix issue #1820
Oct 28, 2013
733ba17
Merge branch 'select/release' into tmp
PYushchenko Oct 29, 2013
235434a
fixes time display
PYushchenko Oct 29, 2013
d4953a2
fixes
Oct 29, 2013
d11d2c2
fixes
Oct 29, 2013
81bc01f
fixes
PYushchenko Oct 29, 2013
dd842c3
Merge remote-tracking branch 'origin/select/devel' into select/release
PYushchenko Oct 29, 2013
b1d66f2
Merge branch 'feature/chapter-progress' into select/release
PYushchenko Oct 29, 2013
e5ba843
Merge branch 'feature/i18n-datetime' into select/release
PYushchenko Oct 29, 2013
8d3d555
add i18n to sending e-mail after un-enroled
jkorvin Oct 29, 2013
230fd03
add option to course
PYushchenko Oct 30, 2013
458bc46
Fix issue #2031
Oct 30, 2013
9dd16cc
Merge branch 'select/devel' of https://github.com/smartdec/edx-platfo…
Oct 30, 2013
001143d
added to Django admin editor for forum permitions #1956
PYushchenko Oct 30, 2013
47a24a0
fixes #2051 #2043
PYushchenko Oct 30, 2013
cba33ac
Merge remote-tracking branch 'origin/select/devel' into select/release
PYushchenko Oct 30, 2013
39ef892
Merge branch 'feature/chapter-progress' into select/release
PYushchenko Oct 30, 2013
20884cb
fixes
PYushchenko Oct 30, 2013
8b1aa2a
Merge branch 'feature/chapter-progress' into select/release
PYushchenko Oct 30, 2013
b169b69
fixes #2037 #2038
PYushchenko Oct 30, 2013
e4fdea3
fixes
PYushchenko Oct 30, 2013
7de9121
fixes
PYushchenko Oct 30, 2013
853b97a
Fix issue #1839
Oct 30, 2013
a112e5c
Fix issue #1789
Oct 30, 2013
16330e1
Updated po files
Oct 30, 2013
b3f4419
l10n
PYushchenko Oct 30, 2013
325f1ed
...
Oct 30, 2013
f6d5fd8
Fix issue #1998
Oct 30, 2013
8e2cb5f
fixes #1632
PYushchenko Oct 30, 2013
8dc080c
Move max_enrollment_instr_buttons to course settings
Oct 31, 2013
76bb843
Fix issue #2012
Oct 31, 2013
31933ac
Merge remote-tracking branch 'origin/select/devel' into select/release
PYushchenko Oct 31, 2013
6a5e0cf
fixes
Oct 31, 2013
ea08653
Merge branch 'select/release' of https://github.com/Man2Life/edx-plat…
Oct 31, 2013
775ef63
Merge remote-tracking branch 'origin/select/devel' into select/release
PYushchenko Oct 31, 2013
b956513
Merge branch 'select/release' of https://github.com/Man2Life/edx-plat…
Oct 31, 2013
cb40396
Fix course grading script bug
Oct 31, 2013
f821c0c
Merge branch 'select/release' of https://github.com/Man2Life/edx-plat…
Oct 31, 2013
8a4876d
added django-partial to merge
PYushchenko Nov 1, 2013
3648e20
Merge branch 'select/release' of github.com:Man2Life/edx-platform int…
PYushchenko Nov 1, 2013
f867e62
Merge branch 'select/release' of https://github.com/Man2Life/edx-plat…
Nov 1, 2013
de8bd23
updated po
Nov 1, 2013
688293a
l10n
PYushchenko Nov 1, 2013
134c760
fixes #2054 #2055
PYushchenko Nov 1, 2013
edb62eb
fix #2010
jkorvin Nov 1, 2013
979c76a
Fix issue #2011
Nov 1, 2013
fe315b4
i18n few words
jkorvin Nov 1, 2013
0666876
#2009 part 3) -done
jkorvin Nov 1, 2013
de4880b
Fix "Download CSV of Answer Distributions" button functionality
Nov 1, 2013
dd3df43
rename module into object
jkorvin Nov 1, 2013
026abc7
fix #2007
jkorvin Nov 5, 2013
50313ef
fixes datepicker for #1632
PYushchenko Nov 5, 2013
f085051
Merge branch 'select/release' of github.com:Man2Life/edx-platform int…
PYushchenko Nov 5, 2013
6913178
fix mistake in i18n
jkorvin Nov 5, 2013
42fbe50
i18n some words in forum
jkorvin Nov 5, 2013
3e0c636
Fix issue #2012
Nov 5, 2013
52b7894
Try to workaround an assertion
Nov 5, 2013
a976af7
Merge pull request #3 from smartdec/feature/i18n_in_forum
PYushchenko Nov 5, 2013
b80a49c
fix #1761 and #1648
jkorvin Nov 5, 2013
c76ab58
i18n title in some placeholder
jkorvin Nov 5, 2013
9ddb7d9
Fix missed message for issue #1777
Nov 5, 2013
c2b3b1a
Problem categories i18n
Nov 6, 2013
2464c70
Problem creation l10n
Nov 6, 2013
b373553
Fix a typo
Nov 6, 2013
89e2249
i18n word
jkorvin Nov 8, 2013
9f2754f
#2028
jkorvin Nov 8, 2013
dc6a868
fix mistake in last commit
jkorvin Nov 11, 2013
22a515d
Update l10n
Nov 11, 2013
44f21bc
fix mistake in i18n
jkorvin Nov 15, 2013
e2137ba
refix #1761
jkorvin Nov 15, 2013
60d4be0
Merge remote-tracking branch 'upstream/release' into select/release
PYushchenko Nov 19, 2013
cb9d48e
Merge branch 'select/release' of github.com:Man2Life/edx-platform int…
PYushchenko Nov 19, 2013
1626b0a
i18n
jkorvin Oct 29, 2013
ff2b93c
i18n in cappa dir
jkorvin Oct 29, 2013
1791294
bad hack for access to django ugettext in xmodule
PYushchenko Nov 5, 2013
8552f65
some l10n
PYushchenko Nov 7, 2013
2b5d6d1
Problem creation l10n
Nov 6, 2013
8128aeb
i18n problems
jkorvin Nov 12, 2013
781a2f1
Merge pull request #2 from smartdec/feature/xmodule-i18n
PYushchenko Nov 19, 2013
512a3b8
fixes
PYushchenko Nov 20, 2013
9422460
Merge branch 'select/release' of github.com:Man2Life/edx-platform int…
PYushchenko Nov 20, 2013
88fc4ff
fixes progress
Nov 21, 2013
597e59d
Merge branch 'select/release' of https://github.com/Man2Life/edx-plat…
Nov 21, 2013
dafdbbc
fixes and merge l10n
Nov 21, 2013
69148de
l10n
PYushchenko Nov 21, 2013
0cd8ea9
Revert "Use XBlock handlers for handle_ajax in XModules"
PYushchenko Nov 21, 2013
de871f7
fixes #2252
Nov 25, 2013
17aaa3a
a lot of hardcode to i18n a lot of word in discussion
jkorvin Nov 26, 2013
0f63491
some i18n and fix mistake in i18n
jkorvin Nov 26, 2013
8e0efb7
fixes
Nov 28, 2013
c6c9fc5
l10n
PYushchenko Nov 29, 2013
5dbe416
i18n
Nov 29, 2013
e2b67b9
fixes #2239
PYushchenko Nov 29, 2013
c116c0a
fixes, l10n
PYushchenko Nov 29, 2013
5ffa0e7
i18n forum
jkorvin Nov 29, 2013
b637ddc
i18n in master class
jkorvin Nov 29, 2013
8bcfb17
i18n
PYushchenko Nov 29, 2013
c0eb5db
i18n
Nov 29, 2013
955b99e
l10n
PYushchenko Nov 29, 2013
60e98cc
update pdf.js
PYushchenko Dec 2, 2013
b0493ab
update pdf.js
PYushchenko Dec 2, 2013
4276143
Merge branch 'select/release' of github.com:Man2Life/edx-platform int…
PYushchenko Dec 2, 2013
9b2dae7
l10n
PYushchenko Dec 2, 2013
a6b5a78
fixes 2344
PYushchenko Dec 6, 2013
35380c3
fixes 2342
PYushchenko Dec 6, 2013
47aebe1
Revert "fixes 2344"
PYushchenko Dec 9, 2013
0852047
fixes 2344
PYushchenko Dec 9, 2013
b65184d
fixes i18n
PYushchenko Dec 9, 2013
6988e47
added i18n
PYushchenko Dec 13, 2013
ab8cd31
Revert "Revert "Use XBlock handlers for handle_ajax in XModules""
PYushchenko Jan 17, 2014
0e42e6a
Merge remote-tracking branch 'upstream/release' into select/rc
PYushchenko Jan 19, 2014
e53196b
i18n
Jan 22, 2014
7f5b7c6
fixes progress
Jan 22, 2014
c4b27a3
Merge branch 'select/release' into select/rc
PYushchenko Jan 22, 2014
18c9632
Initial version
PYushchenko Dec 18, 2013
cd4fdb5
Hot fixing
PYushchenko Jan 22, 2014
7a417e9
Merge pull request #6 from smartdec/select/progress-csv
PYushchenko Jan 22, 2014
2075c49
Merge branch 'select/rc' into select/release
PYushchenko Jan 22, 2014
20747c7
fixes double header
PYushchenko Jan 23, 2014
5f6cf51
revert login.html
PYushchenko Jan 23, 2014
bf88df5
ss
PYushchenko Jan 23, 2014
bf4b5dd
fixes
PYushchenko Jan 23, 2014
584d811
added loader
PYushchenko Jan 23, 2014
bad1ebd
fixes
PYushchenko Jan 23, 2014
f71de5e
fixes
PYushchenko Jan 23, 2014
8ecd743
fixes
PYushchenko Jan 23, 2014
a472729
fixes
PYushchenko Jan 23, 2014
ae76730
fixes
PYushchenko Jan 23, 2014
11f6b7f
hot fixes
Jan 24, 2014
cdb5034
update i18n
Jan 24, 2014
a30a54d
first version
PYushchenko Jan 30, 2014
9534b08
Merge pull request #8 from smartdec/select/course_list
PYushchenko Jan 30, 2014
ae25f2c
update i18n
Jan 30, 2014
752605e
l10n
PYushchenko Jan 30, 2014
b5fe4de
l10n
PYushchenko Jan 30, 2014
4f0c2fd
fixes attempts
PYushchenko Jan 31, 2014
1bc7818
fixes destiny
PYushchenko Jan 31, 2014
5a4af53
alphabet order
PYushchenko Jan 31, 2014
401702d
l10n
Feb 7, 2014
cbd383f
fixes
Feb 7, 2014
30563b7
hot fixing
Mar 4, 2014
e6dda1c
fixes #2987
PYushchenko Mar 6, 2014
0dd8ba2
fixes #2734
Mar 9, 2014
0a1fe1f
Merge branch 'select/release' of github.com:Man2Life/edx-platform int…
PYushchenko Mar 9, 2014
f881e2f
fixes #2770
PYushchenko Mar 9, 2014
f4c67b5
fixes
Mar 14, 2014
90bacb1
refs #2996
PYushchenko Mar 14, 2014
64564f2
fixes
PYushchenko Mar 14, 2014
90f3485
fixes
PYushchenko Mar 14, 2014
d1f16bc
fixes
PYushchenko Mar 14, 2014
fb5c80b
fixes
PYushchenko Mar 14, 2014
2563145
refs and fixes #2995 #2784 #2932 #1797 #2980 #2994
PYushchenko Mar 17, 2014
8082f10
added new icon
PYushchenko Mar 17, 2014
17c61fc
fixes #3044 #2996
PYushchenko Mar 18, 2014
d730692
Merge remote-tracking branch 'upstream/release' into select/rc180314
PYushchenko Mar 18, 2014
75f668c
fixes
PYushchenko Mar 21, 2014
f5c20ed
i18n
PYushchenko Mar 21, 2014
2dbadbb
i18n
PYushchenko Mar 21, 2014
216b6a6
fixes
PYushchenko Mar 24, 2014
cab0433
Merge branch 'select/rc180314' into select/release
PYushchenko Mar 24, 2014
d2b176d
fixes
Mar 24, 2014
9bddca6
fixes #3044 #2304 #3081 #3054
PYushchenko Mar 24, 2014
34fbca7
Merge branch 'select/release' of github.com:Man2Life/edx-platform int…
PYushchenko Mar 24, 2014
75ff3ca
fixes #3043
PYushchenko Mar 24, 2014
39bb04f
fixes
PYushchenko Mar 24, 2014
cef1fd6
fixes
PYushchenko Mar 25, 2014
84d5808
fixes
PYushchenko Mar 25, 2014
5f553ee
i18n and fixes
PYushchenko Mar 25, 2014
a13b5d1
fixes and i18n
PYushchenko Mar 25, 2014
2756bcc
i18n
PYushchenko Mar 25, 2014
62b4e5c
fixes csv and i18n
PYushchenko Mar 26, 2014
e1c6dd5
i18n of dates
PYushchenko Mar 26, 2014
ba8fd6b
fixes and i18n
PYushchenko Mar 26, 2014
99851da
1
PYushchenko Mar 25, 2014
72353ec
new
PYushchenko Mar 28, 2014
327d33e
i18n, new summary page
PYushchenko Mar 28, 2014
cf80cc1
fixes #3147
PYushchenko Mar 31, 2014
a7004a9
hotfixes #3152
PYushchenko Mar 31, 2014
3ded920
Merge branch 'select/new_fullstat' into select/release
PYushchenko Mar 31, 2014
afeebb2
fixes
Mar 31, 2014
6a288a0
fixes
PYushchenko Mar 31, 2014
80ee365
Merge branch 'select/release' of https://github.com/smartdec/edx-plat…
Mar 31, 2014
04acab2
fixes
PYushchenko Apr 1, 2014
79ba339
Merge branch 'select/release' of https://github.com/smartdec/edx-plat…
Apr 1, 2014
c50d36e
fixes
PYushchenko Apr 2, 2014
73fa1db
Merge branch 'select/release' of https://github.com/smartdec/edx-plat…
Apr 2, 2014
d3cfc89
fixes
PYushchenko Apr 2, 2014
bd7a6b7
Merge branch 'select/release' of https://github.com/smartdec/edx-plat…
Apr 2, 2014
5af9a41
refs #3031
PYushchenko Apr 3, 2014
119580d
Merge branch 'select/release' of https://github.com/smartdec/edx-plat…
Apr 3, 2014
1101fef
fixes #3031
PYushchenko Apr 3, 2014
c5fa31b
Merge branch 'select/release' of https://github.com/smartdec/edx-plat…
Apr 3, 2014
4b8ef61
fixes #3031
PYushchenko Apr 3, 2014
0bc9db5
Merge branch 'select/release' of https://github.com/smartdec/edx-plat…
Apr 3, 2014
fa9331e
i18n
Apr 10, 2014
05c3e75
some staff
PYushchenko Apr 10, 2014
28153e0
i18n
PYushchenko Apr 10, 2014
2d04baa
fixes
PYushchenko Apr 10, 2014
633de41
try fix i18n
PYushchenko Apr 11, 2014
4338ba3
verstion 0.1b email sender
PYushchenko Apr 14, 2014
6013905
email sender add schema migration
PYushchenko Apr 14, 2014
6ba7a1e
Merge branch 'select/email_sender' into select/release
PYushchenko Apr 14, 2014
7652175
i18n
PYushchenko Apr 14, 2014
048d877
hotfix
PYushchenko Apr 14, 2014
3fc24a3
fixes js
PYushchenko Apr 14, 2014
11d0783
hotfixes ugettext
PYushchenko Apr 14, 2014
f5f3450
fixes model
PYushchenko Apr 14, 2014
402e380
fixes _u
PYushchenko Apr 14, 2014
fed382b
fixes
Apr 14, 2014
590de3f
Merge branch 'select/release' of https://github.com/smartdec/edx-plat…
Apr 14, 2014
67bf666
fixes email sending
PYushchenko Apr 14, 2014
98de649
Merge branch 'select/release' of https://github.com/smartdec/edx-plat…
Apr 14, 2014
ca27c2c
fixes #3275
PYushchenko Apr 15, 2014
88907d4
Merge branch 'select/release' of https://github.com/smartdec/edx-plat…
Apr 15, 2014
ecbb37d
New news fixes #3172
PYushchenko Apr 16, 2014
030925c
fixes
Apr 16, 2014
1170b19
Merge branch 'select/release' of https://github.com/smartdec/edx-plat…
Apr 16, 2014
e657757
fixes
PYushchenko Apr 16, 2014
2356c77
Merge branch 'select/release' of https://github.com/smartdec/edx-plat…
Apr 16, 2014
4e36af1
fixes
PYushchenko Apr 16, 2014
04407db
Merge branch 'select/release' of https://github.com/smartdec/edx-plat…
Apr 16, 2014
e5788c3
fixes
PYushchenko Apr 16, 2014
dc7f32c
Merge branch 'select/release' of https://github.com/smartdec/edx-plat…
Apr 16, 2014
824fc59
fixes
PYushchenko Apr 16, 2014
c276a7a
Merge branch 'select/release' of https://github.com/smartdec/edx-plat…
Apr 16, 2014
e3ad2f3
fixes
PYushchenko Apr 18, 2014
705cb03
fixes style dep
Apr 18, 2014
744babd
fixes
Apr 18, 2014
32ff414
Merge branch 'select/release' of https://github.com/smartdec/edx-plat…
Apr 18, 2014
dd2f73f
fixes
PYushchenko Apr 21, 2014
32177b4
fixes
PYushchenko Apr 21, 2014
98fdbb9
fixes
PYushchenko Apr 21, 2014
d8a8a12
refs #3262
PYushchenko Apr 22, 2014
46b4f1f
fixes and i18n
Apr 24, 2014
90032b3
Merge remote-tracking branch 'upstream/release' into select/rc23042013
PYushchenko Apr 23, 2014
efaa0b7
Merge branch 'select/rc23042013' into select/release
PYushchenko Apr 24, 2014
1f4c8d2
statistics page, filters for fullstat.csv
Apr 25, 2014
b6c718a
stat page centered (with lousy <center> tag)
Apr 25, 2014
de0661e
access to stat only if user.is_staff
Apr 29, 2014
27fcb69
account_activated filter added
Apr 29, 2014
9d85215
Merge pull request #9 from smartdec/select/integral-stat
PYushchenko Apr 29, 2014
ec57f67
issue 3172 fixed
Apr 28, 2014
f131b88
iss3343 (testing needed)
Apr 29, 2014
b92d24c
Merge pull request #10 from smartdec/iss3172
PYushchenko Apr 29, 2014
0128526
translation minor fixes
Apr 29, 2014
03ea337
Merge branch 'select/release' of https://github.com/smartdec/edx-plat…
Apr 29, 2014
94fc696
issue 3342 fixed (testing needed)
Apr 29, 2014
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion cms/djangoapps/contentstore/course_info_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def _course_info_content(html_parsed):
content = html_parsed[0].tail
else:
content = html_parsed[0].tail if html_parsed[0].tail is not None else ""
content += "\n".join([html.tostring(ele) for ele in html_parsed[1:]])
content += "\n".join([html.tostring(ele, encoding=unicode) for ele in html_parsed[1:]])
return content


Expand Down
7 changes: 6 additions & 1 deletion cms/djangoapps/contentstore/views/component.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,12 @@

log = logging.getLogger(__name__)


def _(s):
return s

# NOTE: unit_handler assumes this list is disjoint from ADVANCED_COMPONENT_TYPES
COMPONENT_TYPES = ['discussion', 'html', 'problem', 'video']
COMPONENT_TYPES = [_('discussion'), _('html'), _('problem'), _('video')]

OPEN_ENDED_COMPONENT_TYPES = ["combinedopenended", "peergrading"]
NOTE_COMPONENT_TYPES = ['notes']
Expand All @@ -58,6 +62,7 @@
'textannotation', # module for annotating text (with annotation table)
'videoannotation', # module for annotating video (with annotation table)
'word_cloud',
'master_class',
'graphical_slider_tool',
'lti',
'concept',
Expand Down
14 changes: 7 additions & 7 deletions cms/envs/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
'AUTH_USE_CERTIFICATES': False,

# email address for studio staff (eg to request course creation)
'STUDIO_REQUEST_EMAIL': '',
'STUDIO_REQUEST_EMAIL': 'edu.olimpiada@yandex.ru',

'STUDIO_NPS_SURVEY': True,

Expand All @@ -67,7 +67,7 @@

# If set to True, new Studio users won't be able to author courses unless
# edX has explicitly added them to the course creator group.
'ENABLE_CREATOR_GROUP': False,
'ENABLE_CREATOR_GROUP': True,

# whether to use password policy enforcement or not
'ENFORCE_PASSWORD_POLICY': False,
Expand Down Expand Up @@ -269,9 +269,9 @@
EMAIL_USE_TLS = False
EMAIL_HOST_USER = ''
EMAIL_HOST_PASSWORD = ''
DEFAULT_FROM_EMAIL = 'registration@example.com'
DEFAULT_FEEDBACK_EMAIL = 'feedback@example.com'
SERVER_EMAIL = 'devops@example.com'
DEFAULT_FROM_EMAIL = 'noreply.edu@olimpiada.ru'
DEFAULT_FEEDBACK_EMAIL = 'edu.olimpiada@yandex..ru'
SERVER_EMAIL = 'edu.olimpiada@yandex.ru'
ADMINS = ()
MANAGERS = ADMINS

Expand All @@ -290,8 +290,8 @@
]

# Locale/Internationalization
TIME_ZONE = 'America/New_York' # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
LANGUAGE_CODE = 'en' # http://www.i18nguy.com/unicode/language-identifiers.html
TIME_ZONE = 'Europe/Moscow' # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
LANGUAGE_CODE = 'ru' # http://www.i18nguy.com/unicode/language-identifiers.html

LANGUAGES = lms.envs.common.LANGUAGES
USE_I18N = True
Expand Down
15 changes: 9 additions & 6 deletions cms/static/js/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ domReady(function() {
$newComponentButton = $('.new-component-button');
$spinner = $('<span class="spinner-in-field-icon"></span>');

var language = "ru"; //if you have a multilanguage site you should set this varibale in the current user language

$body.on('click', '.embeddable-xml-input', function() {
$(this).select();
});
Expand Down Expand Up @@ -117,6 +119,7 @@ domReady(function() {
});

IframeUtils.iframeBinding();
$.datepicker.setDefaults( $.datepicker.regional[language] );
});

function smoothScrollLink(e) {
Expand Down Expand Up @@ -236,7 +239,7 @@ function createNewUnit(e) {
$.postJSON(ModuleUtils.getUpdateUrl(), {
'parent_locator': parent,
'category': category,
'display_name': 'New Unit'
'display_name': gettext('New Unit')
},

function(data) {
Expand All @@ -247,23 +250,23 @@ function createNewUnit(e) {

function deleteUnit(e) {
e.preventDefault();
_deleteItem($(this).parents('li.courseware-unit'), 'Unit');
_deleteItem($(this).parents('li.courseware-unit'), gettext('Unit'));
}

function deleteSubsection(e) {
e.preventDefault();
_deleteItem($(this).parents('li.courseware-subsection'), 'Subsection');
_deleteItem($(this).parents('li.courseware-subsection'), gettext('Subsection'));
}

function deleteSection(e) {
e.preventDefault();
_deleteItem($(this).parents('section.courseware-section'), 'Section');
_deleteItem($(this).parents('section.courseware-section'), gettext('Section'));
}

function _deleteItem($el, type) {
var confirm = new PromptView.Warning({
title: gettext('Delete this ' + type + '?'),
message: gettext('Deleting this ' + type + ' is permanent and cannot be undone.'),
title: interpolate(gettext('Delete this %(type)s?'), {type: type}, true),
message: interpolate(gettext('Deleting this %(type)s is permanent and cannot be undone.'), {type: type}, true),
actions: {
primary: {
text: gettext('Yes, delete this ' + type),
Expand Down
2 changes: 1 addition & 1 deletion cms/static/js/models/course_update.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ define(["backbone", "jquery", "jquery.ui"], function(Backbone, $) {
// course update -- biggest kludge here is the lack of a real id to map updates to originals
var CourseUpdate = Backbone.Model.extend({
defaults: {
"date" : $.datepicker.formatDate('MM d, yy', new Date()),
"date" : $.datepicker.formatDate('d MM, yy', new Date()),
"content" : ""
}
});
Expand Down
4 changes: 2 additions & 2 deletions cms/static/js/views/course_info_update.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ define(["js/views/baseview", "codemirror", "js/models/course_update",
}
});
this.$el.find(".new-update-form").hide();
this.$el.find('.date').datepicker({ 'dateFormat': 'MM d, yy' });
this.$el.find('.date').datepicker({ 'dateFormat': 'd MM, yy' }).datepicker('setDate', new Date());
return this;
},

Expand Down Expand Up @@ -68,7 +68,7 @@ define(["js/views/baseview", "codemirror", "js/models/course_update",
});

$('.date').datepicker('destroy');
$('.date').datepicker({ 'dateFormat': 'MM d, yy' });
$('.date').datepicker({ 'dateFormat': 'd MM, yy' }).datepicker('setDate', new Date());
},

onSave: function(event) {
Expand Down
10 changes: 5 additions & 5 deletions cms/static/js/views/settings/grading.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
define(["js/views/validation", "underscore", "jquery", "jquery.ui", "js/views/settings/grader"],
function(ValidatingView, _, $, ui, GraderView) {
define(["js/views/validation", "underscore", "jquery", "jquery.ui", "gettext", "js/views/settings/grader"],
function(ValidatingView, _, $, ui, gettext, GraderView) {

var GradingView = ValidatingView.extend({
// Model class is CMS.Models.Settings.CourseGradingPolicy
Expand Down Expand Up @@ -273,7 +273,7 @@ var GradingView = ValidatingView.extend({

// Munge existing grade labels?
// If going from Pass/Fail to 3 levels, change to Pass to A
if (gradeLength === 1 && this.descendingCutoffs[0]['designation'] === 'Pass') {
if (gradeLength === 1 && gettext(this.descendingCutoffs[0]['designation']) === gettext('Pass')) {
this.descendingCutoffs[0]['designation'] = this.GRADES[0];
this.setTopGradeLabel();
}
Expand All @@ -293,7 +293,7 @@ var GradingView = ValidatingView.extend({
domElement.remove();

if (this.descendingCutoffs.length === 1 && this.descendingCutoffs[0]['designation'] === this.GRADES[0]) {
this.descendingCutoffs[0]['designation'] = 'Pass';
this.descendingCutoffs[0]['designation'] = gettext('Pass');
this.setTopGradeLabel();
}
this.setFailLabel();
Expand All @@ -308,7 +308,7 @@ var GradingView = ValidatingView.extend({
},

failLabel: function() {
if (this.descendingCutoffs.length === 1) return 'Fail';
if (this.descendingCutoffs.length === 1) return gettext('Fail');
else return 'F';
},
setFailLabel: function() {
Expand Down
2 changes: 1 addition & 1 deletion cms/static/sass/assets/_fonts.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
// ====================

// import from google fonts - Open Sans (http://www.google.com/fonts/specimen/Open+Sans)
@import url(//fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,400,300,600,700);
@import url(//fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,400,300,600,700&subset=latin,cyrillic-ext,latin-ext,cyrillic);
8 changes: 6 additions & 2 deletions cms/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
"jquery.iframe-transport": "js/vendor/jQuery-File-Upload/js/jquery.iframe-transport",
"jquery.inputnumber": "js/vendor/html5-input-polyfills/number-polyfill",
"jquery.immediateDescendents": "coffee/src/jquery.immediateDescendents",
"jquery.datapicker-ru": "js/vendor/jquery.ui.datepicker-ru",
"datepair": "js/vendor/timepicker/datepair",
"date": "js/vendor/date",
"tzAbbr": "js/vendor/tzAbbr",
Expand Down Expand Up @@ -140,7 +141,7 @@
},
"jquery.scrollTo": {
deps: ["jquery"],
exports: "jQuery.fn.scrollTo",
exports: "jQuery.fn.scrollTo"
},
"jquery.flot": {
deps: ["jquery"],
Expand Down Expand Up @@ -227,13 +228,16 @@
"coffee/src/logger": {
exports: "Logger",
deps: ["coffee/src/ajax_prefix"]
},
"jquery.datapicker-ru" : {
deps: ["jquery.ui"]
}
},
// load jquery and gettext automatically
deps: ["jquery", "gettext"],
callback: function() {
// load other scripts on every page, after jquery loads
require(["js/base", "coffee/src/main", "coffee/src/logger", "datepair", "accessibility"]);
require(["js/base", "coffee/src/main", "coffee/src/logger", "datepair", "accessibility", "jquery.datapicker-ru"]);
// we need "datepair" because it dynamically modifies the page
// when it is loaded -- yuck!
}
Expand Down
2 changes: 1 addition & 1 deletion cms/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ <h3 class="title">${_('Create Your First Course')}</h3>


%if course_creator_status == "unrequested":
<div class="wrapper wrapper-creationrights">
<div class="wrapper wrapper-creationrights sr">
<h3 class="title">
<a href="#instruction-creationrights" class="ui-toggle-control show-creationrights"><span class="label">${_('Becoming a Course Creator in Studio')}</span> <i class="icon-remove-sign"></i></a>
</h3>
Expand Down
2 changes: 1 addition & 1 deletion cms/templates/js/course_info_update.underscore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<div class="row">
<label class="inline-label">Date:</label>
<!-- TODO replace w/ date widget and actual date (problem is that persisted version is "Month day" not an actual date obj -->
<input type="text" class="date" value="<%= updateModel.get('date') %>">
<input type="text" class="date">
</div>
<div class="row">
<textarea class="new-update-content text-editor"><%= updateModel.get('content') %></textarea>
Expand Down
Loading