-
Notifications
You must be signed in to change notification settings - Fork 210
feat: add support for origin server and user info #2663
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
Changes from 3 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -15,6 +15,7 @@ import { | |
| import { | ||
| AccessTime, | ||
| Widgets, | ||
| PersonOutline, | ||
| } from '@openedx/paragon/icons'; | ||
| import AlertError from '@src/generic/alert-error'; | ||
| import classNames from 'classnames'; | ||
|
|
@@ -203,20 +204,36 @@ export const CreateLibrary = ({ | |
| <Card.Body> | ||
| <div className="d-flex flex-column flex-md-row justify-content-between align-items-start p-4 text-primary-700"> | ||
| <div className="flex-grow-1 mb-4 mb-md-0"> | ||
| <span className="mb-2">{restoreStatus.result.title}</span> | ||
| <span className="mb-4">{restoreStatus.result.title}</span> | ||
| <p className="small mb-0"> | ||
| {restoreStatus.result.org} / {restoreStatus.result.slug} | ||
| </p> | ||
| </div> | ||
| <div className="d-flex flex-column gap-2 align-items-md-end"> | ||
| <div className="d-flex flex-column gap-2 align-items-md-start"> | ||
| <div className="d-flex align-items-md-center gap-2"> | ||
| <Icon src={Widgets} style={{ width: '20px', height: '20px', marginRight: '8px' }} /> | ||
| <span className="x-small"> | ||
| {intl.formatMessage(messages.archiveComponentsCount, { | ||
| count: restoreStatus.result.components, | ||
| countSections: restoreStatus.result.sections, | ||
| countSubsections: restoreStatus.result.subsections, | ||
| countUnits: restoreStatus.result.units, | ||
| countComponents: restoreStatus.result.components, | ||
| })} | ||
| </span> | ||
| </div> | ||
| { | ||
| (restoreStatus.result.createdBy?.email && restoreStatus.result.createdOnServer) && ( | ||
| <div className="d-flex align-items-md-center gap-2"> | ||
| <Icon src={PersonOutline} style={{ width: '20px', height: '20px', marginRight: '8px' }} /> | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. instead of inline styling for margin can we use bootstrap classes? like: 'mr-2'
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done. Thanks |
||
| <span className="x-small"> | ||
| {intl.formatMessage(messages.archiveRestoredCreatedBy, { | ||
| createdBy: restoreStatus.result.createdBy?.email, | ||
| server: restoreStatus.result.createdOnServer, | ||
| })} | ||
| </span> | ||
| </div> | ||
| ) | ||
| } | ||
| <div className="d-flex align-items-md-center gap-2"> | ||
| <Icon src={AccessTime} style={{ width: '20px', height: '20px', marginRight: '8px' }} /> | ||
| <span className="x-small"> | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.