mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-24 17:36:14 -04:00
skins: finalize support for multiple skins
The old "static/custom" directory is replaced by "static/skins/<skinName>", where <skinName> is taken from settings.json. When no value is found, a default of "no-skin" is assumed, so that backward compatibility is maintained. The most evident security concerns have been addressed. Closes #3471.
This commit is contained in:
parent
e34c74b24d
commit
9c990ab08a
5 changed files with 14 additions and 14 deletions
|
@ -34,19 +34,19 @@
|
|||
<td><a href="/static/js/require-kernel.js">require-kernel.js</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="/static/custom/index.js">index.js</a></td>
|
||||
<td><a href="/static/skins/<%=encodeURI(settings.skinName)%>/index.js">index.js</a></td>
|
||||
<td><a href="http://www.apache.org/licenses/LICENSE-2.0">Apache-2.0-only</a></td>
|
||||
<td><a href="/static/custom/index.js">index.js</a></td>
|
||||
<td><a href="/static/skins/<%=encodeURI(settings.skinName)%>/index.js">index.js</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="/static/custom/timeslider.js">timeslider.js</a></td>
|
||||
<td><a href="/static/skins/<%=encodeURI(settings.skinName)%>/timeslider.js">timeslider.js</a></td>
|
||||
<td><a href="http://www.apache.org/licenses/LICENSE-2.0">Apache-2.0-only</a></td>
|
||||
<td><a href="/static/custom/timeslider.js">timeslider.js</a></td>
|
||||
<td><a href="/static/skins/<%=encodeURI(settings.skinName)%>/timeslider.js">timeslider.js</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="/static/custom/pad.js">pad.js</a></td>
|
||||
<td><a href="/static/skins/<%=encodeURI(settings.skinName)%>/pad.js">pad.js</a></td>
|
||||
<td><a href="http://www.apache.org/licenses/LICENSE-2.0">Apache-2.0-only</a></td>
|
||||
<td><a href="/static/custom/pad.js">pad.js</a></td>
|
||||
<td><a href="/static/skins/<%=encodeURI(settings.skinName)%>/pad.js">pad.js</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="/static/js/admin/plugins.js">plugins.js</a></td>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue