def action_display(self):
action = self['<STR_LIT:action>']<EOL>annotations = []<EOL>abbr = self.bill[settings.LEVEL_FIELD]<EOL>if '<STR_LIT>' in self:<EOL><INDENT>for entity in self['<STR_LIT>']:<EOL><INDENT>name = entity['<STR_LIT:name>']<EOL>_id = entity['<STR_LIT:id>']<EOL>if _id is None:<EOL><INDENT>continue<EOL><DEDENT>url = mongoid_2_url(abbr, _id)<EOL>link = '<STR_LIT>' % (url, name)<EOL>if name in action:<EOL><INDENT>action = action.replace(entity['<STR_LIT:name>'], link)<EOL><DEDENT>else:<EOL><INDENT>annotations.append(link)<EOL><DEDENT><DEDENT>if annotations:<EOL><INDENT>action += '<STR_LIT>' % '<STR_LIT:U+002CU+0020>'.join(annotations)<EOL><DEDENT><DEDENT>return action<EOL>
The action text, with any hyperlinked related entities.