Cross-link project sync, edit and pip list pages
authorMatthias Schmidt <gravatronics@live.com>
Sun, 14 Apr 2019 14:36:30 +0000 (16:36 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Sun, 14 Apr 2019 14:36:30 +0000 (16:36 +0200)
See #2545
See #2772

wcfsetup/install/files/acp/templates/devtoolsProjectAdd.tpl
wcfsetup/install/files/acp/templates/devtoolsProjectPipList.tpl
wcfsetup/install/files/acp/templates/devtoolsProjectSync.tpl

index 7a10d0d85f65f5f8584e5733e419384bfd8fa492..8853e26d5f8d4e47636f4315f030a5b1d9a49508 100644 (file)
@@ -7,6 +7,10 @@
        
        <nav class="contentHeaderNavigation">
                <ul>
+                       {if $action === 'edit'}
+                               <li><a href="{link controller='DevtoolsProjectSync' id=$formObject->getObjectID()}{/link}" class="button"><span class="icon icon16 fa-refresh"></span> <span>{lang}wcf.acp.devtools.project.sync{/lang}</span></a></li>
+                               <li><a href="{link controller='DevtoolsProjectPipList' id=$formObject->getObjectID()}{/link}" class="button"><span class="icon icon16 fa-list"></span> <span>{lang}wcf.acp.devtools.project.pips{/lang}</span></a></li>
+                       {/if}
                        <li><a href="{link controller='DevtoolsProjectList'}{/link}" class="button"><span class="icon icon16 fa-list"></span> <span>{lang}wcf.acp.menu.link.devtools.project.list{/lang}</span></a></li>
                        
                        {event name='contentHeaderNavigation'}
index 59c7edee9da11d552713202e502f3d2e10c67f39..8514b302e18b58b53298221b1aef3ef47cde5dd0 100644 (file)
@@ -8,6 +8,10 @@
        
        <nav class="contentHeaderNavigation">
                <ul>
+                       {if $project->validate() === ''}
+                               <li><a href="{link controller='DevtoolsProjectSync' id=$project->getObjectID()}{/link}" class="button"><span class="icon icon16 fa-refresh"></span> <span>{lang}wcf.acp.devtools.project.sync{/lang}</span></a></li>
+                       {/if}
+                       <li><a href="{link controller='DevtoolsProjectEdit' id=$project->getObjectID()}{/link}" class="button"><span class="icon icon16 fa-pencil"></span> <span>{lang}wcf.acp.devtools.project.edit{/lang}</span></a></li>
                        <li><a href="{link controller='DevtoolsProjectList'}{/link}" class="button"><span class="icon icon16 fa-list"></span> <span>{lang}wcf.acp.menu.link.devtools.project.list{/lang}</span></a></li>
                        
                        {event name='contentHeaderNavigation'}
index ad5eaa2342575fecb6b01974e6ca500761bf005e..1b4650888dc4f6011b138a56e9e72b40edafeff5 100644 (file)
@@ -8,6 +8,10 @@
        
        <nav class="contentHeaderNavigation">
                <ul>
+                       {if $object->validate() === ''}
+                               <li><a href="{link controller='DevtoolsProjectPipList' id=$object->getObjectID()}{/link}" class="button"><span class="icon icon16 fa-list"></span> <span>{lang}wcf.acp.devtools.project.pips{/lang}</span></a></li>
+                       {/if}
+                       <li><a href="{link controller='DevtoolsProjectEdit' id=$object->getObjectID()}{/link}" class="button"><span class="icon icon16 fa-pencil"></span> <span>{lang}wcf.acp.devtools.project.edit{/lang}</span></a></li>
                        <li><a href="{link controller='DevtoolsProjectList'}{/link}" class="button"><span class="icon icon16 fa-list"></span> <span>{lang}wcf.acp.menu.link.devtools.project.list{/lang}</span></a></li>
                        
                        {event name='contentHeaderNavigation'}