diff --git a/src/components/Instances/InstanceDetail/InstanceInfoTable.js b/src/components/Instances/InstanceDetail/InstanceInfoTable.js index 5babe309c..8409a89d6 100644 --- a/src/components/Instances/InstanceDetail/InstanceInfoTable.js +++ b/src/components/Instances/InstanceDetail/InstanceInfoTable.js @@ -6,6 +6,7 @@ import { Table } from 'react-bootstrap'; import Box from '../../widgets/Box'; import Markdown from '../../widgets/Markdown'; import { getLocalizedDescription } from '../../../helpers/localizedData'; +import UsersNameContainer from '../../../containers/UsersNameContainer'; const getDescription = (localizedTexts, locale) => { const description = getLocalizedDescription({ localizedTexts }, locale); @@ -27,6 +28,7 @@ const InstanceInfoTable = ({ hasValidLicence, isOpen, isAllowed, + adminId, rootGroup: { localizedTexts }, }, locale, @@ -40,7 +42,16 @@ const InstanceInfoTable = ({ noPadding unlimitedHeight> - + + + + + +
+ : + + +
@@ -52,8 +63,9 @@ InstanceInfoTable.propTypes = { hasValidLicence: PropTypes.bool.isRequired, isOpen: PropTypes.bool.isRequired, isAllowed: PropTypes.bool.isRequired, + adminId: PropTypes.string.isRequired, rootGroup: PropTypes.shape({ - localizedTexts: PropTypes.object.isRequired, + localizedTexts: PropTypes.array.isRequired, }), }), locale: PropTypes.string.isRequired, diff --git a/src/components/Instances/InstancesTable/InstancesTable.js b/src/components/Instances/InstancesTable/InstancesTable.js index cb49cbf4b..2f03d2ca0 100644 --- a/src/components/Instances/InstancesTable/InstancesTable.js +++ b/src/components/Instances/InstancesTable/InstancesTable.js @@ -26,13 +26,13 @@ const InstancesTable = ({ instances, links: { INSTANCE_URI_FACTORY }, intl }) => {instances .sort((a, b) => a.name.localeCompare(b.name, intl.locale)) - .map(({ id, name, admin, hasValidLicence }) => ( + .map(({ id, name, adminId, hasValidLicence }) => ( {name} - + diff --git a/src/locales/cs.json b/src/locales/cs.json index bf63ba93b..bdd2f551d 100644 --- a/src/locales/cs.json +++ b/src/locales/cs.json @@ -801,13 +801,15 @@ "app.homepage.whereToReportBugs": "Kde mohu nahlásit chyby?", "app.homepage.whereToReportBugsText": "Každé softwarové dílo obsahuje chyby a my jsme si toho vědomi. Čas od času můžete narazit na chybu, kterou nám nikdo před Vámi nereportoval a která dosud nebyla vyřešena. Hlašte nám prosím všechny chyby do issue trackeru na GitHubu - stačí založit novou issue a dát jí tag 'bug'. Budeme se snažit chybu prošetřit a vyřešit a nasadit opravu co nejdříve bude možné.", "app.instance.description": "Přehled instance", - "app.instance.detailTitle": "Popis instance", - "app.instance.edit": "Úprava instance", + "app.instance.edit": "Upravit instanci", "app.instance.groups.noGroups": "Žádné skupiny v této instanci pro vás nejsou viditelné.", "app.instance.groupsTitle": "Hierarchie skupin", "app.instance.hasValidLicence": "{name} má platnou licenci:", "app.instance.licencesTitle": "Licence", "app.instance.title": "Instance", + "app.instanceDetail.admin": "Admin instance", + "app.instanceDetail.description": "Popis instance", + "app.instanceDetail.noDescription": "Instance nemá žádný popis v žádném jazyce.", "app.instances.description": "Správa všech instancí", "app.instances.listTitle": "Seznam instancí", "app.instances.title": "Instance", @@ -1193,7 +1195,7 @@ "app.submitSolution.validating": "Předběžná kontrola nahraných souborů...", "app.sudebar.menu.admin.title": "Administrátor", "app.supplementaryFiles.deleteConfirm": "Opravdu si přejete tento soubor smazat? Tato operace nemůže být vrácena.", - "app.supplementaryFilesTable.description": "Soubory úlohy jsou soubory, které mohou být použity v nastavení úlohy (jako vstupní soubory, vzorové výstupní soubory, přídavné soubory pro kompilaci, vlastní sudí, ...).", + "app.supplementaryFilesTable.description": "Soubory úlohy jsou soubory, které mohou být použity v nastavení úlohy (jako vstupní soubory, vzorové výstupní soubory, přídavné soubory pro kompilaci, vlastní sudí, ...).", "app.supplementaryFilesTable.title": "Soubory úlohy", "app.tabbedArrayField.empty": "Nyní zde nejsou žádné záložky.", "app.tabbedArrayField.reallyRemoveQuestion": "Opravdu chcete tuto záložku odstranit?", diff --git a/src/locales/en.json b/src/locales/en.json index 9e7cff041..13fe22e79 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -801,13 +801,15 @@ "app.homepage.whereToReportBugs": "Where can I report bugs?", "app.homepage.whereToReportBugsText": "Every software contains bugs and we are well avare of this fact. From time to time you might find a bug that nobody else has reported and which has not been fixed yet. Please report all bugs to our issue tracker on GitHub - just file a new issue and give it a label 'bug'. We will try to investigate and release a bugfix as soon as possible.", "app.instance.description": "Instance overview", - "app.instance.detailTitle": "Instance Description", "app.instance.edit": "Edit instance", "app.instance.groups.noGroups": "There are no groups in this ReCodEx instance currently visible to you", "app.instance.groupsTitle": "Groups Hierarchy", "app.instance.hasValidLicence": "{name} has a valid licence:", "app.instance.licencesTitle": "Licences", "app.instance.title": "Instance", + "app.instanceDetail.admin": "Instance Admin", + "app.instanceDetail.description": "Instance Description", + "app.instanceDetail.noDescription": "The instance has no description in any language.", "app.instances.description": "Management of all instances", "app.instances.listTitle": "List of instances", "app.instances.title": "Instances", diff --git a/src/locales/whitelist_en.json b/src/locales/whitelist_en.json index 987d62863..f3ddf90bd 100644 --- a/src/locales/whitelist_en.json +++ b/src/locales/whitelist_en.json @@ -801,13 +801,15 @@ "app.homepage.whereToReportBugs", "app.homepage.whereToReportBugsText", "app.instance.description", - "app.instance.detailTitle", "app.instance.edit", "app.instance.groups.noGroups", "app.instance.groupsTitle", "app.instance.hasValidLicence", "app.instance.licencesTitle", "app.instance.title", + "app.instanceDetail.admin", + "app.instanceDetail.description", + "app.instanceDetail.noDescription", "app.instances.description", "app.instances.listTitle", "app.instances.title", diff --git a/src/pages/Instance/Instance.js b/src/pages/Instance/Instance.js index 776fff6f1..c09dab413 100644 --- a/src/pages/Instance/Instance.js +++ b/src/pages/Instance/Instance.js @@ -9,7 +9,6 @@ import { LinkContainer } from 'react-router-bootstrap'; import { defaultMemoize } from 'reselect'; import Box from '../../components/widgets/Box'; -import Markdown from '../../components/widgets/Markdown'; import GroupTree from '../../components/Groups/GroupTree'; import Button from '../../components/widgets/FlatButton'; import Page from '../../components/layout/Page'; @@ -83,8 +82,8 @@ class Instance extends Component { ]}> {data => (
- {/* TODO: not editable right now due differences in api and web-app - {isSuperAdmin && ( + {/* TODO: not editable right now due differences in api and web-app */} + {false && isSuperAdmin && (

@@ -97,7 +96,7 @@ class Instance extends Component {

- )} */} + )}