Fixed self-service links.

In self-service mode the user's association facets have been modified
such that the entries are not linked since the only available entity
is the user entity.

A 'link' parameter has been added to IPA.association_facet and
IPA.column to control whether to link the entries. The link_handler()
method can be used to define how to handle the link.

Ticket #1072
This commit is contained in:
Endi S. Dewata
2011-06-13 23:18:57 -05:00
committed by Adam Young
parent 724dd99744
commit d6343f4bb0
14 changed files with 99 additions and 178 deletions

View File

@@ -26,6 +26,11 @@
IPA.entity_factories.user = function() {
var link = true;
if (IPA.nav && IPA.nav.name == 'self-service') {
link = false;
}
var builder = IPA.entity_builder();
builder.
@@ -90,17 +95,22 @@ IPA.entity_factories.user = function() {
}]}).
association_facet({
name: 'memberof_group',
associator: IPA.serial_associator
associator: IPA.serial_associator,
link: link
}).
association_facet({
name: 'memberof_netgroup',
associator: IPA.serial_associator
associator: IPA.serial_associator,
link: link
}).
association_facet({
name: 'memberof_role',
associator: IPA.serial_associator
associator: IPA.serial_associator,
link: link
}).
standard_association_facets({
link: link
}).
standard_association_facets().
adder_dialog({
fields: ['uid', 'givenname', 'sn']
});
@@ -108,9 +118,6 @@ IPA.entity_factories.user = function() {
return builder.build();
};
/* ATTRIBUTE CALLBACKS */
IPA.user_status_widget = function(spec) {
spec = spec || {};