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

EDX_BLND_CLI-338 Delete functionality for Library #2454

Closed
wants to merge 13 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions cms/envs/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,14 @@
# in the LMS and CMS.
# .. toggle_tickets: 'https://github.com/open-craft/edx-platform/pull/429'
'DISABLE_UNENROLLMENT': False,

# .. toggle_name: FEATURES['ENABLE_LIBRARY_DELETION']
# .. toggle_implementation: DjangoSetting
# .. toggle_default: False
# .. toggle_description: Set to True to enable deletion functionality for library mfe.
# .. toggle_use_cases: open_edx
# .. toggle_creation_date: 2022-08-31
'ENABLE_LIBRARY_DELETION': False,
}

# .. toggle_name: ENABLE_COPPA_COMPLIANCE
Expand Down
3 changes: 3 additions & 0 deletions cms/static/images/close-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions cms/static/images/external-link-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions cms/static/js/i18n/eo/djangojs.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions cms/static/js/i18n/rtl/djangojs.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions cms/static/sass/_build-v1.scss
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
@import 'elements/uploaded-assets'; // layout for asset tables
@import 'elements/creative-commons';
@import 'elements/tooltip';
@import 'elements/feature-anouncement';

// +Base - Specific Views
// ====================
Expand Down
43 changes: 43 additions & 0 deletions cms/static/sass/elements/_feature-anouncement.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
// studio - elements - announcement bar
// ====================================

.announcement-bar {
position: relative;
background: #03c7e8;
text-align: center;
color: $black;
padding: ($baseline*0.3) ($baseline*2.2);
font: 500 1.4rem/2rem $font-family-sans-serif;
}

.announcement-bar-link {
color: inherit;
text-decoration: underline;

&:hover,
&:focus {
color: inherit;
text-decoration: none;
}
}

.announcement-bar-icon {
display: inline-block;
vertical-align: middle;
}

.announcement-bar-close {
@include right(0);

position: absolute;
top: 50%;
transform: translateY(-50%);
background: transparent url('#{$static-path}/images/close-icon.svg') center;
width: ($baseline*1.2);
height: ($baseline*1.2);
border: none;

&:hover {
opacity: 0.7;
}
}
2 changes: 2 additions & 0 deletions cms/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@
<% online_help_token = self.online_help_token() if hasattr(self, 'online_help_token') else None %>
<%include file="widgets/header.html" args="online_help_token=online_help_token" />

<%include file="widgets/feature-announcement.html" />

<%
banner_messages = list(PageLevelMessages.user_messages(request))
%>
Expand Down
44 changes: 44 additions & 0 deletions cms/templates/widgets/feature-announcement.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<!-- Feature Announcement bar -->
<%page args="course=None" expression_filter="h" />
<%namespace name='static' file='../static_content.html'/>
<%! from django.utils.translation import gettext as _ %>

<div class="announcement-bar is-hidden">
<div class="announcement-bar-content">
${_("We’ve updated the library authoring experience with a fresh new look!")}
<a href="https://edx.readthedocs.io/projects/edx-partner-course-staff/en/latest/course_components/libraries.html"
class="announcement-bar-link"
target="_blank">${_("Learn more")}</a>
<img class="announcement-bar-icon" src="${static.url('images/external-link-icon.svg')}" alt="${_('External link icon')}">
</div>
<button type="button" class="announcement-bar-close">
<span class="sr-only">${_("Close")}</span>
</button>
</div>

<script>
var $announcementBar = $('.announcement-bar');
var onLearnMoreAnalyticEvent = 'Learn more about the Studio announcement bar';
var onCloseAnalyticEvent = 'Close the Studio announcement bar';

$.cookie('openedx-studio-announcement')
? $announcementBar.remove()
: $announcementBar.removeClass('is-hidden');

function closeBarAndFireAnalyticsEvent(message) {
$announcementBar.hide();
$.cookie('openedx-studio-announcement', 'false');

% if settings.CMS_SEGMENT_KEY:
window.analytics.track(message);
% endif
}

$('.announcement-bar-link').on('click', function () {
closeBarAndFireAnalyticsEvent(onLearnMoreAnalyticEvent);
});

$('.announcement-bar-close').on('click', function () {
closeBarAndFireAnalyticsEvent(onCloseAnalyticEvent);
});
</script>
2 changes: 1 addition & 1 deletion conf/locale/ar/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ msgid ""
msgstr ""
"Project-Id-Version: 0.1a\n"
"Report-Msgid-Bugs-To: [email protected]\n"
"POT-Creation-Date: 2022-07-31 20:43+0000\n"
"POT-Creation-Date: 2022-08-07 20:43+0000\n"
"PO-Revision-Date: 2019-01-20 20:43+0000\n"
"Last-Translator: NELC Open edX Translation <[email protected]>, 2020\n"
"Language-Team: Arabic (https://www.transifex.com/open-edx/teams/6205/ar/)\n"
Expand Down
2 changes: 1 addition & 1 deletion conf/locale/ar/LC_MESSAGES/djangojs.po
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ msgid ""
msgstr ""
"Project-Id-Version: edx-platform\n"
"Report-Msgid-Bugs-To: [email protected]\n"
"POT-Creation-Date: 2022-07-31 20:43+0000\n"
"POT-Creation-Date: 2022-08-07 20:42+0000\n"
"PO-Revision-Date: 2014-06-11 15:18+0000\n"
"Last-Translator: Roaa Nader <[email protected]>, 2021\n"
"Language-Team: Arabic (http://www.transifex.com/open-edx/edx-platform/language/ar/)\n"
Expand Down
2 changes: 1 addition & 1 deletion conf/locale/ca/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ msgid ""
msgstr ""
"Project-Id-Version: 0.1a\n"
"Report-Msgid-Bugs-To: [email protected]\n"
"POT-Creation-Date: 2022-07-31 20:43+0000\n"
"POT-Creation-Date: 2022-08-07 20:43+0000\n"
"PO-Revision-Date: 2019-01-20 20:43+0000\n"
"Last-Translator: Waheed Ahmed <[email protected]>, 2019\n"
"Language-Team: Catalan (https://www.transifex.com/open-edx/teams/6205/ca/)\n"
Expand Down
2 changes: 1 addition & 1 deletion conf/locale/ca/LC_MESSAGES/djangojs.po
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ msgid ""
msgstr ""
"Project-Id-Version: edx-platform\n"
"Report-Msgid-Bugs-To: [email protected]\n"
"POT-Creation-Date: 2022-07-31 20:43+0000\n"
"POT-Creation-Date: 2022-08-07 20:42+0000\n"
"PO-Revision-Date: 2014-06-11 15:18+0000\n"
"Last-Translator: Waheed Ahmed <[email protected]>, 2019\n"
"Language-Team: Catalan (http://www.transifex.com/open-edx/edx-platform/language/ca/)\n"
Expand Down
2 changes: 1 addition & 1 deletion conf/locale/de_DE/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ msgid ""
msgstr ""
"Project-Id-Version: 0.1a\n"
"Report-Msgid-Bugs-To: [email protected]\n"
"POT-Creation-Date: 2022-07-31 20:43+0000\n"
"POT-Creation-Date: 2022-08-07 20:43+0000\n"
"PO-Revision-Date: 2019-01-20 20:43+0000\n"
"Last-Translator: Stefania Trabucchi <[email protected]>, 2019\n"
"Language-Team: German (Germany) (https://www.transifex.com/open-edx/teams/6205/de_DE/)\n"
Expand Down
2 changes: 1 addition & 1 deletion conf/locale/de_DE/LC_MESSAGES/djangojs.po
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ msgid ""
msgstr ""
"Project-Id-Version: edx-platform\n"
"Report-Msgid-Bugs-To: [email protected]\n"
"POT-Creation-Date: 2022-07-31 20:43+0000\n"
"POT-Creation-Date: 2022-08-07 20:42+0000\n"
"PO-Revision-Date: 2014-06-11 15:18+0000\n"
"Last-Translator: Stefania Trabucchi <[email protected]>, 2018-2021\n"
"Language-Team: German (Germany) (http://www.transifex.com/open-edx/edx-platform/language/de_DE/)\n"
Expand Down
2 changes: 1 addition & 1 deletion conf/locale/el/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ msgid ""
msgstr ""
"Project-Id-Version: 0.1a\n"
"Report-Msgid-Bugs-To: [email protected]\n"
"POT-Creation-Date: 2022-07-31 20:43+0000\n"
"POT-Creation-Date: 2022-08-07 20:43+0000\n"
"PO-Revision-Date: 2019-01-20 20:43+0000\n"
"Last-Translator: Waheed Ahmed <[email protected]>, 2019\n"
"Language-Team: Greek (https://www.transifex.com/open-edx/teams/6205/el/)\n"
Expand Down
2 changes: 1 addition & 1 deletion conf/locale/el/LC_MESSAGES/djangojs.po
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ msgid ""
msgstr ""
"Project-Id-Version: edx-platform\n"
"Report-Msgid-Bugs-To: [email protected]\n"
"POT-Creation-Date: 2022-07-31 20:43+0000\n"
"POT-Creation-Date: 2022-08-07 20:42+0000\n"
"PO-Revision-Date: 2014-06-11 15:18+0000\n"
"Last-Translator: Ioannis Stavrakakis <[email protected]>, 2020\n"
"Language-Team: Greek (http://www.transifex.com/open-edx/edx-platform/language/el/)\n"
Expand Down
32 changes: 16 additions & 16 deletions conf/locale/en/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ msgid ""
msgstr ""
"Project-Id-Version: 0.1a\n"
"Report-Msgid-Bugs-To: [email protected]\n"
"POT-Creation-Date: 2022-08-07 20:34+0000\n"
"PO-Revision-Date: 2022-08-07 20:34:51.349689\n"
"POT-Creation-Date: 2022-08-14 20:34+0000\n"
"PO-Revision-Date: 2022-08-14 20:34:50.269446\n"
"Last-Translator: \n"
"Language-Team: openedx-translation <[email protected]>\n"
"Language: en\n"
Expand Down Expand Up @@ -7175,59 +7175,59 @@ msgstr ""
#. Translators: These messages are shown to users who do not enter information
#. into the required field or enter it incorrectly.
#: openedx/core/djangoapps/user_api/accounts/__init__.py
msgid "Enter your full name."
msgid "Enter your full name"
msgstr ""

