Changeset 1845
- Timestamp:
- 08/15/08 16:21:01 (3 months ago)
- Files:
-
- cherokee/trunk/ChangeLog (modified) (1 diff)
- cherokee/trunk/admin/PageVServer.py (modified) (7 diffs)
- cherokee/trunk/admin/PageVServers.py (modified) (4 diffs)
- cherokee/trunk/admin/static/css/cherokee.css (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
cherokee/trunk/ChangeLog
r1842 r1845 1 2008-08-14 Taher Shihadeh <taher@unixwars.com> 2 3 * admin/PageVServers.py, admin/PageVServer.py, 4 admin/static/css/cherokee.css: addresses UI enhancement proposal 5 at http://code.google.com/p/cherokee/issues/detail?id=86. 6 1 7 2008-08-15 Alvaro Lopez Ortega <alvaro@alobbs.com> 2 8 3 9 * admin/PageVServer.py (PageVServer._render_vserver_guts): Fixes 4 10 an unfortunate error. The administration interface fails to set 5 the security files (certificates and keys) because a ndprevious11 the security files (certificates and keys) because a previous 6 12 variable value messed up the property key. 7 13 cherokee/trunk/admin/PageVServer.py
r1842 r1845 51 51 self._priorities_userdir = None 52 52 self._rule_table = 1 53 53 54 54 def _op_handler (self, uri, post): 55 55 assert (len(uri) > 1) … … 273 273 txt += '<table id="%s" class="rulestable">' % (table_name) 274 274 txt += '<tr NoDrag="1" NoDrop="1"><th>Target</th><th>Type</th><th>Handler</th><th>Auth</th><th>Final</th></tr>' 275 275 276 276 # Rule list 277 277 for prio in priorities: … … 280 280 _type = conf.get_val('match') 281 281 pre = '%s!%s' % (cfg_key, prio) 282 283 # Try to load the rule plugin 282 283 # Try to load the rule plugin 284 284 rule_module = module_obj_factory (_type, self._cfg, pre, self.submit_url) 285 285 name = rule_module.get_name() 286 286 name_type = rule_module.get_type_name() 287 287 288 288 if _type != 'default': 289 289 link = '<a href="%s/prio/%s">%s</a>' % (url_prefix, prio, name) … … 312 312 313 313 txt += '</table>\n' 314 txt += '''<script type="text/javascript"> 314 txt += ''' 315 <script type="text/javascript"> 315 316 $(document).ready(function() { 316 317 $("#%(name)s tr:even').addClass('alt')"); … … 324 325 post += 'update_prio=' + rows[i].id + ',' + prio + '&'; 325 326 } 326 jQuery.post ('%(url)s', post, 327 jQuery.post ('%(url)s', post, 327 328 function (data, textStatus) { 328 window.location.reload(); 329 window.location.reload(); 329 330 } 330 331 ); … … 332 333 }); 333 334 }); 335 336 $(document).ready(function(){ 337 $("table.rulestable tr:odd").addClass("odd"); 338 }); 339 340 $(document).mouseup(function(){ 341 $("table.rulestable tr:even").removeClass("odd"); 342 $("table.rulestable tr:odd").addClass("odd"); 343 }); 334 344 </script> 335 ''' % {'name': table_name, 345 ''' % {'name': table_name, 336 346 'url' : self.submit_ajax_url, 337 347 'prefix': cfg_key} … … 374 384 modules_available(LOGGERS), NOTE_LOGGERS) 375 385 txt += self.Indent(str(table)) 376 386 377 387 # Writers 378 388 379 389 if format: 380 390 writers = '' cherokee/trunk/admin/PageVServers.py
r1750 r1845 129 129 else: 130 130 logging = 'no' 131 131 132 132 if nick != "default": 133 133 js = "post_del_key('/ajax/update', 'vserver!%s');"%(prio) … … 140 140 141 141 txt += '</table>' 142 txt += '''<script type="text/javascript"> 142 txt += ''' 143 <script type="text/javascript"> 143 144 $(document).ready(function() { 144 145 $("#%(name)s tr:even').addClass('alt')"); … … 151 152 post += rows[i].id + ','; 152 153 } 153 jQuery.post ('%(url)s', post, 154 jQuery.post ('%(url)s', post, 154 155 function (data, textStatus) { 155 window.location.reload(); 156 window.location.reload(); 156 157 } 157 158 ); … … 159 160 }); 160 161 }); 162 163 $(document).ready(function(){ 164 $("table.rulestable tr:odd").addClass("odd"); 165 }); 166 167 $(document).mouseup(function(){ 168 $("table.rulestable tr:even").removeClass("odd"); 169 $("table.rulestable tr:odd").addClass("odd"); 170 }); 161 171 </script> 162 ''' % {'name': table_name, 172 ''' % {'name': table_name, 163 173 'url' : '/vserver/ajax_update'} 164 174 cherokee/trunk/admin/static/css/cherokee.css
r1515 r1845 7 7 8 8 .clearfix:after { 9 content: "."; 10 display: block; 11 height: 0; 12 clear: both; 9 content: "."; 10 display: block; 11 height: 0; 12 clear: both; 13 13 visibility: hidden; 14 14 } … … 126 126 /** HELP **/ 127 127 #help-area { 128 128 129 129 } 130 130 … … 191 191 } 192 192 193 .dialog-information h2, 193 .dialog-information h2, 194 194 .dialog-warning h2, 195 .dialog-error h2 195 .dialog-error h2 196 196 { 197 197 margin: 0 0 0.3em 0; … … 220 220 .tab dt:hover { 221 221 background:#efefef url(../images/collapsed.gif) no-repeat scroll 0px 4px; 222 } 223 222 } 223 224 224 .tab dt.selected:hover { 225 background:#efefef url(../images/expanded.gif) no-repeat scroll 0px 4px; 226 } 227 228 225 background:#efefef url(../images/expanded.gif) no-repeat scroll 0px 4px; 226 } 227 229 228 a.button { 230 229 background: transparent url('../images/button-right.png') no-repeat scroll top right; … … 250 249 background-position: bottom right; 251 250 color: #122c4d; 252 outline: none; 251 outline: none; 253 252 } 254 253 255 254 a.button:active span { 256 255 background-position: bottom left; 257 padding: 6px 0 4px 18px; 256 padding: 6px 0 4px 18px; 258 257 } 259 258 … … 299 298 300 299 .tableprop .title { 301 font-weight: bold; 300 font-weight: bold; 302 301 } 303 302 … … 319 318 font-weight: bold; 320 319 } 320 321 /* Alternate row color in rule list */ 322 table.rulestable tr.odd td { 323 background-color:#F4F7FB; 324 }