With the {F...} syntax, render non-images as links

Summary:
We render a huge picture of a PDF for PDFs right now, etc. This is hella dumb.

Also allow users to force this rendering style, and change the link name.

Test Plan: Uploaded image and non-image files, used layout=link and name=....

Reviewers: btrahan

Reviewed By: btrahan

CC: aran, epriestley

Maniphest Tasks: T1040

Differential Revision: https://secure.phabricator.com/D2006
This commit is contained in:
epriestley
2012-03-23 15:32:07 -07:00
parent 2ef3e69e58
commit 2ee5086ce9
5 changed files with 54 additions and 24 deletions

View File

@@ -296,10 +296,13 @@ You can set file display options like this:
Valid options are:
- **layout** left (default), center, right, inline
- **layout** left (default), center, right, inline, link (render a link
instead of a thumbnail for images)
- **float** If layout is set to left or right, the image will be floated so
text wraps around it.
- **size** thumb (default), full
- **name** with `layout=link` or for non-images, use this name for the link
text
= Embedding Media =