From e7a008a44ed8051b07a0403f762004309390becf Mon Sep 17 00:00:00 2001 From: dev_amdtel Date: Thu, 7 Aug 2014 23:54:42 +0400 Subject: [PATCH] Account Home Organization module fix --- .../App_Data/ModulesData.config | 3 ++- .../Default/Icons/exchange_contacts_48.png | Bin 0 -> 652 bytes .../Default/Icons/exchange_dlists_48.png | Bin 0 -> 652 bytes .../Default/Icons/organization_home_48.png | Bin 0 -> 299 bytes .../App_Themes/Default/Icons/spacehome_48.png | Bin 0 -> 299 bytes .../App_Themes/Default/Styles/Skin.css | 3 ++- .../App_LocalResources/UserOrganization.ascx.resx | 6 +++--- .../App_LocalResources/UserSpaces.ascx.resx | 3 +++ .../UserControls/OrganizationMenuControl.cs | 9 +++++---- .../WebsitePanel/UserOrganization.ascx | 11 +++++++++++ .../WebsitePanel/UserOrganization.ascx.cs | 13 +++++++++++++ .../DesktopModules/WebsitePanel/UserSpaces.ascx | 7 +++---- .../WebsitePanel.WebPortal.csproj | 4 ++++ 13 files changed, 46 insertions(+), 13 deletions(-) create mode 100644 WebsitePanel/Sources/WebsitePanel.WebPortal/App_Themes/Default/Icons/exchange_contacts_48.png create mode 100644 WebsitePanel/Sources/WebsitePanel.WebPortal/App_Themes/Default/Icons/exchange_dlists_48.png create mode 100644 WebsitePanel/Sources/WebsitePanel.WebPortal/App_Themes/Default/Icons/organization_home_48.png create mode 100644 WebsitePanel/Sources/WebsitePanel.WebPortal/App_Themes/Default/Icons/spacehome_48.png diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/App_Data/ModulesData.config b/WebsitePanel/Sources/WebsitePanel.WebPortal/App_Data/ModulesData.config index 83a6b0f3..cc4e32b6 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/App_Data/ModulesData.config +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/App_Data/ModulesData.config @@ -89,7 +89,8 @@ - + + diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/App_Themes/Default/Icons/exchange_contacts_48.png b/WebsitePanel/Sources/WebsitePanel.WebPortal/App_Themes/Default/Icons/exchange_contacts_48.png new file mode 100644 index 0000000000000000000000000000000000000000..931287bc3a94c59eaf13b0383c5719fca63cb439 GIT binary patch literal 652 zcmV;70(1R|P)Px#1ZP1_K>z@;j|==^1poj532;bRa{vGi!vFvd!vV){sAK>D0wGC6K~!i%?U+9= z1VI?a&!0k}P$(1%g@lCo6FvZmLZKj0C=^N(g;F8m0}zEm=>sSfN(Bjtl0-qGP?C^{ zC`c4Mzub&$#=6^Gb9Z|&Px8x*_a^Rr=AFHnokCDhP*6}%J*&yIl~l7B5bp-BYA~%Y zb&4U;D@IJ)FEBAKPJ~xwHP9+ZZdCLMk|gmq@tbODU{;XiplQ2BT2;hAQhj=0On6tL zY3o*XZy@P2z!LbYcm}$P-9)-Hc#*rFv%oVD7cWIw<*@<}f(`Fjc-yDknTfJ5R>ZD& zG_g36R^UL`vEJl<3A~9pf!M@a1UvDyh#Q~8z=q)eRK>uyVCOwGf8PssXUw=`p_BnC zH!0X8k3>}ru%0myjj?VKZ8Q!fMb+H+xuA0M;#J&wo zlG%yGQW?m)kv*9Iel4oWYMcnw@8Gu7!p99R0 zJj*Cfnq%pux^s4ZtxGzde8Uu+H-Um{M)98A!TT(Y-so3==x6D~! z33=DQc_%&-_V|!1rG4Y!pk{B|dQ2aZylK_+Vym3&O&u3rTz=U;EgKxF>BUx7kv!F! m799kFf`WpAf`YzPD0~4Slxz=DUknle0000Px#1ZP1_K>z@;j|==^1poj532;bRa{vGi!vFvd!vV){sAK>D0wGC6K~!i%?U+9= z1VI?a&!0k}P$(1%g@lCo6FvZmLZKj0C=^N(g;F8m0}zEm=>sSfN(Bjtl0-qGP?C^{ zC`c4Mzub&$#=6^Gb9Z|&Px8x*_a^Rr=AFHnokCDhP*6}%J*&yIl~l7B5bp-BYA~%Y zb&4U;D@IJ)FEBAKPJ~xwHP9+ZZdCLMk|gmq@tbODU{;XiplQ2BT2;hAQhj=0On6tL zY3o*XZy@P2z!LbYcm}$P-9)-Hc#*rFv%oVD7cWIw<*@<}f(`Fjc-yDknTfJ5R>ZD& zG_g36R^UL`vEJl<3A~9pf!M@a1UvDyh#Q~8z=q)eRK>uyVCOwGf8PssXUw=`p_BnC zH!0X8k3>}ru%0myjj?VKZ8Q!fMb+H+xuA0M;#J&wo zlG%yGQW?m)kv*9Iel4oWYMcnw@8Gu7!p99R0 zJj*Cfnq%pux^s4ZtxGzde8Uu+H-Um{M)98A!TT(Y-so3==x6D~! z33=DQc_%&-_V|!1rG4Y!pk{B|dQ2aZylK_+Vym3&O&u3rTz=U;EgKxF>BUx7kv!F! m799kFf`WpAf`YzPD0~4Slxz=DUknle0000~)nf{RXkb;1l^kas+2V6Z3lW&O5IU=}f@&mTF zTz*Y6el(kC-g8{MrB;7uyefPDvMK8`fqIu&w!Cuw*^{-{E;p_J-{!WQoM%Vg7X`}4 z2bgU=u-ECCicGoO+qyHVR}|hnR%te2;y)TaJ1O9c;Kt}*?p+K_910B%g0tjjiuPHn z&6`=zwL|jR?!32Vw*)z^Ic&e`@YtRGKoV20=Nz-`0pD*i`*x`}vN5s~)nf{RXkb;1l^kas+2V6Z3lW&O5IU=}f@&mTF zTz*Y6el(kC-g8{MrB;7uyefPDvMK8`fqIu&w!Cuw*^{-{E;p_J-{!WQoM%Vg7X`}4 z2bgU=u-ECCicGoO+qyHVR}|hnR%te2;y)TaJ1O9c;Kt}*?p+K_910B%g0tjjiuPHn z&6`=zwL|jR?!32Vw*)z^Ic&e`@YtRGKoV20=Nz-`0pD*i`*x`}vN5sBlackBerry Users - Contacts + Exchange Contacts CRM 2013 @@ -166,7 +166,7 @@ Disclaimers - Distribution Lists + Exchange Distribution Lists Domains @@ -217,7 +217,7 @@ Organization - Organization Home + Orginization Statistics Public Folders diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/App_LocalResources/UserSpaces.ascx.resx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/App_LocalResources/UserSpaces.ascx.resx index 02874ca9..8e396d55 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/App_LocalResources/UserSpaces.ascx.resx +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/App_LocalResources/UserSpaces.ascx.resx @@ -159,4 +159,7 @@ Web & Applications + + Space Statistics + \ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserControls/OrganizationMenuControl.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserControls/OrganizationMenuControl.cs index f56b0e70..5d01bb2a 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserControls/OrganizationMenuControl.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserControls/OrganizationMenuControl.cs @@ -74,6 +74,7 @@ namespace WebsitePanel.Portal.UserControls public void BindMenu(MenuItemCollection items) { + //Organization menu group; if (Cntx.Groups.ContainsKey(ResourceGroups.HostedOrganizations)) PrepareOrganizationMenuRoot(items); @@ -193,13 +194,13 @@ namespace WebsitePanel.Portal.UserControls if (Utils.CheckQouta(Quotas.EXCHANGE2007_MAILBOXES, Cntx)) exchangeItems.Add(CreateMenuItem("Mailboxes", "mailboxes", @"Icons/mailboxes_48.png")); - if (ShortMenu) return; - if (Utils.CheckQouta(Quotas.EXCHANGE2007_CONTACTS, Cntx)) - exchangeItems.Add(CreateMenuItem("Contacts", "contacts")); + exchangeItems.Add(CreateMenuItem("Contacts", "contacts", @"Icons/exchange_contacts_48.png")); if (Utils.CheckQouta(Quotas.EXCHANGE2007_DISTRIBUTIONLISTS, Cntx)) - exchangeItems.Add(CreateMenuItem("DistributionLists", "dlists")); + exchangeItems.Add(CreateMenuItem("DistributionLists", "dlists", @"Icons/exchange_dlists_48.png")); + + if (ShortMenu) return; if (Utils.CheckQouta(Quotas.EXCHANGE2007_PUBLICFOLDERS, Cntx)) exchangeItems.Add(CreateMenuItem("PublicFolders", "public_folders")); diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserOrganization.ascx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserOrganization.ascx index 77a76bef..8ade5af5 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserOrganization.ascx +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserOrganization.ascx @@ -15,6 +15,17 @@
<%# Eval("Text") %> + +
    + + +
  • <%# Eval("Text") %>
  • +
    +
    +
