Changeset 5898

Show
Ignore:
Timestamp:
08/04/08 13:17:39 (4 months ago)
Author:
uta
Message:

2008/08/04 sync

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • rubricks_core/trunk/themes/asteriksorange/stylesheets/icons.css

    r5818 r5898  
    793793  background:                   url(../../../images/themes/asteriksorange/icons/darkicon_week.gif) no-repeat center left; 
    794794} 
     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  
    793793  background:                   url(../../../images/themes/rubrickswhite/icons/darkicon_week.gif) no-repeat center left; 
    794794} 
     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  
    1212 
    1313      def render_block_bar(&block) 
    14         content = capture(&block) 
    1514        concat(render_block_bar_begin,  block.binding) 
    16         concat(content,                 block.binding) 
     15        concat(compress(&block),        block.binding) 
    1716        concat(render_block_bar_end,    block.binding) 
    1817      end 
    1918 
     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]}">&nbsp;</span>| 
     28      end 
     29 
    2030      private 
     31      def compress(&block) 
     32        html    = [] 
     33        content = capture(&block) 
     34        content.scan(%r|<span[^>]*>&nbsp;</span>|) do 
     35          html << $~[0] 
     36        end 
     37        return "#{html.join('')}&nbsp;" 
     38      end 
     39 
    2140      def render_block_bar_begin 
    2241        '<div class="rubricks_cb_bar">'