mirror of
https://we.phorge.it/source/phorge.git
synced 2025-01-10 14:51:06 +01:00
Display //no name// for files without name to make the link clickable
Test Plan: /file/ Reviewers: epriestley Reviewed By: epriestley CC: aran, epriestley Differential Revision: https://secure.phabricator.com/D1679
This commit is contained in:
parent
bf3dd8663c
commit
48ab6aa465
1 changed files with 3 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright 2011 Facebook, Inc.
|
* Copyright 2012 Facebook, Inc.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -237,6 +237,7 @@ class PhabricatorFileListController extends PhabricatorFileController {
|
||||||
$rowc[] = '';
|
$rowc[] = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$name = $file->getName();
|
||||||
$rows[] = array(
|
$rows[] = array(
|
||||||
phutil_escape_html('F'.$file->getID()),
|
phutil_escape_html('F'.$file->getID()),
|
||||||
$file->getAuthorPHID()
|
$file->getAuthorPHID()
|
||||||
|
@ -247,7 +248,7 @@ class PhabricatorFileListController extends PhabricatorFileController {
|
||||||
array(
|
array(
|
||||||
'href' => $file->getBestURI(),
|
'href' => $file->getBestURI(),
|
||||||
),
|
),
|
||||||
phutil_escape_html($file->getName())),
|
($name != '' ? phutil_escape_html($name) : '<em>no name</em>')),
|
||||||
phutil_escape_html(number_format($file->getByteSize()).' bytes'),
|
phutil_escape_html(number_format($file->getByteSize()).' bytes'),
|
||||||
phutil_render_tag(
|
phutil_render_tag(
|
||||||
'a',
|
'a',
|
||||||
|
|
Loading…
Reference in a new issue