Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(avatar): display configured max upload size #2015

Merged
merged 2 commits into from
Nov 11, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix(avatar): display configured max upload size
The form help text was using a hard-coded 10 character limit. I copied
the expression for the configured max size from
`resources/views/settings/imports/upload.blade.php`.
  • Loading branch information
ronaldevers committed Nov 11, 2018
commit 00e08c95ac80961621885a3ad8a62bf9ea39693f
2 changes: 1 addition & 1 deletion resources/views/people/edit.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
<div class="mb3 mb0-ns">
<label for="avatar">{{ trans('people.information_edit_avatar') }}</label>
<input type="file" class="form-control-file" name="avatar" id="avatar">
<small id="fileHelp" class="form-text text-muted">{{ trans('people.information_edit_max_size', ['size' => 10]) }}</small>
<small id="fileHelp" class="form-text text-muted">{{ trans('people.information_edit_max_size', ['size' => config('monica.max_upload_size')]) }}</small>
</div>
</div>

Expand Down