Skip to content

Commit

Permalink
fix: update view template for label event
Browse files Browse the repository at this point in the history
  • Loading branch information
Phú Tống committed May 10, 2024
1 parent 632dedb commit d2966fa
Show file tree
Hide file tree
Showing 7 changed files with 48 additions and 48 deletions.
18 changes: 9 additions & 9 deletions lang/de/events/github/label.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,23 @@

return [
'created' => [
'title' => '💬 <b>New Label</b> ⚠️ - 🦑:repo by :user',
'title' => '<b>New Label</b> :repo by :user',
],
'deleted' => [
'title' => '🗑 <b>Label Deleted</b> - 🦑:repo by :user',
'title' => '<b>Label Deleted</b> - :repo by :user',
],
'edited' => [
'title' => '👷‍♂️🛠️ <b>Label has been edited</b> - 🦑:repo by :user',
'title' => '<b>Label has been edited</b> - :repo by :user',
'changes' => [
'title' => [
'name' => '📖 <b>Title</b> has been changed',
'from' => '📝 <b>From:</b> :title_from',
'to' => '🏷 <b>To:</b> :title_to',
'name' => '<b>Title</b> has been changed',
'from' => '<b>From:</b> :title_from',
'to' => '<b>To:</b> :title_to',
],
'description' => [
'name' => '📖 <b>Description</b> has been changed',
'from' => '📝 <b>From:</b> :description_from',
'to' => '🏷 <b>To:</b> :description_to',
'name' => '<b>Description</b> has been changed',
'from' => '<b>From:</b> :description_from',
'to' => '<b>To:</b> :description_to',
],
],
],
Expand Down
18 changes: 9 additions & 9 deletions lang/en/events/github/label.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,23 @@

return [
'created' => [
'title' => '💬 <b>New Label</b> ⚠️ - 🦑:repo by :user',
'title' => '<b>New Label</b> :repo by :user',
],
'deleted' => [
'title' => '🗑 <b>Label Deleted</b> - 🦑:repo by :user',
'title' => '<b>Label Deleted</b> - :repo by :user',
],
'edited' => [
'title' => '👷‍♂️🛠️ <b>Label has been edited</b> - 🦑:repo by :user',
'title' => '<b>Label has been edited</b> - :repo by :user',
'changes' => [
'title' => [
'name' => '📖 <b>Title</b> has been changed',
'from' => '📝 <b>From:</b> :title_from',
'to' => '🏷 <b>To:</b> :title_to',
'name' => '<b>Title</b> has been changed',
'from' => '<b>From:</b> :title_from',
'to' => '<b>To:</b> :title_to',
],
'description' => [
'name' => '📖 <b>Description</b> has been changed',
'from' => '📝 <b>From:</b> :description_from',
'to' => '🏷 <b>To:</b> :description_to',
'name' => '<b>Description</b> has been changed',
'from' => '<b>From:</b> :description_from',
'to' => '<b>To:</b> :description_to',
],
],
],
Expand Down
18 changes: 9 additions & 9 deletions lang/ja/events/github/label.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,23 @@

return [
'created' => [
'title' => '💬 <b>New Label</b> ⚠️ - 🦑:repo by :user',
'title' => '<b>New Label</b> :repo by :user',
],
'deleted' => [
'title' => '🗑 <b>Label Deleted</b> - 🦑:repo by :user',
'title' => '<b>Label Deleted</b> - :repo by :user',
],
'edited' => [
'title' => '👷‍♂️🛠️ <b>Label has been edited</b> - 🦑:repo by :user',
'title' => '<b>Label has been edited</b> - :repo by :user',
'changes' => [
'title' => [
'name' => '📖 <b>Title</b> has been changed',
'from' => '📝 <b>From:</b> :title_from',
'to' => '🏷 <b>To:</b> :title_to',
'name' => '<b>Title</b> has been changed',
'from' => '<b>From:</b> :title_from',
'to' => '<b>To:</b> :title_to',
],
'description' => [
'name' => '📖 <b>Description</b> has been changed',
'from' => '📝 <b>From:</b> :description_from',
'to' => '🏷 <b>To:</b> :description_to',
'name' => '<b>Description</b> has been changed',
'from' => '<b>From:</b> :description_from',
'to' => '<b>To:</b> :description_to',
],
],
],
Expand Down
18 changes: 9 additions & 9 deletions lang/vi/events/github/label.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,23 @@

return [
'created' => [
'title' => '💬 <b>New Label</b> ⚠️ - 🦑:repo by :user',
'title' => '<b>New Label</b> :repo by :user',
],
'deleted' => [
'title' => '🗑 <b>Label Deleted</b> - 🦑:repo by :user',
'title' => '<b>Label Deleted</b> - :repo by :user',
],
'edited' => [
'title' => '👷‍♂️🛠️ <b>Label has been edited</b> - 🦑:repo by :user',
'title' => '<b>Label has been edited</b> - :repo by :user',
'changes' => [
'title' => [
'name' => '📖 <b>Title</b> has been changed',
'from' => '📝 <b>From:</b> :title_from',
'to' => '🏷 <b>To:</b> :title_to',
'name' => '<b>Title</b> has been changed',
'from' => '<b>From:</b> :title_from',
'to' => '<b>To:</b> :title_to',
],
'description' => [
'name' => '📖 <b>Description</b> has been changed',
'from' => '📝 <b>From:</b> :description_from',
'to' => '🏷 <b>To:</b> :description_to',
'name' => '<b>Description</b> has been changed',
'from' => '<b>From:</b> :description_from',
'to' => '<b>To:</b> :description_to',
],
],
],
Expand Down
4 changes: 2 additions & 2 deletions resources/views/events/github/label/created.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
$description = strlen($label->description) > 50 ? $label->description : substr($label->description, 0, 50).'...';
?>

{!! __('tg-notifier::events/github/label.created.title', [
'repo' => "<a href='{$payload->repository->html_url}'>{$payload->repository->full_name}</a>",
💬 {!! __('tg-notifier::events/github/label.created.title', [
'repo' => "⚠️ - 🦑<a href='{$payload->repository->html_url}'>{$payload->repository->full_name}</a>",
'user' => "<a href='{$payload->sender->html_url}'>@{$payload->sender->login}</a>",
]
) !!}
Expand Down
4 changes: 2 additions & 2 deletions resources/views/events/github/label/deleted.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
?>

{!! __('tg-notifier::events/github/label.deleted.title', [
'repo' => "<a href='{$payload->repository->html_url}'>{$payload->repository->full_name}</a>",
🗑 {!! __('tg-notifier::events/github/label.deleted.title', [
'repo' => "🦑<a href='{$payload->repository->html_url}'>{$payload->repository->full_name}</a>",
'user' => "<a href='{$payload->sender->html_url}'>@{$payload->sender->login}</a>",
]
) !!}
Expand Down
16 changes: 8 additions & 8 deletions resources/views/events/github/label/edited.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,24 @@
}
?>

{!! __('tg-notifier::events/github/label.edited.title', [
'repo' => "<a href='{$payload->repository->html_url}'>{$payload->repository->full_name}</a>",
👷‍♂️🛠️ {!! __('tg-notifier::events/github/label.edited.title', [
'repo' => "🦑<a href='{$payload->repository->html_url}'>{$payload->repository->full_name}</a>",
'user' => "<a href='{$payload->sender->html_url}'>@{$payload->sender->login}</a>",
]
) !!}

@if(isset($changes->name->from))
{!! __('tg-notifier::events/github/label.edited.changes.title.name') !!}
{!! __('tg-notifier::events/github/label.edited.changes.title.from', ['title_from' => $payload->changes->name->from]) !!}
{!! __('tg-notifier::events/github/label.edited.changes.title.to', ['title_to' => $payload->label->name]) !!}
📖 {!! __('tg-notifier::events/github/label.edited.changes.title.name') !!}
📝 {!! __('tg-notifier::events/github/label.edited.changes.title.from', ['title_from' => $payload->changes->name->from]) !!}
🏷 {!! __('tg-notifier::events/github/label.edited.changes.title.to', ['title_to' => $payload->label->name]) !!}
@else
📢 <b>{{ $label->name }}</b>
@endif

@if(isset($changes->description->from))
{!! __('tg-notifier::events/github/label.edited.changes.description.name') !!}
{!! __('tg-notifier::events/github/label.edited.changes.description.from', ['description_from' => $description_changes]) !!}
{!! __('tg-notifier::events/github/label.edited.changes.description.to', ['description_to' => $description]) !!}
📖 {!! __('tg-notifier::events/github/label.edited.changes.description.name') !!}
📝 {!! __('tg-notifier::events/github/label.edited.changes.description.from', ['description_from' => $description_changes]) !!}
🏷 {!! __('tg-notifier::events/github/label.edited.changes.description.to', ['description_to' => $description]) !!}
@else
<pre>{{ $description }}</pre>
@endif

0 comments on commit d2966fa

Please sign in to comment.