mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
3ee8f505b7
The main benefit of this is so that authors who make use of .editorconfig don't end up with whitespace changes in their PRs. Spaces vs. tabs has been left alone, although that could do with a tidy-up in SS4 after the switch to PSR-1/2. The command used was this: for match in '*.ss' '*.css' '*.scss' '*.html' '*.yml' '*.php' '*.js' '*.csv' '*.inc' '*.php5'; do find . -path ./thirdparty -not -prune -o -path ./admin/thirdparty -not -prune -o -type f -name "$match" -exec sed -E -i '' 's/[[:space:]]+$//' {} \+ find . -path ./thirdparty -not -prune -o -path ./admin/thirdparty -not -prune -o -type f -name "$match" | xargs perl -pi -e 's/ +$//' done
49 lines
1.5 KiB
Scheme
49 lines
1.5 KiB
Scheme
<div class="ss-uploadfield-item $appCategory ss-htmleditorfield-file template-upload" data-id="$File.ID" data-url="$URL">
|
|
|
|
|
|
<div class="ss-uploadfield-item-preview">
|
|
<% if $Width %>
|
|
<span>$Preview.Fit(30, 40)</span>
|
|
<% else %>
|
|
<span class="no-preview"></span>
|
|
<% end_if %>
|
|
</div>
|
|
|
|
<div class="ss-uploadfield-item-info">
|
|
<label class="ss-uploadfield-item-name">
|
|
<span class="name" title="$Name">
|
|
$Name
|
|
</span>
|
|
<% if $Width %>
|
|
<div class="ss-uploadfield-item-status ui-state-success-text" title="<%t UploadField.Dimensions 'Dimensions' %>">
|
|
{$Width} x {$Height} (px)
|
|
</div>
|
|
<% end_if %>
|
|
|
|
<div class="clear"><!-- --></div>
|
|
</label>
|
|
<div class="ss-uploadfield-item-actions">
|
|
<button type="button" data-icon="deleteLight" class="ss-uploadfield-item-cancel ss-uploadfield-item-remove" title="<%t UploadField.REMOVE 'Remove' %>">
|
|
<%t UploadField.REMOVE 'Remove' %>
|
|
</button>
|
|
|
|
<div class="ss-uploadfield-item-edit edit">
|
|
<button type="button" class="ss-uploadfield-item-edit ss-ui-button ui-corner-all" title="<%t UploadField.EDITINFO 'Edit this file' %>" data-icon="pencil">
|
|
<%t UploadField.EDIT 'Edit' %>
|
|
<span class="toggle-details">
|
|
<span class="toggle-details-icon"></span>
|
|
</span>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
<% if $Info %><div class="info">$Info</div><% end_if %>
|
|
<div class="details ss-uploadfield-item-editform">
|
|
<fieldset>
|
|
<% loop $Fields %>
|
|
$FieldHolder
|
|
<% end_loop %>
|
|
</fieldset>
|
|
</div>
|
|
</div>
|
|
</div>
|