+
+ diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserOrganization.ascx.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserOrganization.ascx.cs index aa753946..4a72bd03 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserOrganization.ascx.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserOrganization.ascx.cs @@ -110,6 +110,8 @@ namespace WebsitePanel.Portal { MenuItemCollection items = new MenuItemCollection(); + items.Add(CreateMenuItem("OrganizationHome", "organization_home", @"Icons/organization_home_48.png")); + BindMenu(items); UserOrgPanel.Visible = true; @@ -139,5 +141,16 @@ namespace WebsitePanel.Portal return item; } + + public MenuItemCollection GetIconMenuItems(object menuItems) + { + return (MenuItemCollection)menuItems; + } + + public bool IsIconMenuVisible(object menuItems) + { + return ((MenuItemCollection)menuItems).Count > 0; + } + } } \ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserSpaces.ascx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserSpaces.ascx index e003e191..da26021d 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserSpaces.ascx +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserSpaces.ascx @@ -25,9 +25,8 @@ - - <%# Eval("Text") %> - + + @@ -57,7 +56,7 @@ - + diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/WebsitePanel.WebPortal.csproj b/WebsitePanel/Sources/WebsitePanel.WebPortal/WebsitePanel.WebPortal.csproj index 4b6d9e40..2ffe738a 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/WebsitePanel.WebPortal.csproj +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/WebsitePanel.WebPortal.csproj @@ -113,6 +113,8 @@ + + @@ -124,9 +126,11 @@ + +