Changeset 5898
- Timestamp:
- 08/04/08 13:17:39 (4 months ago)
- Files:
-
- rubricks_core/trunk/themes/asteriksorange/images/icons/icon_message_new.gif (added)
- rubricks_core/trunk/themes/asteriksorange/images/icons/icon_message_new_inactive.gif (added)
- rubricks_core/trunk/themes/asteriksorange/images/icons/icon_new_inactive.gif (added)
- rubricks_core/trunk/themes/asteriksorange/images/icons/icon_simple_arrow_inactive.gif (added)
- rubricks_core/trunk/themes/asteriksorange/stylesheets/icons.css (modified) (1 diff)
- rubricks_core/trunk/themes/rubrickswhite/images/icons/icon_message_new.gif (added)
- rubricks_core/trunk/themes/rubrickswhite/images/icons/icon_message_new_inactive.gif (added)
- rubricks_core/trunk/themes/rubrickswhite/images/icons/icon_new_inactive.gif (added)
- rubricks_core/trunk/themes/rubrickswhite/images/icons/icon_simple_arrow_inactive.gif (added)
- rubricks_core/trunk/themes/rubrickswhite/images/layout/cb_bar.gif (modified) (previous)
- rubricks_core/trunk/themes/rubrickswhite/stylesheets/icons.css (modified) (1 diff)
- rubricks_core/trunk/vendor/plugins/rubricks/lib/action_view_rubricks_block_helper.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
rubricks_core/trunk/themes/asteriksorange/stylesheets/icons.css
r5818 r5898 793 793 background: url(../../../images/themes/asteriksorange/icons/darkicon_week.gif) no-repeat center left; 794 794 } 795 796 /*--[Settings for Portal Icons]---------*/ 797 .portal_icon_arrow_active { 798 background: url(../../../images/themes/asteriksorange/icons/icon_simple_arrow.gif) no-repeat center left; 799 } 800 .portal_icon_arrow_inactive { 801 background: url(../../../images/themes/asteriksorange/icons/icon_simple_arrow_inactive.gif) no-repeat center left; 802 } 803 .portal_icon_message_active { 804 background: url(../../../images/themes/asteriksorange/icons/icon_message_new.gif) no-repeat center left; 805 } 806 .portal_icon_message_inactive { 807 background: url(../../../images/themes/asteriksorange/icons/icon_message_new_inactive.gif) no-repeat center left; 808 } 809 .portal_icon_new_active { 810 background: url(../../../images/themes/asteriksorange/icons/icon_new.gif) no-repeat center left; 811 } 812 .portal_icon_new_inactive { 813 background: url(../../../images/themes/asteriksorange/icons/icon_new_inactive.gif) no-repeat center left; 814 } rubricks_core/trunk/themes/rubrickswhite/stylesheets/icons.css
r5818 r5898 793 793 background: url(../../../images/themes/rubrickswhite/icons/darkicon_week.gif) no-repeat center left; 794 794 } 795 796 /*--[Settings for Portal Icons]---------*/ 797 .portal_icon_arrow_active { 798 background: url(../../../images/themes/rubrickswhite/icons/icon_simple_arrow.gif) no-repeat center left; 799 } 800 .portal_icon_arrow_inactive { 801 background: url(../../../images/themes/rubrickswhite/icons/icon_simple_arrow_inactive.gif) no-repeat center left; 802 } 803 .portal_icon_message_active { 804 background: url(../../../images/themes/rubrickswhite/icons/icon_message_new.gif) no-repeat center left; 805 } 806 .portal_icon_message_inactive { 807 background: url(../../../images/themes/rubrickswhite/icons/icon_message_new_inactive.gif) no-repeat center left; 808 } 809 .portal_icon_new_active { 810 background: url(../../../images/themes/rubrickswhite/icons/icon_new.gif) no-repeat center left; 811 } 812 .portal_icon_new_inactive { 813 background: url(../../../images/themes/rubrickswhite/icons/icon_new_inactive.gif) no-repeat center left; 814 } rubricks_core/trunk/vendor/plugins/rubricks/lib/action_view_rubricks_block_helper.rb
r5897 r5898 12 12 13 13 def render_block_bar(&block) 14 content = capture(&block)15 14 concat(render_block_bar_begin, block.binding) 16 concat(co ntent,block.binding)15 concat(compress(&block), block.binding) 17 16 concat(render_block_bar_end, block.binding) 18 17 end 19 18 19 def render_block_bar_button(*args) 20 options = args.flex :type, :title, :onclick 21 options = { 22 :id => '', 23 :title => '', 24 :type => 'arrow', 25 :onclick => '', 26 }.merge(options) 27 return %Q|<span #{(options[:id].blank?) ? '' : %Q|id="options[:id]"|} class="rubricks_icon portal_icon_#{options[:type].to_s}_inactive swap" title="#{hl(options[:title])}" #{rollover_attributes} onclick="#{(options[:onclick].is_a?(Hash)) ? %Q|rubricks.common.MenuHandler.update_main_contents('#{url_for(options[:onclick])}');| : options[:onclick]}"> </span>| 28 end 29 20 30 private 31 def compress(&block) 32 html = [] 33 content = capture(&block) 34 content.scan(%r|<span[^>]*> </span>|) do 35 html << $~[0] 36 end 37 return "#{html.join('')} " 38 end 39 21 40 def render_block_bar_begin 22 41 '<div class="rubricks_cb_bar">'
