mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-15 11:22:40 +01:00
37a5c4b11a
Summary: Ref T3650. This adds a create transaction, transactions for metadata (title, langauge, view policy), and comments. Editor is used on all create /edit paths. Test Plan: made some pastes via web and email - yay. edited pastes - yay. verified txns showed up on pastes and in feed correctly. Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Maniphest Tasks: T3516, T3650 Differential Revision: https://secure.phabricator.com/D6645
44 lines
1.1 KiB
PHP
44 lines
1.1 KiB
PHP
<?php
|
|
|
|
final class PhabricatorApplicationMacro extends PhabricatorApplication {
|
|
|
|
public function getBaseURI() {
|
|
return '/macro/';
|
|
}
|
|
|
|
public function getShortDescription() {
|
|
return pht('Image Macros and Memes');
|
|
}
|
|
|
|
public function getIconName() {
|
|
return 'macro';
|
|
}
|
|
|
|
public function getTitleGlyph() {
|
|
return "\xE2\x9A\x98";
|
|
}
|
|
|
|
public function getApplicationGroup() {
|
|
return self::GROUP_UTILITIES;
|
|
}
|
|
|
|
public function getQuickCreateURI() {
|
|
return $this->getBaseURI().'create/';
|
|
}
|
|
|
|
public function getRoutes() {
|
|
return array(
|
|
'/macro/' => array(
|
|
'(query/(?P<key>[^/]+)/)?' => 'PhabricatorMacroListController',
|
|
'create/' => 'PhabricatorMacroEditController',
|
|
'view/(?P<id>[1-9]\d*)/' => 'PhabricatorMacroViewController',
|
|
'comment/(?P<id>[1-9]\d*)/' => 'PhabricatorMacroCommentController',
|
|
'edit/(?P<id>[1-9]\d*)/' => 'PhabricatorMacroEditController',
|
|
'disable/(?P<id>[1-9]\d*)/' => 'PhabricatorMacroDisableController',
|
|
'meme/' => 'PhabricatorMacroMemeController',
|
|
'meme/create/' => 'PhabricatorMacroMemeDialogController',
|
|
),
|
|
);
|
|
}
|
|
|
|
}
|