@@ -142,7 +142,6 @@ public function render() {
142
142
143
143
require_celerity_resource ('phui-feed-story-css ' );
144
144
Javelin::initBehavior ('phabricator-hovercards ' );
145
- $ oneline = !$ this ->hasChildren ();
146
145
147
146
$ body = null ;
148
147
$ foot = null ;
@@ -186,18 +185,6 @@ public function render() {
186
185
$ icon ->setSpriteSheet (PHUIIconView::SPRITE_APPS );
187
186
}
188
187
189
- $ ol_foot = null ;
190
- if ($ oneline ) {
191
- $ ol_foot = phutil_tag (
192
- 'div ' ,
193
- array (
194
- 'class ' => 'phui-feed-story-oneline-foot '
195
- ),
196
- array (
197
- $ icon ,
198
- $ foot ));
199
- }
200
-
201
188
$ action_list = array ();
202
189
$ icons = null ;
203
190
foreach ($ this ->actions as $ action ) {
@@ -223,10 +210,9 @@ public function render() {
223
210
'class ' => 'phui-feed-story-head ' ,
224
211
),
225
212
array (
226
- (! $ oneline ? $ actor : null ) ,
213
+ $ actor ,
227
214
nonempty ($ this ->title , pht ('Untitled Story ' )),
228
215
$ icons ,
229
- $ ol_foot
230
216
));
231
217
232
218
if (!empty ($ this ->tokenBar )) {
@@ -249,23 +235,16 @@ public function render() {
249
235
$ body_content );
250
236
}
251
237
252
- if ($ oneline ) {
253
- $ foot = null ;
254
- } else {
255
- $ foot = phutil_tag (
256
- 'div ' ,
257
- array (
258
- 'class ' => 'phui-feed-story-foot ' ,
259
- ),
260
- array (
261
- $ icon ,
262
- $ foot ));
263
- }
238
+ $ foot = phutil_tag (
239
+ 'div ' ,
240
+ array (
241
+ 'class ' => 'phui-feed-story-foot ' ,
242
+ ),
243
+ array (
244
+ $ icon ,
245
+ $ foot ));
264
246
265
247
$ classes = array ('phui-feed-story ' );
266
- if ($ oneline ) {
267
- $ classes [] = 'phui-feed-story-oneline ' ;
268
- }
269
248
270
249
return id (new PHUIBoxView ())
271
250
->addClass (implode (' ' , $ classes ))
@@ -282,6 +261,15 @@ public function setAppIconFromPHID($phid) {
282
261
case PhabricatorMacroPHIDTypeMacro::TYPECONST :
283
262
$ this ->setAppIcon ("macro-dark " );
284
263
break ;
264
+ case ManiphestPHIDTypeTask::TYPECONST :
265
+ $ this ->setAppIcon ('maniphest-dark ' );
266
+ break ;
267
+ case DifferentialPHIDTypeRevision::TYPECONST :
268
+ $ this ->setAppIcon ('differential-dark ' );
269
+ break ;
270
+ case PhabricatorCalendarPHIDTypeEvent::TYPECONST :
271
+ $ this ->setAppIcon ('calendar-dark ' );
272
+ break ;
285
273
}
286
274
}
287
275
}
0 commit comments