Files
zulip/web/templates/settings/image_upload_widget.hbs
Anders Kaseorg c1675913a2 web: Move web app to ‘web’ directory.
Ever since we started bundling the app with webpack, there’s been less
and less overlap between our ‘static’ directory (files belonging to
the frontend app) and Django’s interpretation of the ‘static’
directory (files served directly to the web).

Split the app out to its own ‘web’ directory outside of ‘static’, and
remove all the custom collectstatic --ignore rules.  This makes it
much clearer what’s actually being served to the web, and what’s being
bundled by webpack.  It also shrinks the release tarball by 3%.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-02-23 16:04:17 -08:00

29 lines
1.3 KiB
Handlebars

<div id="{{widget}}-upload-widget" class="inline-block image_upload_widget">
{{#if disabled_text}}
<div class="image-disabled {{#if is_editable_by_current_user}}hide{{/if}}">
<div class="image-hover-background"></div>
<span class="image-disabled-text flex" aria-label="{{ disabled_text }}" role="button" tabindex="0">
{{ disabled_text }}
</span>
</div>
{{/if}}
<div class="image_upload_button {{#unless is_editable_by_current_user}}hide{{/unless}}">
<div class="image-hover-background"></div>
<button class="image-delete-button" aria-label="{{ delete_text }}" role="button" tabindex="0">
&times;
</button>
<span class="image-delete-text" aria-label="{{ delete_text }}" tabindex="0">
{{ delete_text }}
</span>
<span class="image-upload-text" aria-label="{{ upload_text }}" role="button" tabindex="0">
{{ upload_text }}
</span>
<span class="upload-spinner-background">
<img class="image_upload_spinner" src="../../images/loading/tail-spin.svg" alt="" />
</span>
</div>
<img class="image-block" src="{{ image }}"/>
<input type="file" name="file_input" class="notvisible image_file_input" value="{{ upload_text }}" />
<div class="image_file_input_error text-error"></div>
</div>