make Asset Helpers panel pretty
This commit is contained in:
parent
2e1589121a
commit
adfa7be45a
3 changed files with 19 additions and 3 deletions
|
|
@ -361,11 +361,11 @@ __DATA__
|
||||||
</div></dd>
|
</div></dd>
|
||||||
<!-- placeholder for asset helpers -->
|
<!-- placeholder for asset helpers -->
|
||||||
<dt id="assetHelpers" class="a-m-t">Asset Helpers (i18n)</dt>
|
<dt id="assetHelpers" class="a-m-t">Asset Helpers (i18n)</dt>
|
||||||
<dd class="a-m-d"><div class="bd">
|
<dd id="assetHelpers_pane" class="a-m-d"><div class="bd">
|
||||||
<h1 id="helper_asset_name">Asset</h1>
|
<h1 id="helper_asset_name">Asset</h1>
|
||||||
<ul id="helper_list">
|
<ul id="helper_list">
|
||||||
</ul>
|
</ul>
|
||||||
<h2>History (i18n)</h2>
|
<h2 style="background-image: url(^Extras(icon/clock.png););">History (i18n)</h2>
|
||||||
<ul id="history_list">
|
<ul id="history_list">
|
||||||
</ul>
|
</ul>
|
||||||
</div></dd>
|
</div></dd>
|
||||||
|
|
|
||||||
|
|
@ -104,3 +104,19 @@ img.icon {
|
||||||
a:link {
|
a:link {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#helper_asset_name {
|
||||||
|
font-size: 14pt;
|
||||||
|
margin-left: 5px;
|
||||||
|
padding-left: 20px;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-position: 0 50%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#assetHelpers_pane h2 {
|
||||||
|
font-size: 14pt;
|
||||||
|
margin-left: 5px;
|
||||||
|
padding-left: 20px;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-position: 0 50%;
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -300,7 +300,7 @@ WebGUI.Admin.prototype.pasteAsset
|
||||||
WebGUI.Admin.prototype.updateAssetHelpers
|
WebGUI.Admin.prototype.updateAssetHelpers
|
||||||
= function ( assetDef ) {
|
= function ( assetDef ) {
|
||||||
var typeEl = document.getElementById( 'helper_asset_name' );
|
var typeEl = document.getElementById( 'helper_asset_name' );
|
||||||
typeEl.style.backgroundImage = assetDef.icon;
|
typeEl.style.backgroundImage = 'url(' + assetDef.icon + ')';
|
||||||
typeEl.innerHTML = assetDef.type;
|
typeEl.innerHTML = assetDef.type;
|
||||||
|
|
||||||
// Clear old helpers
|
// Clear old helpers
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue