Index: main/waeup.sirp/trunk/src/waeup/sirp/browser/viewlets.py
===================================================================
--- main/waeup.sirp/trunk/src/waeup/sirp/browser/viewlets.py	(revision 6384)
+++ main/waeup.sirp/trunk/src/waeup/sirp/browser/viewlets.py	(revision 6396)
@@ -207,15 +207,45 @@
     grok.order(5)
     grok.require('waeup.manageUniversity')
-
+    icon = 'actionicon_modify.png' # File must exist in static/
     title = 'Text of link'
+
     @property
     def url(self):
-        return 'URL to link to'
-    
+        return '@@index'
+
+    @property
+    def icon_url(self):
+        """Get the icon URL.
+        """
+        if self.icon:
+            static = self.view.static
+            if static is None or static.get(self.icon, None) is None:
+                # In derived classes defined in other modules/packages
+                # than w.s.browser, ``static`` might refer to a static dir
+                # local to the derived class' module. As we often like to
+                # get the icons from here
+                # (i.e. waeup.sirp.browser/static), we set the directory
+                # resource appropiately.
+                #
+                # XXX: The hardcoding of 'w.s.browser' should be replaced
+                #      by something smarter.
+                #
+                # TODO: notes in here should go to general documentation.
+                static = queryAdapter(
+                    self.request, Interface, name='waeup.sirp.browser')
+            return static[self.icon]()
+        return
+    
+    # Render link only if url is provided.
     def render(self):
-        return u'<div class="portlet"><a href="%s">%s</a></div>' % (
-            self.url, self.title)
-
-
+        if self.url:
+            if self.icon_url:
+                return u'<div class="portlet"><a href="%s"><img src="%s" /> %s </a></div>' % (
+                    self.url, self.icon_url, self.title)
+            else:
+                return u'<div class="portlet"><a href="%s">%s </a></div>' % (
+                    self.url, self.title)
+        else:
+            return ''
             
 #
