OSDN Git Service

Skinをアップロードするまで表示しない
authorCake <cake_67@users.sourceforge.jp>
Wed, 12 Jan 2011 01:55:09 +0000 (10:55 +0900)
committerCake <cake_67@users.sourceforge.jp>
Wed, 12 Jan 2011 01:55:09 +0000 (10:55 +0900)
app/locale/jpn/LC_MESSAGES/default.po
app/views/elements/character_skinchanger.ctp
app/views/elements/system_view.ctp

index fd15565..ec78192 100644 (file)
@@ -914,7 +914,7 @@ msgid "Add CharacterSheet"
 msgstr "スキン追加"
 
 msgid "Your Skins"
-msgstr "あなたの作ったスキン"
+msgstr "作成したスキン"
 
 msgid "How to make Skin"
 msgstr "スキンの書き方"
index f3dc9f0..d2f9e5d 100644 (file)
@@ -23,6 +23,7 @@
 </li>
 
 <?php foreach($character['System']['CharacterSheet'] as $characterSheet): ?>
+<?php if (file_exists(APP.DS.'views'.DS.'themed'.DS.$characterSheet['key_name'].DS.'characters'.DS.'view.ctp')): ?>
 <li class="CharcterViewName" id="CharacterView<?php echo $characterSheet['id'] ?>">
 <?php if (isset($this->params['named']['mode']) && $this->params['named']['mode'] == $characterSheet['key_name'] ): ?>
 <?php
 ?>
 <?php endif; ?>
 </li>
+<?php endif; ?>
 <?php endforeach; ?>
 
 <?php if ($site_configs['System.allowUserSheet']['value']): ?>
+<li class="YourSkinLink">
+<?php
+echo $html->link("[".__('Your Skins', true)."]", array(
+       'controller' => 'character_sheets',
+       'action' => 'myindex',
+       ), array('escape' => false), false
+);
+ ?>
+</li>
 <li class="SkinAddLink">
 <?php
 echo $html->link("[".__('Add', true)."]", array(
index 2b484ec..ae7dfe9 100644 (file)
 
 <div class="character_sheets">
 <?php 
-       $header =  __('CharacterSheets', true).
-               $html->tag(
+       $header =  __('CharacterSheets', true);
+       $header .= $html->tag(
                        'span',
                        $html->link(
                                __(' ...More', true),
                                'class' => 'link',
                        )
                );
+       if (!$isAdmin) {
+               $header .= $html->tag(
+                       'span',
+                       $html->link(
+                               __('Your Skins', true),
+                               array(
+                                       'controller' => 'characte       r_sheets',
+                                       'action' => 'myindex',
+                               )
+                       ),
+                       array(
+                               'class' => 'link',
+                       )
+               );
+       }
        $header .= $html->tag(
                        'span',
                        $html->link(