Sha256: b047d358a2e0b85518557d449356fc18f152e727747a7fdc0a8a8060e6a97f93

Contents?: true

Size: 1.34 KB

Versions: 1

Compression:

Stored size: 1.34 KB

Contents

<h4><%= @asset.title || @asset.id %></h4>

<div class="row">
    <div class="span6 asset-preview">
        <div class="asset-wrapper">
            <%- @asset.tags[@tag] %>
        </div>
        <table style="margin-top: 10px;">
            <tr><td style="width:100px;"><strong style="margin-right:10px;">Asset ID</strong></td><td><%= @asset.id %></td></tr>
            <tr>
                <td><strong style="margin-right:10px;">Size</strong></td>
                <td><%= @asset.sizes[@tag].width %> x <%= @asset.sizes[@tag].height %></td>
            </tr>

            <tr>
                <td><strong style="margin-right:10px;">URL</strong></td>
                <td><input type="text" value="<%= @asset.urls[@tag] %>" style="margin-right:10px;width:300px;" />(<a href="<%= @asset.urls[@tag] %>" target="_blank">link</a>)</td>
            </tr>

            <tr>
                <td><strong style="margin-right:10px;">Tag</strong></td>
                <td><input type="text" value="<%= @asset.tags[@tag] %>" style="width:300px;" /></td>
            </tr>
        </table>
    </div>

    <div class="span2">
        <h4>Sizes</h4>
        <ul class="asset_sizes">
        <% for code, size of @asset.sizes: %>
            <li data-size="<%= code %>" <% if (@tag == code): %>class="selected"<% end %>><%= code %></li>
        <% end %>
        </ul>
    </div>
</div>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
asset_host_core-2.0.0.beta app/assets/javascripts/asset_host_core/templates/asset_preview.jst.eco