Skip to content

Commit c7a7574

Browse files
committedMay 28, 2014
Remove oneline feed story
Summary: People seem confused and it is a little inconsistent. Also added other app icon types. Test Plan: Viewed a number of feed stories. Reviewers: epriestley Reviewed By: epriestley Subscribers: epriestley, Korvin Differential Revision: https://secure.phabricator.com/D9320
1 parent 1855e66 commit c7a7574

File tree

1 file changed

+18
-30
lines changed

1 file changed

+18
-30
lines changed
 

‎src/view/phui/PHUIFeedStoryView.php

+18-30
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,6 @@ public function render() {
142142

143143
require_celerity_resource('phui-feed-story-css');
144144
Javelin::initBehavior('phabricator-hovercards');
145-
$oneline = !$this->hasChildren();
146145

147146
$body = null;
148147
$foot = null;
@@ -186,18 +185,6 @@ public function render() {
186185
$icon->setSpriteSheet(PHUIIconView::SPRITE_APPS);
187186
}
188187

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-
201188
$action_list = array();
202189
$icons = null;
203190
foreach ($this->actions as $action) {
@@ -223,10 +210,9 @@ public function render() {
223210
'class' => 'phui-feed-story-head',
224211
),
225212
array(
226-
(!$oneline ? $actor : null),
213+
$actor,
227214
nonempty($this->title, pht('Untitled Story')),
228215
$icons,
229-
$ol_foot
230216
));
231217

232218
if (!empty($this->tokenBar)) {
@@ -249,23 +235,16 @@ public function render() {
249235
$body_content);
250236
}
251237

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));
264246

265247
$classes = array('phui-feed-story');
266-
if ($oneline) {
267-
$classes[] = 'phui-feed-story-oneline';
268-
}
269248

270249
return id(new PHUIBoxView())
271250
->addClass(implode(' ', $classes))
@@ -282,6 +261,15 @@ public function setAppIconFromPHID($phid) {
282261
case PhabricatorMacroPHIDTypeMacro::TYPECONST:
283262
$this->setAppIcon("macro-dark");
284263
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;
285273
}
286274
}
287275
}

0 commit comments

Comments
 (0)
Failed to load comments.