Changeset View
Changeset View
Standalone View
Standalone View
src/view/page/PhabricatorStandardPageView.php
Show First 20 Lines • Show All 271 Lines • ▼ Show 20 Lines | if ($user) { | ||||
->setIcon('fa-download'); | ->setIcon('fa-download'); | ||||
$lightbox_id = celerity_generate_unique_node_id(); | $lightbox_id = celerity_generate_unique_node_id(); | ||||
$download_form = phabricator_form( | $download_form = phabricator_form( | ||||
$user, | $user, | ||||
array( | array( | ||||
'action' => '#', | 'action' => '#', | ||||
'method' => 'POST', | 'method' => 'POST', | ||||
'class' => 'lightbox-download-form', | 'class' => 'lightbox-download-form', | ||||
'sigil' => 'download', | 'sigil' => 'download lightbox-download-submit', | ||||
), | ), | ||||
phutil_tag( | phutil_tag( | ||||
'button', | 'a', | ||||
array( | array( | ||||
'class' => 'button grey has-icon', | 'class' => 'lightbox-download phui-icon-circle hover-green', | ||||
'href' => '#', | |||||
), | ), | ||||
array( | array( | ||||
$icon, | $icon, | ||||
pht('Download'), | |||||
))); | ))); | ||||
Javelin::initBehavior( | Javelin::initBehavior( | ||||
'lightbox-attachments', | 'lightbox-attachments', | ||||
array( | array( | ||||
'lightbox_id' => $lightbox_id, | 'lightbox_id' => $lightbox_id, | ||||
'downloadForm' => $download_form, | 'downloadForm' => $download_form, | ||||
)); | )); | ||||
▲ Show 20 Lines • Show All 600 Lines • Show Last 20 Lines |