Compare commits

..

2 Commits

Author SHA1 Message Date
25613eea05 php8.3 2025-11-29 15:54:35 +09:00
5519c311ad feat: Show last modified by user on document viewer
- Display updater name next to update time
- Fall back to creator if no updater is set
- Add modified_by translation for all 8 languages
2025-11-29 12:12:17 +09:00
10 changed files with 19 additions and 7 deletions

View File

@@ -1,4 +1,4 @@
FROM php:8.2-fpm
FROM php:8.3-fpm
# 必要なパッケージのインストール
RUN apt-get update && apt-get install -y \

View File

@@ -22,6 +22,7 @@
'save' => 'Speichern',
'cancel' => 'Abbrechen',
'created_by' => 'Erstellt von',
'modified_by' => 'von',
'updated' => 'Aktualisiert',
'path' => 'Pfad',
'last_modified' => 'Zuletzt geändert',

View File

@@ -22,6 +22,7 @@
'save' => 'Save',
'cancel' => 'Cancel',
'created_by' => 'Created by',
'modified_by' => 'by',
'updated' => 'Updated',
'path' => 'Path',
'last_modified' => 'Last modified',

View File

@@ -22,6 +22,7 @@
'save' => 'Guardar',
'cancel' => 'Cancelar',
'created_by' => 'Creado por',
'modified_by' => 'por',
'updated' => 'Actualizado',
'path' => 'Ruta',
'last_modified' => 'Última modificación',

View File

@@ -22,6 +22,7 @@
'save' => 'Enregistrer',
'cancel' => 'Annuler',
'created_by' => 'Créé par',
'modified_by' => 'par',
'updated' => 'Mis à jour',
'path' => 'Chemin',
'last_modified' => 'Dernière modification',

View File

@@ -22,6 +22,7 @@
'save' => '保存',
'cancel' => 'キャンセル',
'created_by' => '作成者',
'modified_by' => '更新者:',
'updated' => '更新日',
'path' => 'パス',
'last_modified' => '最終更新',

View File

@@ -22,6 +22,7 @@
'save' => '저장',
'cancel' => '취소',
'created_by' => '작성자',
'modified_by' => '수정자:',
'updated' => '업데이트',
'path' => '경로',
'last_modified' => '마지막 수정',

View File

@@ -22,6 +22,7 @@
'save' => '保存',
'cancel' => '取消',
'created_by' => '创建者',
'modified_by' => '修改者:',
'updated' => '更新时间',
'path' => '路径',
'last_modified' => '最后修改',

View File

@@ -22,6 +22,7 @@
'save' => '儲存',
'cancel' => '取消',
'created_by' => '建立者',
'modified_by' => '修改者:',
'updated' => '更新時間',
'path' => '路徑',
'last_modified' => '最後修改',

View File

@@ -20,15 +20,19 @@ class="inline-flex items-center px-4 py-2 bg-indigo-600 text-white text-sm font-
</div>
<div class="flex items-center text-sm text-gray-500 space-x-4">
@if($document->created_by)
<span>
{{ __('messages.documents.created_by') }} {{ $document->creator->name }}
</span>
@endif
<span>
{{ __('messages.documents.updated') }} {{ $document->updated_at->diffForHumans() }}
</span>
@if($document->updated_by && $document->updater)
<span>
{{ __('messages.documents.modified_by') }} {{ $document->updater->name }}
</span>
@elseif($document->created_by && $document->creator)
<span>
{{ __('messages.documents.modified_by') }} {{ $document->creator->name }}
</span>
@endif
</div>
</div>