CCM NG: Show name of pages instance in the table of pages instances in the Content Center (#2748)
git-svn-id: https://svn.libreccm.org/ccm/ccm_ng@5184 8810af33-2d31-482b-a856-94f89814c4dfpull/2/head
parent
4140959f00
commit
adc24075b6
|
|
@ -119,8 +119,9 @@ class PagesPane extends CMSContainer {
|
||||||
private class PagesTable extends Table {
|
private class PagesTable extends Table {
|
||||||
|
|
||||||
public static final int COL_SITE = 0;
|
public static final int COL_SITE = 0;
|
||||||
public static final int COL_EDIT = 1;
|
public static final int COL_PAGES_INSTANCE = 1;
|
||||||
public static final int COL_DELETE = 2;
|
public static final int COL_EDIT = 2;
|
||||||
|
public static final int COL_DELETE = 3;
|
||||||
|
|
||||||
public PagesTable() {
|
public PagesTable() {
|
||||||
|
|
||||||
|
|
@ -134,6 +135,12 @@ class PagesPane extends CMSContainer {
|
||||||
new Label(new GlobalizedMessage(
|
new Label(new GlobalizedMessage(
|
||||||
"cms.ui.contentcenter.pagestable.columns.site.header",
|
"cms.ui.contentcenter.pagestable.columns.site.header",
|
||||||
CmsConstants.CMS_BUNDLE))));
|
CmsConstants.CMS_BUNDLE))));
|
||||||
|
columnModel
|
||||||
|
.add(new TableColumn(
|
||||||
|
COL_SITE,
|
||||||
|
new Label(new GlobalizedMessage(
|
||||||
|
"cms.ui.contentcenter.pagestable.columns.pages_instance.header",
|
||||||
|
CmsConstants.CMS_BUNDLE))));
|
||||||
columnModel
|
columnModel
|
||||||
.add(new TableColumn(
|
.add(new TableColumn(
|
||||||
COL_EDIT,
|
COL_EDIT,
|
||||||
|
|
@ -174,7 +181,24 @@ class PagesPane extends CMSContainer {
|
||||||
return new Text(pages.getSite().getDomainOfSite());
|
return new Text(pages.getSite().getDomainOfSite());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
columnModel
|
||||||
|
.get(COL_PAGES_INSTANCE)
|
||||||
|
.setCellRenderer(new TableCellRenderer() {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Component getComponent(final Table table,
|
||||||
|
final PageState state,
|
||||||
|
final Object value,
|
||||||
|
final boolean isSelected,
|
||||||
|
final Object key,
|
||||||
|
final int row,
|
||||||
|
final int column) {
|
||||||
|
|
||||||
|
final Pages pages = (Pages) value;
|
||||||
|
return new Text(pages.getPrimaryUrl());
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
columnModel
|
columnModel
|
||||||
|
|
@ -348,6 +372,8 @@ class PagesPane extends CMSContainer {
|
||||||
switch (columnIndex) {
|
switch (columnIndex) {
|
||||||
case PagesTable.COL_SITE:
|
case PagesTable.COL_SITE:
|
||||||
return current;
|
return current;
|
||||||
|
case PagesTable.COL_PAGES_INSTANCE:
|
||||||
|
return current;
|
||||||
case PagesTable.COL_EDIT:
|
case PagesTable.COL_EDIT:
|
||||||
return new Label(new GlobalizedMessage(
|
return new Label(new GlobalizedMessage(
|
||||||
"cms.ui.contentcenter.pages.edit.label",
|
"cms.ui.contentcenter.pages.edit.label",
|
||||||
|
|
|
||||||
|
|
@ -505,3 +505,4 @@ cms.ui.pages.pagemodels.save=Save
|
||||||
cms.ui.pages.pagemodels.cancel=Cancel
|
cms.ui.pages.pagemodels.cancel=Cancel
|
||||||
cms.ui.cateogry.is_visible=Is visible?
|
cms.ui.cateogry.is_visible=Is visible?
|
||||||
cms.ui.category.cantmoved=This category can't be moved.
|
cms.ui.category.cantmoved=This category can't be moved.
|
||||||
|
cms.ui.contentcenter.pagestable.columns.pages_instance.header=Pages Instance
|
||||||
|
|
|
||||||
|
|
@ -502,3 +502,4 @@ cms.ui.pages.pagemodels.save=Speichern
|
||||||
cms.ui.pages.pagemodels.cancel=Abbrechen
|
cms.ui.pages.pagemodels.cancel=Abbrechen
|
||||||
cms.ui.cateogry.is_visible=Sichtbar?
|
cms.ui.cateogry.is_visible=Sichtbar?
|
||||||
cms.ui.category.cantmoved=Diese Kategorie kann nicht verschoben werden.
|
cms.ui.category.cantmoved=Diese Kategorie kann nicht verschoben werden.
|
||||||
|
cms.ui.contentcenter.pagestable.columns.pages_instance.header=Pages Instanz
|
||||||
|
|
|
||||||
|
|
@ -462,3 +462,4 @@ cms.ui.pages.pagemodels.cancel=Cancel
|
||||||
cms.ui.cateogry.is_visible=Is visible?
|
cms.ui.cateogry.is_visible=Is visible?
|
||||||
cms.ui.category.cantmoved=This category can't be moved.
|
cms.ui.category.cantmoved=This category can't be moved.
|
||||||
cms.ui.category.localization_none=No localization available
|
cms.ui.category.localization_none=No localization available
|
||||||
|
cms.ui.contentcenter.pagestable.columns.pages_instance.header=Pages Instance
|
||||||
|
|
|
||||||
2
pom.xml
2
pom.xml
|
|
@ -253,7 +253,7 @@
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>de.jpdigital</groupId>
|
<groupId>de.jpdigital</groupId>
|
||||||
<artifactId>hibernate50-ddl-maven-plugin</artifactId>
|
<artifactId>hibernate50-ddl-maven-plugin</artifactId>
|
||||||
<version>2.0.4</version>
|
<version>2.1.0</version>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.jacoco</groupId>
|
<groupId>org.jacoco</groupId>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue