File tree Expand file tree Collapse file tree 3 files changed +13
-4
lines changed
Expand file tree Collapse file tree 3 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ class IdColumn(Column):
1414 weight = 10
1515
1616 def renderCell (self , item ):
17- return str (item .get ("id" ))
17+ return "<span id='{0}'>{0}</span>" . format ( str (item .get ("id" ) ))
1818
1919
2020def external_session_link (session , title = None ):
Original file line number Diff line number Diff line change 1616 <tbody >
1717 <tr >
1818 <td class =" table_widget_label" ><label i18n : translate =" " >Session ID</label ></td >
19- <td class =" table_widget_value" tal : content =" python: view.session['id']" >25452 - College</td >
19+ <td class =" table_widget_value" >
20+ <a href =" #" target =" _blank"
21+ tal : content =" python: view.session['id']"
22+ tal : attributes =" href python:'{}#{}'.format(view.session_listing_url, view.session['id'])" >25452 - College</a ></td >
2023 </tr >
2124
2225 <tr >
3437 </td >
3538 </tr >
3639
37- <tr >
40+ <tr tal : condition = " python:view.display_seal " >
3841 <td class =" table_widget_label" ><label i18n : translate =" " >Sealed</label ></td >
3942 <td class =" table_widget_value"
4043 tal : content =" python:'Yes' if view.session['seal'] else 'No'"
5558 i18n : translate =" " >url
5659 </td >
5760 </tr >
58- <tr >
61+ <tr tal : condition = " python:view.display_signers " >
5962 <td class =" table_widget_label" ><label i18n : translate =" " >Signers</label ></td >
6063 <td class =" table_widget_value" >
6164 <table id =" context_viewlet_signers_table" class =" no-border no-style-table"
Original file line number Diff line number Diff line change @@ -203,6 +203,8 @@ class ItemSessionInfoViewlet(ViewletBase):
203203 """Show selected session info for an item."""
204204
205205 index = ViewPageTemplateFile ("templates/faceted_session_info.pt" )
206+ display_seal = True
207+ display_signers = True
206208
207209 def available (self ):
208210 """Global availability of the viewlet."""
@@ -224,6 +226,10 @@ def session(self):
224226 return session
225227 return {}
226228
229+ @property
230+ def session_listing_url (self ):
231+ return api .portal .get ().absolute_url () + "/@@esign-sessions-listing"
232+
227233 def ext_session_link (self , session ):
228234 return external_session_link (session )
229235# TODO clean up css
You can’t perform that action at this time.
0 commit comments