#: openedx/core/djangoapps/user_api/accounts/__init__.py
msgid "Enter your first name."
msgid "Enter your first name"
msgstr ""

#: openedx/core/djangoapps/user_api/accounts/__init__.py
msgid "Enter your last name."
msgid "Enter your last name"
msgstr ""

#: openedx/core/djangoapps/user_api/accounts/__init__.py
msgid "The email addresses do not match."
msgid "The email addresses do not match"
msgstr ""

#: openedx/core/djangoapps/user_api/accounts/__init__.py
msgid "Enter your confirm email"
msgstr ""

#: openedx/core/djangoapps/user_api/accounts/__init__.py
msgid "Select your country or region of residence."
msgid "Select your country or region of residence"
msgstr ""

#: openedx/core/djangoapps/user_api/accounts/__init__.py
msgid "Select your profession."
msgid "Select your profession"
msgstr ""

#: openedx/core/djangoapps/user_api/accounts/__init__.py
msgid "Select your specialty."
msgid "Select your specialty"
msgstr ""

#: openedx/core/djangoapps/user_api/accounts/__init__.py
msgid "Enter your profession."
msgid "Enter your profession"
msgstr ""

#: openedx/core/djangoapps/user_api/accounts/__init__.py
msgid "Enter your specialty."
msgid "Enter your specialty"
msgstr ""

#: openedx/core/djangoapps/user_api/accounts/__init__.py
msgid "Enter your state."
msgid "Enter your state"
msgstr ""

#: openedx/core/djangoapps/user_api/accounts/__init__.py
msgid "Enter your city."
msgid "Enter your city"
msgstr ""

#: openedx/core/djangoapps/user_api/accounts/__init__.py
msgid "Tell us your goals."
msgid "Tell us your goals"
msgstr ""

#: openedx/core/djangoapps/user_api/accounts/__init__.py
msgid "Select the highest level of education you have completed."
msgid "Select the highest level of education you have completed"
msgstr ""

#: openedx/core/djangoapps/user_api/accounts/__init__.py
Expand All @@ -7239,7 +7239,7 @@ msgid "Select your gender"
msgstr ""

#: openedx/core/djangoapps/user_api/accounts/__init__.py
msgid "Enter your mailing address."
msgid "Enter your mailing address"
msgstr ""

#: openedx/core/djangoapps/user_api/accounts/__init__.py
Expand Down
8 changes: 6 additions & 2 deletions conf/locale/en/LC_MESSAGES/djangojs.po
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ msgid ""
msgstr ""
"Project-Id-Version: 0.1a\n"
"Report-Msgid-Bugs-To: [email protected]\n"
"POT-Creation-Date: 2022-08-07 20:34+0000\n"
"PO-Revision-Date: 2022-08-07 20:34:51.189580\n"
"POT-Creation-Date: 2022-08-14 20:34+0000\n"
"PO-Revision-Date: 2022-08-14 20:34:50.282559\n"
"Last-Translator: \n"
"Language-Team: openedx-translation <[email protected]>\n"
"Language: en\n"
Expand Down Expand Up @@ -7659,6 +7659,10 @@ msgstr ""
msgid "Generate Exception Certificates"
msgstr ""

#: lms/templates/instructor/instructor_dashboard_2/certificate-allowlist.underscore
msgid "Certificate exceptions group selection"
msgstr ""

#: lms/templates/instructor/instructor_dashboard_2/certificate-allowlist.underscore
msgid "All users on the Exception list who do not yet have a certificate"
msgstr ""
Expand Down
Binary file modified conf/locale/eo/LC_MESSAGES/django.mo
Binary file not shown.
Loading