Index: trunk/extensions/Storyboard/storyboard.css |
— | — | @@ -94,6 +94,11 @@ |
95 | 95 | background: #FCFCFC url(images/storyboard-loader.gif) no-repeat scroll center center; |
96 | 96 | } |
97 | 97 | |
| 98 | +.story-controls { |
| 99 | + text-align: center; |
| 100 | + margin: 0px 5px 5px 5px; |
| 101 | +} |
| 102 | + |
98 | 103 | /** |
99 | 104 | * Css for <storyboard> tags |
100 | 105 | */ |
Index: trunk/extensions/Storyboard/tags/Storyboard/storyboard.js |
— | — | @@ -114,7 +114,7 @@ |
115 | 115 | } |
116 | 116 | else { |
117 | 117 | metaDataText = stbMsgExt( 'storyboard-storymetadata', [story.author, story.creationtime, story.creationdate] ); |
118 | | - } |
| 118 | + } |
119 | 119 | |
120 | 120 | $storyBody.append( |
121 | 121 | $( "<div />" ).addClass( "story-metadata" ).append( |
Index: trunk/extensions/Storyboard/specials/StoryReview/StoryReview_body.php |
— | — | @@ -57,8 +57,8 @@ |
58 | 58 | |
59 | 59 | $language = $wgRequest->getText( 'language', false ); |
60 | 60 | if ( !$language ) $language = $wgContLanguageCode; |
61 | | - |
62 | | - $html = <<<EOT |
| 61 | + |
| 62 | + $wgOut->addHTML( <<<EOT |
63 | 63 | <div id="storyreview-tabs"> |
64 | 64 | <ul> |
65 | 65 | <li><a href="#$unpublished" id="$unpublished-tab">$unpublished</a></li> |
— | — | @@ -81,8 +81,7 @@ |
82 | 82 | stbShowReviewBoard( jQuery( ui.panel ), ui.index ); |
83 | 83 | }); |
84 | 84 | </script> |
85 | | -EOT; |
86 | | - |
87 | | - $wgOut->addHTML( $html ); |
| 85 | +EOT |
| 86 | + ); |
88 | 87 | } |
89 | 88 | } |
\ No newline at end of file |
Index: trunk/extensions/Storyboard/storyboard.js |
— | — | @@ -211,7 +211,7 @@ |
212 | 212 | ) |
213 | 213 | ); |
214 | 214 | |
215 | | - var controlDiv = jQuery( "<div />" ); |
| 215 | + var controlDiv = jQuery( "<div />" ).addClass( "story-controls" ); |
216 | 216 | |
217 | 217 | if ( story.state != 0 ) { |
218 | 218 | controlDiv.append( |
— | — | @@ -221,6 +221,9 @@ |
222 | 222 | } |
223 | 223 | |
224 | 224 | if ( story.state != 1 ) { |
| 225 | + if ( story.state != 0 ) { |
| 226 | + controlDiv.append( ' ' ); |
| 227 | + } |
225 | 228 | controlDiv.append( |
226 | 229 | jQuery( "<button />" ).text( stbMsg( "storyboard-publish" ) ) |
227 | 230 | .attr( "onclick", "stbDoStoryAction( this, " + story.id + ", 'publish' )" ) |
— | — | @@ -228,21 +231,27 @@ |
229 | 232 | } |
230 | 233 | |
231 | 234 | if ( story.state != 2 ) { |
| 235 | + controlDiv.append( ' ' ); |
232 | 236 | controlDiv.append( |
233 | 237 | jQuery( "<button />" ).text( stbMsg( "storyboard-hide" ) ) |
234 | 238 | .attr( "onclick", "stbDoStoryAction( this, " + story.id + ", 'hide' )" ) |
235 | 239 | ); |
236 | 240 | } |
237 | 241 | |
| 242 | + controlDiv.append( ' ' ); |
238 | 243 | controlDiv.append( jQuery( "<button />" ).text( stbMsg( "edit" ) ) |
239 | 244 | .attr( "onclick", "window.location='" + story.modifyurl + "'" ) ); |
240 | 245 | |
241 | 246 | if ( story.imageurl ) { |
| 247 | + controlDiv.append( ' ' ); |
| 248 | + |
242 | 249 | controlDiv.append( |
243 | 250 | jQuery( "<button />" ).text( stbMsg( "storyboard-deleteimage" ) ) |
244 | 251 | .attr( "onclick", "stbDeleteStoryImage( this, " + story.id + " )" ) |
245 | 252 | ); |
246 | 253 | |
| 254 | + controlDiv.append( ' ' ); |
| 255 | + |
247 | 256 | if ( story.imagehidden == "1" ) { |
248 | 257 | controlDiv.append( |
249 | 258 | jQuery( "<button />" ).text( stbMsg( "storyboard-showimage" ) ) |