Changeset 327 for trunk/RebuildQueue/plugins/RebuildQueue
- Timestamp:
- 09/27/07 11:45:51 (2 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/RebuildQueue/plugins/RebuildQueue/RebuildQueue-List.pl
r244 r327 32 32 'MT::App::CMS::AppTemplateSource.list_blog' => \&add_queue_list_link, 33 33 'MT::App::CMS::AppTemplateParam.menu' => \&verify_permission, 34 'MT::App::CMS::AppTemplateSource.header' => \&that_damn_icon, 34 35 }, 35 36 }); … … 37 38 MT->add_plugin($plugin); 38 39 MT->add_plugin_action('blog','../../mt.cgi?__mode=rq_list', "Show rebuild queue for this blog"); 39 40 40 41 41 sub init { … … 193 193 } 194 194 195 sub that_damn_icon { 196 my ($cb, $app, $tmpl) = @_; 197 (my $static = $app->static_path) =~ s!/$!!; 198 my $css = '.box ul.nav li#nav-queue ' 199 . '{ background-image: url(%s/%s/rebuildq.gif); }'; 200 $app->tmpl_append( 201 $tmpl, 'head', 'style',sprintf($css, $static, $plugin->envelope) 202 ); 203 # You're welcome... 204 } 205 195 206 sub verify_permission { 196 207 my ($eh, $app, $param, $tmpl) = @_;
