OSDN Git Service

System subNavの修正
authorCake <cake_67@users.sourceforge.jp>
Fri, 9 Apr 2010 05:01:22 +0000 (14:01 +0900)
committerCake <cake_67@users.sourceforge.jp>
Fri, 9 Apr 2010 05:01:22 +0000 (14:01 +0900)
app/views/elements/admin_system_sidenav.ctp
app/views/elements/system_sidenav.ctp

index a0180dd..21d21bb 100644 (file)
@@ -1,13 +1,36 @@
 <ul>
 <?php if (isset($characterSheets) || isset($characterSheet) || isset($this->data['CharacterSheet'])): ?>
-       <li><?php echo $html->link(__('List of All CharacterSheets', true), array('action' => 'index'));?></li>
-       <li><?php echo $html->link(__('New CharacterSheet', true), array('action' => 'add')); ?><?php endif; ?>
+<li><?php echo $html->link(__('List of All CharacterSheets', true), array('action' => 'index'));?></li>
+<li><?php echo $html->link(__('New CharacterSheet', true), array('action' => 'add')); ?>
+<?php endif; ?>
+
 <?php if (isset($system['System']['name'])): ?>
-       <li><?php echo sprintf(__("%s's Home", true), $html->link($system['System']['name']), array('controller' => 'systems', 'action' => 'view', $system['System']['id'])); ?> </li>
+<li>
+<?php 
+       echo $html->link(
+               sprintf(__("%s's Home", true), $system['System']['name']), 
+               array('controller' => 'systems', 'action' => 'view', $system['System']['id'])
+       );
+?>
+</li>
 <?php elseif (isset($this->data['System']['name'])): ?>
-       <li><?php echo $html->link(sprintf(__("%s's Home", true), $this->data['System']['name']), array('controller' => 'systems', 'action' => 'view', $this->data['System']['id'])); ?> </li>
+<li>
+<?php 
+       echo $html->link(
+               sprintf(__("%s's Home", true), $this->data['System']['name']), 
+               array('controller' => 'systems', 'action' => 'view', $this->data['System']['id'])
+       ); 
+?>
+</li>
 <?php elseif (isset($characterSheet['System']['name'])): ?>
-       <li><?php echo $html->link(sprintf(__("%s's Home", true), $characterSheet['System']['name']), array('controller' => 'systems', 'action' => 'view', $characterSheet['System']['id'])); ?> </li>
+<li>
+<?php 
+       echo $html->link(
+               sprintf(__("%s's Home", true), $characterSheet['System']['name']), 
+               array('controller' => 'systems', 'action' => 'view', $characterSheet['System']['id'])
+       ); 
+?>
+</li>
 <?php endif; ?>
 
 <li><?php echo $html->link(__('List of All Systems', true), '/admin/systems/index'); ?></li>
index 6cec51f..bb04284 100644 (file)
@@ -1,12 +1,19 @@
 <ul>
 <?php if (isset($system['System']['name'])): ?>
-       <li><?php echo $html->link((sprintf(__("%s's Home", true), $system['System']['name']), array('controller' => 'systems', 'action' => 'view', $system['System']['id'])); ?> </li>
+<li>
+<?php 
+       echo $html->link(
+               sprintf(__("%s's Home", true), $system['System']['name']), 
+               array('controller' => 'systems', 'action' => 'view', $system['System']['id'])
+       ); 
+?>
+</li>
 <?php endif; ?>
 
-       <li><?php echo $html->link(__('List of All Systems', true), array('controller' => 'systems', 'action' => 'index')); ?></li>
+<li><?php echo $html->link(__('List of All Systems', true), array('controller' => 'systems', 'action' => 'index')); ?></li>
 
 <?php if ($user['User']['id'] && isset($system['System']['id'])): ?>
-       <li><?php echo $html->link(__('New Character', true), array('controller' => 'characters', 'action' => 'add', 'system_id:'.$system['System']['id'])); ?></li>
+<li><?php echo $html->link(__('New Character', true), array('controller' => 'characters', 'action' => 'add', 'system_id:'.$system['System']['id'])); ?></li>
 <?php endif; ?>
 
 </ul>