File tree Expand file tree Collapse file tree 2 files changed +54
-36
lines changed
modules/installed/moduleManager Expand file tree Collapse file tree 2 files changed +54
-36
lines changed Original file line number Diff line number Diff line change @@ -124,6 +124,13 @@ private function viewInstall($moduleName) {
124124
125125 $ info = $ this ->getInfo ($ moduleFolder . "module.json " , $ moduleName , "modules/installing/ " );
126126 }
127+
128+
129+ $ info ["bundleInfo " ] = "" ;
130+
131+ foreach ($ info ["modules " ] as $ value ) {
132+ $ info ["bundleInfo " ] .= $ this ->page ->buildElement ("mInfo " , $ value );
133+ }
127134
128135
129136 $ this ->html .= $ this ->page ->buildElement ("moduleOverview " , $ info );
Original file line number Diff line number Diff line change @@ -76,9 +76,8 @@ class moduleManagerTemplate extends template {
7676 </td>
7777 <td></td>
7878 </tr>
79- {#each modules}
80- {>mInfo}
81- {/each}
79+
80+ <{bundleInfo}>
8281 </tbody>
8382 </table>
8483 {/if}
@@ -145,47 +144,59 @@ class moduleManagerTemplate extends template {
145144 <tr>
146145 <td>{name}</td>
147146 <td class="text-center">
148- {#unless installed}
149- {#if extracted}
150- <i class="glyphicon text-success glyphicon-ok"></i>
151- {/if}
152- {#unless extracted}
153- <i class="glyphicon text-danger glyphicon-remove"></i>
154- {/unless}
155- {/unless}
147+ {>mInfoExtractedIcon}
156148 </td>
157149 <td class="text-center">
158- {#if installed}
159- <i class="glyphicon text-success glyphicon-ok"></i>
160- {/if}
161- {#unless installed}
162- <i class="glyphicon text-danger glyphicon-remove"></i>
163- {/unless}
150+ {>mInfoInstalledIcon}
164151 </td>
165152 <td class="text-center">
166- {#unless installed}
167- {#unless extracted}
168- <a href="?page=admin&module=moduleManager&action=install&view={id}&extract={name}">
169- Extract
170- </a>
171- {/unless}
172- {/unless}
173- {#if extracted}
174- {#unless installed}
175- <a href="?page=admin&module=moduleManager&action=install&view={id}&installBundleModule={name}">
176- Install
177- </a>
178- {/unless}
179- {/if}
180- {#if installed}
181- <a href="?page=admin&module=moduleManager&action=install&view={id}&deactivateBundleModule={name}">
182- De-Activate
183- </a>
184- {/if}
153+ {>mInfoActions}
185154 </td>
186155 </tr>
187156 ' ;
188157
158+ public $ mInfoActions = '
159+ {#unless installed}
160+ {#unless extracted}
161+ <a href="?page=admin&module=moduleManager&action=install&view={id}&extract={name}">
162+ Extract
163+ </a>
164+ {/unless}
165+ {/unless}
166+ {#if extracted}
167+ {#unless installed}
168+ <a href="?page=admin&module=moduleManager&action=install&view={id}&installBundleModule={name}">
169+ Install
170+ </a>
171+ {/unless}
172+ {/if}
173+ {#if installed}
174+ <a href="?page=admin&module=moduleManager&action=install&view={id}&deactivateBundleModule={name}">
175+ De-Activate
176+ </a>
177+ {/if}
178+ ' ;
179+
180+ public $ mInfoInstalledIcon = '
181+ {#if installed}
182+ <i class="glyphicon text-success glyphicon-ok"></i>
183+ {/if}
184+ {#unless installed}
185+ <i class="glyphicon text-danger glyphicon-remove"></i>
186+ {/unless}
187+ ' ;
188+
189+ public $ mInfoExtractedIcon = '
190+ {#unless installed}
191+ {#if extracted}
192+ <i class="glyphicon text-success glyphicon-ok"></i>
193+ {/if}
194+ {#unless extracted}
195+ <i class="glyphicon text-danger glyphicon-remove"></i>
196+ {/unless}
197+ {/unless}
198+ ' ;
199+
189200 public $ moduleList = '
190201
191202 <table class="table table-condensed table-responsive table-striped table-bordered">
You can’t perform that action at this time.
0 commit comments