Skip to content
Permalink
Browse files

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

…o the skel app
  • Loading branch information...
lorenzo committed May 30, 2011
1 parent 3f58509 commit d51e902036c82287a5464ca46e4e8d047460eea2
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
@@ -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();
@@ -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

This comment has been minimized.

Copy link
Contributor

voidet replied Jul 18, 2011

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

@lorenzo

This comment has been minimized.

Copy link
Member Author

lorenzo replied Jul 18, 2011

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

@ADmad

This comment has been minimized.

Copy link
Member

ADmad replied 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.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.