@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Allow any {icon} to spin

Summary: We are greedily hoarding this for ourselves, when we could enrich the world.

Test Plan: Used `{icon cog spin}`.

Reviewers: chad

Reviewed By: chad

Differential Revision: https://secure.phabricator.com/D14369

authored by

epriestley and committed by
epriestley
096117aa 2c3dbc48

+16 -1
+10 -1
src/applications/macro/markup/PhabricatorIconRemarkupRule.php
··· 41 41 42 42 $defaults = array( 43 43 'color' => null, 44 + 'spin' => false, 44 45 ); 45 46 46 47 $options = idx($extra, 1, ''); ··· 70 71 $color = null; 71 72 } 72 73 74 + $classes = array(); 75 + $classes[] = $color; 76 + 77 + $spin = $options['spin']; 78 + if ($spin) { 79 + $classes[] = 'ph-spin'; 80 + } 81 + 73 82 $icon_view = id(new PHUIIconView()) 74 - ->setIconFont('fa-'.$icon, $color); 83 + ->setIconFont('fa-'.$icon, implode(' ', $classes)); 75 84 76 85 return $this->getEngine()->storeText($icon_view); 77 86 }
+6
src/docs/user/userguide/remarkup.diviner
··· 496 496 [[ http://fortawesome.github.io/Font-Awesome/ | FontAwesome ]], so you can also 497 497 browse the collection there.) 498 498 499 + You can add `spin` to make the icon spin: 500 + 501 + {icon cog spin} 502 + 503 + This renders: {icon cog spin} 504 + 499 505 500 506 = Phriction Documents = 501 507