add unarchiveall asset helper for collabs
This commit is contained in:
parent
a7f60c7d45
commit
f0cd4ebbd5
1 changed files with 22 additions and 19 deletions
|
|
@ -957,6 +957,28 @@ sub duplicateBranch {
|
||||||
return $newAsset;
|
return $newAsset;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
=head2 getHelpers ( )
|
||||||
|
|
||||||
|
Add the collaboration-specific asset helpers
|
||||||
|
|
||||||
|
=cut
|
||||||
|
|
||||||
|
override getHelpers => sub {
|
||||||
|
my ( $self ) = @_;
|
||||||
|
my $helpers = super();
|
||||||
|
|
||||||
|
my $i18n = WebGUI::International->new($self->session, 'Asset_Collaboration');
|
||||||
|
$helpers->{ unarchiveAll } = {
|
||||||
|
label => $i18n->get("unarchive all"),
|
||||||
|
url => $self->getUrl( 'func=unarchiveAll' ),
|
||||||
|
confirm => $i18n->get("unarchive confirm"),
|
||||||
|
};
|
||||||
|
|
||||||
|
return $helpers;
|
||||||
|
};
|
||||||
|
|
||||||
#-------------------------------------------------------------------
|
#-------------------------------------------------------------------
|
||||||
|
|
||||||
=head2 getNewThreadUrl( )
|
=head2 getNewThreadUrl( )
|
||||||
|
|
@ -1595,25 +1617,6 @@ sub view {
|
||||||
|
|
||||||
#-------------------------------------------------------------------
|
#-------------------------------------------------------------------
|
||||||
|
|
||||||
=head2 www_edit
|
|
||||||
|
|
||||||
Override the master class to add an "Unarchive All" link.
|
|
||||||
|
|
||||||
=cut
|
|
||||||
|
|
||||||
sub www_edit {
|
|
||||||
my $self = shift;
|
|
||||||
return $self->session->privilege->insufficient() unless $self->canEdit;
|
|
||||||
return $self->session->privilege->locked() unless $self->canEditIfLocked;
|
|
||||||
my $i18n = WebGUI::International->new($self->session, 'Asset_Collaboration');
|
|
||||||
# Unarchive All needs to be an asset helper
|
|
||||||
#$self->getAdminConsole->addConfirmedSubmenuItem($self->getUrl('func=unarchiveAll'),$i18n->get("unarchive all"),$i18n->get("unarchive confirm"));
|
|
||||||
#return $self->getAdminConsole->render($self->getEditForm->toHtml,$i18n->get("assetName"));
|
|
||||||
super();
|
|
||||||
}
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------
|
|
||||||
|
|
||||||
=head2 www_search ( )
|
=head2 www_search ( )
|
||||||
|
|
||||||
The web method to display and use the forum search interface.
|
The web method to display and use the forum search interface.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue