Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Add CAS-icon to the control-panel.

git-svn-id: https://svn.plone.org/svn/collective/collective.castle/trunk@123395 db7f04ef-aaf3-0310-a811-c281ed44c4ad
  • Loading branch information...
commit e1e03d30e53dcec92a87a4045b70b1455be93896 1 parent 8cfb218
Wouter Vanden Hove authored August 12, 2010
2  CHANGES.txt
@@ -4,6 +4,8 @@ Changelog
4 4
 1.3 (unreleased)
5 5
 ----------------
6 6
 
  7
+- Add CAS-icon to the control-panel. [WouterVH]
  8
+
7 9
 - Cleanup package-docs according to current conventions. [WouterVH]
8 10
 
9 11
 - Add CHANGES.txt [WouterVH]
BIN  src/collective/castle/cas_icon.png
6  src/collective/castle/configure.zcml
@@ -9,6 +9,10 @@
9 9
 
10 10
     <five:registerPackage package="." initialize=".initialize" />
11 11
 
  12
+    <!-- Include configuration for dependencies listed in setup.py -->
  13
+    <includeDependencies package="." />
  14
+
  15
+
12 16
     <gs:registerProfile
13 17
         name="default"
14 18
         title="Collective Castle (UI for CAS)"
@@ -55,4 +59,6 @@
55 59
         addview=".portlet.AddForm"
56 60
         />
57 61
 
  62
+    <browser:resource name="cas_icon.png" image="cas_icon.png" />
  63
+
58 64
 </configure>
13  src/collective/castle/profiles/default/actionicons.xml
... ...
@@ -0,0 +1,13 @@
  1
+<?xml version="1.0"?>
  2
+<action-icons xmlns:i18n="http://xml.zope.org/namespaces/i18n"
  3
+              i18n:domain="collective.castle">
  4
+
  5
+  <action-icon category="controlpanel"
  6
+               action_id="cas"
  7
+               title="CAS Configuration"
  8
+               priority="0"
  9
+               icon_expr="++resource++cas_icon.png"
  10
+               i18n:attributes="title" />
  11
+
  12
+</action-icons>
  13
+
23  src/collective/castle/profiles/default/controlpanel.xml
@@ -2,10 +2,19 @@
2 2
 <object xmlns:i18n="http://xml.zope.org/namespaces/i18n"
3 3
         i18n:domain="plone"
4 4
         name="portal_controlpanel">
5  
-    <configlet title="CAS Configuration" action_id="cas" appId="Plone"
6  
-        category="Products" condition_expr=""
7  
-        url_expr="string:${portal_url}/@@cas_control_panel" visible="True"
8  
-        i18n:attributes="title">
9  
-        <permission>Manage portal</permission>
10  
-    </configlet>
11  
-</object>
  5
+
  6
+  <configlet
  7
+    title="CAS Configuration"
  8
+    action_id="cas"
  9
+    appId="Plone"
  10
+    category="Products"
  11
+    condition_expr=""
  12
+    url_expr="string:${portal_url}/@@cas_control_panel"
  13
+    visible="True"
  14
+    i18n:attributes="title">
  15
+
  16
+      <permission>Manage portal</permission>
  17
+
  18
+  </configlet>
  19
+
  20
+</object>

0 notes on commit e1e03d3

Please sign in to comment.
Something went wrong with that request. Please try again.