Skip to content
Browse files

Improving styles for url rewriting detection notice, and copying it t…

…o the skel app
  • Loading branch information...
1 parent 3f58509 commit d51e902036c82287a5464ca46e4e8d047460eea2 @lorenzo lorenzo committed May 30, 2011
Showing with 28 additions and 3 deletions.
  1. +15 −0 cake/console/templates/default/views/home.ctp
  2. +13 −3 cake/libs/view/pages/home.ctp
View
15 cake/console/templates/default/views/home.ctp
@@ -19,6 +19,21 @@ endif;
endif;
?>
</p>
+<div style=\"background-color:#e32; color:#fff; padding:3px; margin: 20px 0\">
+ <?php __('URL rewriting is not properly configured on your server. '); ?>
+ <ol style=\"padding-left:20px\">
+ <li>
+ <a target=\"_blank\" href=\"http://book.cakephp.org/view/917/Apache-and-mod_rewrite-and-htaccess\" style=\"color:#fff;\">
+ <?php __('Help me configure it')?>
+ </a>
+ </li>
+ <li>
+ <a target=\"_blank\" href=\"http://book.cakephp.org/view/931/CakePHP-Core-Configuration-Variables\" style=\"color:#fff;\">
+ <?php __('I don\'t / can\'t use URL rewriting')?>
+ </a>
+ </li>
+ </ol>
+</div>
<p>
<?php
\$settings = Cache::settings();
View
16 cake/libs/view/pages/home.ctp
@@ -27,10 +27,20 @@ if (Configure::read() > 0):
Debugger::checkSecurityKeys();
endif;
?>
-<div id="url-rewriting-warning" style="background-color:#e32; color:#fff; padding:3px;">
+<div style="background-color:#e32; color:#fff; padding:3px; margin: 20px 0">
<?php __('URL rewriting is not properly configured on your server. '); ?>
- 1) <a target="_blank" href="http://book.cakephp.org/view/917/Apache-and-mod_rewrite-and-htaccess" style="color:#fff;">Help me configure it</a>
- 2) <a target="_blank" href="http://book.cakephp.org/view/931/CakePHP-Core-Configuration-Variables" style="color:#fff;">I don't / can't use URL rewriting</a>
+ <ol style="padding-left:20px">
+ <li>
+ <a target="_blank" href="http://book.cakephp.org/view/917/Apache-and-mod_rewrite-and-htaccess" style="color:#fff;">
+ <?php __('Help me configure it')?>
+ </a>
+ </li>
+ <li>
+ <a target="_blank" href="http://book.cakephp.org/view/931/CakePHP-Core-Configuration-Variables" style="color:#fff;">
+ <?php __('I don\'t / can\'t use URL rewriting')?>
+ </a>
+ </li>
+ </ol>
</div>
<p>
<?php

3 comments on commit d51e902

@voidet
voidet commented on d51e902 Jul 18, 2011

Might be best to include the div id tag back in #url-rewriting-warning

@lorenzo
CakePHP member

No, if the rewriting is not working properly, then the red style would not be present :)

@ADmad
CakePHP member
ADmad commented on d51e902 Jul 20, 2011

@voidet This is an old commit. The current version of the files on 1.3 branch do have the div id #url-rewriting-warning.

Please sign in to comment.
Something went wrong with that request. Please try again.