[TikiWiki-commits] [Git][tikiwiki/tiki][tiki-clone-redact-fix] [ENH] index.tpl: Add 'Current' column to instances table to mention the...

"Sammy Ndabo \(@ndabosam084\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <694ff49317a02_2a17fd54347@gitlab-sidekiq-low-urgency-cpu-bound-v2-587dc6b794-nfhf2.mail>

Sammy Ndabo pushed to branch tiki-clone-redact-fix at Tiki Wiki CMS Groupware / Tiki


Commits:
728c606b by Sammy Ndabo at 2025-12-27T17:00:03+02:00
[ENH] index.tpl: Add 'Current' column to instances table to mention the current instance on the listed instances

- - - - -


1 changed file:

- templates/manager/index.tpl


Changes:

=====================================
templates/manager/index.tpl
=====================================
@@ -21,6 +21,7 @@
                 <th>{tr}URL{/tr}</th>
                 <th>{tr}Contact{/tr}</th>
                 <th>{tr}Blank{/tr}</th>
+                <th>{tr}Current{/tr}</th>
                 <th></th>
             </tr>
             {foreach $instances as $instance}
@@ -33,6 +34,11 @@
                     <td><a href="{$instance->weburl}" title="Visit website" target="_blank">{$instance->weburl}</a></td>
                     <td>{$instance->contact|escape}</td>
                     <td>{if $instance->app != null }{tr}False{/tr}{else}{tr}True{/tr}{/if}</td>
+                    <td>
+                        {if $instance->type == 'local' && $instance->weburl == $base_url}
+                            <span class="badge bg-primary">{tr}True{/tr}</span>
+                        {/if}
+                    </td>
                     <td class="action">
                         {actions}{strip}
                             <action>
@@ -146,7 +152,7 @@
                 </tr>
             {foreachelse}
                 <tr>
-                    <td colspan="8">{tr}No instances defined.{/tr}</td>
+                    <td colspan="10">{tr}No instances defined.{/tr}</td>
                 </tr>
             {/foreach}
         </table>



View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/728c606b1a7be7f857634986089715d6999d00ec

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/728c606b1a7be7f857634986089715d6999d00ec
You're receiving this email because of your account on gitlab.com.

_______________________________________________
TikiWiki-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.