Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updating bake templates and default css file.

  • Loading branch information...
commit b0a50e10b7a21e044fdda8a021328b4f6011f757 1 parent 1216884
Mark Story markstory authored
8 app/webroot/css/cake.generic.css
View
@@ -183,17 +183,15 @@ td.actions a {
div.paging {
background:#fff;
color: #ccc;
- margin-bottom: 2em;
+ margin-top: 1em;
clear:both;
}
-div.paging div.disabled {
+div.paging span.disabled {
color: #ddd;
display: inline;
}
-div.paging span {
-}
div.paging span.current {
- color: #000;
+ color: #993;
}
div.paging span a {
}
57 cake/console/templates/default/views/index.ctp
View
@@ -18,30 +18,23 @@
*/
?>
<div class="<?php echo $pluralVar;?> index">
-<h2><?php echo "<?php __('{$pluralHumanName}');?>";?></h2>
-<p>
-<?php echo "<?php
-echo \$this->Paginator->counter(array(
-'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
-));
-?>";?>
-</p>
-<table cellpadding="0" cellspacing="0">
-<tr>
-<?php foreach ($fields as $field):?>
- <th><?php echo "<?php echo \$this->Paginator->sort('{$field}');?>";?></th>
-<?php endforeach;?>
- <th class="actions"><?php echo "<?php __('Actions');?>";?></th>
-</tr>
-<?php
-echo "<?php
-\$i = 0;
-foreach (\${$pluralVar} as \${$singularVar}):
- \$class = null;
- if (\$i++ % 2 == 0) {
- \$class = ' class=\"altrow\"';
- }
-?>\n";
+ <h2><?php echo "<?php __('{$pluralHumanName}');?>";?></h2>
+ <table cellpadding="0" cellspacing="0">
+ <tr>
+ <?php foreach ($fields as $field):?>
+ <th><?php echo "<?php echo \$this->Paginator->sort('{$field}');?>";?></th>
+ <?php endforeach;?>
+ <th class="actions"><?php echo "<?php __('Actions');?>";?></th>
+ </tr>
+ <?php
+ echo "<?php
+ \$i = 0;
+ foreach (\${$pluralVar} as \${$singularVar}):
+ \$class = null;
+ if (\$i++ % 2 == 0) {
+ \$class = ' class=\"altrow\"';
+ }
+ ?>\n";
echo "\t<tr<?php echo \$class;?>>\n";
foreach ($fields as $field) {
$isKey = false;
@@ -66,12 +59,20 @@ foreach (\${$pluralVar} as \${$singularVar}):
echo "\t\t</td>\n";
echo "\t</tr>\n";
-echo "<?php endforeach; ?>\n";
-?>
-</table>
+ echo "<?php endforeach; ?>\n";
+ ?>
+ </table>
+ <p>
+ <?php echo "<?php
+ echo \$this->Paginator->counter(array(
+ 'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
+ ));
+ ?>";?>
+ </p>
+
<div class="paging">
<?php echo "\t<?php echo \$this->Paginator->prev('<< '.__('previous', true), array(), null, array('class'=>'disabled'));?>\n";?>
- | <?php echo "\t<?php echo \$this->Paginator->numbers();?>\n"?>
+ | <?php echo "\t<?php echo \$this->Paginator->numbers();?>\n"?> |
<?php echo "\t<?php echo \$this->Paginator->next(__('next', true).' >>', array(), null, array('class' => 'disabled'));?>\n";?>
</div>
</div>
Please sign in to comment.
Something went wrong with that request. Please try again.