-
Notifications
You must be signed in to change notification settings - Fork 577
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
[2.x] Feature: Allow displaying the date of an uploaded file #2173
base: 2.x
Are you sure you want to change the base?
[2.x] Feature: Allow displaying the date of an uploaded file #2173
Conversation
PR Summary
|
src/Models/File.php
Outdated
@@ -43,7 +43,9 @@ public function toCmsArray() | |||
'original' => FileService::getUrl($this->uuid), | |||
'size' => $this->size, | |||
'filesizeInMb' => number_format($this->attributes['size'] / 1048576, 2), | |||
]; | |||
] + (config('twill.file-library.show_uploaded_date') | |||
? ['uploadedDate' => $this->created_at->format("d/m/Y H:i")] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems this is not using the newly added option twill.file-library.format_uploaded_date
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On which branch (v2, v3)do you me to PR this update?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gilbo75 do you need this feature on a Twill 2 project? If you do, please address the issue mentioned by Tofandel and I can merge and release a new minor on Twill 2.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello,
Yes, I need this feature on Twill 2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello,
I would like to merge this branch
Hello,
yes, I need this feature on Twill 2
…On Wed, Jun 5, 2024 at 1:55 AM Quentin Renard ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In src/Models/File.php
<#2173 (comment)>:
> @@ -43,7 +43,9 @@ public function toCmsArray()
'original' => FileService::getUrl($this->uuid),
'size' => $this->size,
'filesizeInMb' => number_format($this->attributes['size'] / 1048576, 2),
- ];
+ ] + (config('twill.file-library.show_uploaded_date')
+ ? ['uploadedDate' => $this->created_at->format("d/m/Y H:i")]
@gilbo75 <https://github.com/gilbo75> do you need this feature on a Twill
2 project? If you do, please address the issue mentioned by Tofandel and I
can merge and release a new minor on Twill 2.
—
Reply to this email directly, view it on GitHub
<#2173 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJXVNP242O6OD2WYXQL6EZLZFZHWRAVCNFSM6AAAAAAVTYTJKKVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDAOJXGU4TQNRXGU>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@gilbo75 Why did you close the PR instead of just committing the suggested change? |
Co-authored-by: Adrien Foulon <[email protected]>
This feature allows displaying the date of an uploaded file in the file library.
This option is manageable with a Twill variable.