|
19 | 19 | ?> |
20 | 20 |
|
21 | 21 | <section class="varnish dark-bg" > |
22 | | - <div class="button-container steps" data-stage="<?= $stage ?>" > |
23 | | - <div class="button active previous" > |
24 | | - <img src="<?= $block->getViewFileUrl ('JetRails_Varnish/images/previous.svg') ?>" /> |
25 | | - <span>Previous</span> |
26 | | - </div> |
27 | | - <div class="title" ></div> |
28 | | - <div class="button active next" > |
29 | | - <span>Next</span> |
30 | | - <img src="<?= $block->getViewFileUrl ('JetRails_Varnish/images/next.svg') ?>" /> |
31 | | - </div> |
32 | | - </div> |
33 | 22 | <div class="cards one-col" > |
34 | | - <div class="card" data-section="Change Caching Application" > |
| 23 | + <div class="card <?= $enabled ? "done" : "" ?>" data-section="Change Caching Application" > |
35 | 24 | <div class="methods" > |
36 | 25 | <fieldset class="method-container" > |
37 | | - <h3>Set Caching Application</h3> |
| 26 | + <h3>Set Caching Application<span><?= $enabled ? "Complete" : "Pending" ?></span></h3> |
38 | 27 | <p>The current caching application is set to <code><?= $enabled ? "Varnish Cache" : "Built-In Cache" ?></code>.</p> |
39 | 28 | <p> |
40 | 29 | On this step, we change the default caching application from Magento's Built-In Cache to Varnish Cache. |
|
59 | 48 | </fieldset> |
60 | 49 | </div> |
61 | 50 | </div> |
62 | | - <div class="card" data-section="Configure Varnish Server(s)" > |
| 51 | + <div class="card <?= $edited ? "done" : "" ?>" data-section="Configure Varnish Server(s)" > |
63 | 52 | <div class="methods" > |
64 | 53 | <fieldset class="method-container" > |
65 | | - <h3>Configure Varnish Server(s)</h3> |
| 54 | + <h3>Configure Varnish Server(s)<span><?= $edited ? "Complete" : "Pending" ?></span></h3> |
66 | 55 | <p> |
67 | 56 | On this step, we will configure the available Varnish server(s). |
68 | 57 | This change can be made through the <b>Command-Line</b> or <b>Env Config File</b>. |
69 | 58 | </p> |
70 | | - <p> |
| 59 | + <table> |
| 60 | + <tr> |
| 61 | + <th width="50%" >Host</th> |
| 62 | + <th width="50%" >Port</th> |
| 63 | + </tr> |
71 | 64 | <?php if ( $edited ): ?> |
72 | | - <ul> |
73 | | - <?php foreach ( $servers as $index => $server ): ?> |
74 | | - <li><?= $server->host . ":" . $server->port ?></li> |
75 | | - <?php endforeach; ?> |
76 | | - </ul> |
| 65 | + <?php foreach ( $servers as $index => $server ): ?> |
| 66 | + <tr> |
| 67 | + <td><?= $server->host ?></td> |
| 68 | + <td><?= $server->port ?></td> |
| 69 | + </tr> |
| 70 | + <?php endforeach; ?> |
77 | 71 | <?php else: ?> |
78 | | - <p>No Configured Server(s) Detected</p> |
| 72 | + <tr> |
| 73 | + <td colspan="3" >No Configured Server(s) Detected</td> |
| 74 | + </tr> |
79 | 75 | <?php endif; ?> |
80 | | - </p> |
| 76 | + </table> |
81 | 77 | <div class="tray-labels" > |
82 | 78 | <div data-tray="cli" >Command-Line<span>▸</span></div> |
83 | 79 | <div data-tray="config" >Config File<span>▸</span></div> |
|
108 | 104 | </fieldset> |
109 | 105 | </div> |
110 | 106 | </div> |
111 | | - <div class="card" data-section="Download Custom VCL" > |
| 107 | + <div class="card <?= $installed ? "done" : "" ?>" data-section="Download Custom VCL" > |
112 | 108 | <div class="methods" > |
113 | 109 | <fieldset class="method-container" > |
114 | | - <h3>Install Varnish Config File</h3> |
| 110 | + <h3>Install Varnish Config File<span><?= $installed ? "Complete" : "Pending" ?></span></h3> |
115 | 111 | <table> |
116 | 112 | <tr> |
117 | | - <th>Varnish Server</th> |
118 | | - <th>Magento Version</th> |
119 | | - <th>Module Version</th> |
| 113 | + <th width="33.33%" >Varnish Server</th> |
| 114 | + <th width="33.33%" >Magento Version</th> |
| 115 | + <th width="33.33%" >Module Version</th> |
120 | 116 | </tr> |
121 | 117 | <?php if ( $edited ): ?> |
122 | 118 | <?php foreach ( $servers as $index => $server ): ?> |
123 | 119 | <tr> |
124 | 120 | <td><?= $server->host . ":" . $server->port ?></td> |
125 | | - <td>Version <?= $server->magento ?></td> |
126 | | - <td>Version <?= $server->version ?></td> |
| 121 | + <td><?= $server->magento ?></td> |
| 122 | + <td><?= $server->version ?></td> |
127 | 123 | </tr> |
128 | 124 | <?php endforeach; ?> |
129 | 125 | <?php else: ?> |
|
149 | 145 | --backend-port=8080 \ |
150 | 146 | --grace-period=300</code></pre> |
151 | 147 | </div> |
152 | | - <div class="tray" data-tray="dashboard" > |
| 148 | + <div class="tray" data-tray="dashboard" > |
153 | 149 | <p> |
154 | 150 | This can be done by navigating to <a href="<?= $block->getUrl ("adminhtml/system_config/edit/section/system") ?>" target="_blank" >Stores ❯ Settings ❯ Configuration ❯ Advanced ❯ System</a> ❯ <b>Full Page Cache</b> ❯ <b>Varnish Configuration</b>. |
155 | 151 | Once there you can configure your desired backend and download the VCL under <b>Export Configuration</b>. |
|
158 | 154 | </fieldset> |
159 | 155 | </div> |
160 | 156 | </div> |
161 | | - <div class="card" data-section="Debug Varnish Cache" > |
| 157 | + <div class="card done" data-section="Debug Varnish Cache" > |
162 | 158 | <div class="methods" > |
163 | 159 | <fieldset class="method-container" > |
164 | 160 | <h3>Debug Mode</h3> |
|
0 commit comments