-
-
Notifications
You must be signed in to change notification settings - Fork 278
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add EAA edit class stubs linking to
BetaOnlyEdit
This is a prerequisite step for IMG-84 / PR #3150. It adds temporary (stub) edit classes that don't do anything except display the type of edit. The core display of the edits is delegated to the `BetaOnlyEdit` component added in a8e12fd.
- Loading branch information
Showing
6 changed files
with
113 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package MusicBrainz::Server::Edit::Event::AddEventArt; | ||
use Moose; | ||
use namespace::autoclean; | ||
|
||
use MusicBrainz::Server::Constants qw( $EDIT_EVENT_ADD_EVENT_ART ); | ||
use MusicBrainz::Server::Translation qw( N_lp ); | ||
|
||
extends 'MusicBrainz::Server::Edit'; | ||
|
||
sub edit_kind { 'add' } | ||
sub edit_name { N_lp('Add event art', 'singular, edit type') } | ||
sub edit_template { 'AddEventArt' } | ||
sub edit_type { $EDIT_EVENT_ADD_EVENT_ART } | ||
|
||
1; | ||
|
||
=head1 COPYRIGHT AND LICENSE | ||
Copyright (C) 2023 MetaBrainz Foundation | ||
This file is part of MusicBrainz, the open internet music database, | ||
and is licensed under the GPL version 2, or (at your option) any | ||
later version: http://www.gnu.org/licenses/gpl-2.0.txt | ||
=cut |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package MusicBrainz::Server::Edit::Event::EditEventArt; | ||
use Moose; | ||
use namespace::autoclean; | ||
|
||
use MusicBrainz::Server::Constants qw( $EDIT_EVENT_EDIT_EVENT_ART ); | ||
use MusicBrainz::Server::Translation qw( N_lp ); | ||
|
||
extends 'MusicBrainz::Server::Edit'; | ||
|
||
sub edit_kind { 'edit' } | ||
sub edit_name { N_lp('Edit event art', 'singular, edit type') } | ||
sub edit_template { 'EditEventArt' } | ||
sub edit_type { $EDIT_EVENT_EDIT_EVENT_ART } | ||
|
||
1; | ||
|
||
=head1 COPYRIGHT AND LICENSE | ||
Copyright (C) 2023 MetaBrainz Foundation | ||
This file is part of MusicBrainz, the open internet music database, | ||
and is licensed under the GPL version 2, or (at your option) any | ||
later version: http://www.gnu.org/licenses/gpl-2.0.txt | ||
=cut |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package MusicBrainz::Server::Edit::Event::RemoveEventArt; | ||
use Moose; | ||
use namespace::autoclean; | ||
|
||
use MusicBrainz::Server::Constants qw( $EDIT_EVENT_REMOVE_EVENT_ART ); | ||
use MusicBrainz::Server::Translation qw( N_lp ); | ||
|
||
extends 'MusicBrainz::Server::Edit'; | ||
|
||
sub edit_kind { 'remove' } | ||
sub edit_name { N_lp('Remove event art', 'singular, edit type') } | ||
sub edit_template { 'RemoveEventArt' } | ||
sub edit_type { $EDIT_EVENT_REMOVE_EVENT_ART } | ||
|
||
1; | ||
|
||
=head1 COPYRIGHT AND LICENSE | ||
Copyright (C) 2023 MetaBrainz Foundation | ||
This file is part of MusicBrainz, the open internet music database, | ||
and is licensed under the GPL version 2, or (at your option) any | ||
later version: http://www.gnu.org/licenses/gpl-2.0.txt | ||
=cut |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package MusicBrainz::Server::Edit::Event::ReorderEventArt; | ||
use Moose; | ||
use namespace::autoclean; | ||
|
||
use MusicBrainz::Server::Constants qw( $EDIT_EVENT_REORDER_EVENT_ART ); | ||
use MusicBrainz::Server::Translation qw( N_lp ); | ||
|
||
extends 'MusicBrainz::Server::Edit'; | ||
|
||
sub edit_kind { 'other' } | ||
sub edit_name { N_lp('Reorder event art', 'plural, edit type') } | ||
sub edit_template { 'ReorderEventArt' } | ||
sub edit_type { $EDIT_EVENT_REORDER_EVENT_ART } | ||
|
||
1; | ||
|
||
=head1 COPYRIGHT AND LICENSE | ||
Copyright (C) 2023 MetaBrainz Foundation | ||
This file is part of MusicBrainz, the open internet music database, | ||
and is licensed under the GPL version 2, or (at your option) any | ||
later version: http://www.gnu.org/licenses/gpl-2.0.txt | ||
=cut |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters