Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14061424
D14369.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D14369.diff
View Options
diff --git a/src/applications/macro/markup/PhabricatorIconRemarkupRule.php b/src/applications/macro/markup/PhabricatorIconRemarkupRule.php
--- a/src/applications/macro/markup/PhabricatorIconRemarkupRule.php
+++ b/src/applications/macro/markup/PhabricatorIconRemarkupRule.php
@@ -41,6 +41,7 @@
$defaults = array(
'color' => null,
+ 'spin' => false,
);
$options = idx($extra, 1, '');
@@ -70,8 +71,16 @@
$color = null;
}
+ $classes = array();
+ $classes[] = $color;
+
+ $spin = $options['spin'];
+ if ($spin) {
+ $classes[] = 'ph-spin';
+ }
+
$icon_view = id(new PHUIIconView())
- ->setIconFont('fa-'.$icon, $color);
+ ->setIconFont('fa-'.$icon, implode(' ', $classes));
return $this->getEngine()->storeText($icon_view);
}
diff --git a/src/docs/user/userguide/remarkup.diviner b/src/docs/user/userguide/remarkup.diviner
--- a/src/docs/user/userguide/remarkup.diviner
+++ b/src/docs/user/userguide/remarkup.diviner
@@ -496,6 +496,12 @@
[[ http://fortawesome.github.io/Font-Awesome/ | FontAwesome ]], so you can also
browse the collection there.)
+You can add `spin` to make the icon spin:
+
+ {icon cog spin}
+
+This renders: {icon cog spin}
+
= Phriction Documents =
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Nov 19, 6:34 AM (6 h, 3 m ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6734428
Default Alt Text
D14369.diff (1 KB)
Attached To
Mode
D14369: Allow any {icon} to spin
Attached
Detach File
Event Timeline
Log In to Comment