show predicate in links in parents/concepts portlet
git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@4053 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
parent
52f322d7f1
commit
f450f04636
3 changed files with 10 additions and 4 deletions
|
@ -186,6 +186,12 @@ class BaseRelationView(BaseView):
|
|||
def order(self):
|
||||
return self.relation.order
|
||||
|
||||
@Lazy
|
||||
def relationInfo(self):
|
||||
if self.predicate == self.defaultPredicate:
|
||||
return u''
|
||||
return self.predicateTitle
|
||||
|
||||
|
||||
class ConceptView(BaseView):
|
||||
|
||||
|
|
|
@ -238,8 +238,8 @@
|
|||
<metal:actions define-macro="parents">
|
||||
<div tal:repeat="concept
|
||||
macro/info/view/parentsForPortlet|macro/info/parentsForPortlet">
|
||||
<a href="#"
|
||||
tal:attributes="href python: view.getUrlForTarget(concept)">
|
||||
<a tal:attributes="href python: view.getUrlForTarget(concept);
|
||||
title concept/relationInfo">
|
||||
<span i18n:translate=""
|
||||
tal:content="concept/title">Concept</span>
|
||||
(<i tal:content="concept/typeTitle"
|
||||
|
|
|
@ -115,8 +115,8 @@
|
|||
|
||||
<metal:actions define-macro="related">
|
||||
<div tal:repeat="concept macro/info/relatedConcepts">
|
||||
<a href="#"
|
||||
tal:attributes="href python: view.getUrlForTarget(concept)">
|
||||
<a tal:attributes="href python: view.getUrlForTarget(concept);
|
||||
title concept/relationInfo">
|
||||
<span i18n:translate="" tal:content="concept/title">Concept</span>
|
||||
(<i i18n:translate="" tal:content="concept/typeTitle">Type</i>)
|
||||
</a>
|
||||
|
|
Loading…
Add table
Reference in a new issue