Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/view/DiffusionTagListView.php
Show First 20 Lines • Show All 67 Lines • ▼ Show 20 Lines | foreach ($this->tags as $tag) { | ||||
$description = null; | $description = null; | ||||
if ($tag->getType() == 'git/tag') { | if ($tag->getType() == 'git/tag') { | ||||
// In Git, a tag may be a "real" tag, or just a reference to a commit. | // In Git, a tag may be a "real" tag, or just a reference to a commit. | ||||
// If it's a real tag, use the message on the tag, since this may be | // If it's a real tag, use the message on the tag, since this may be | ||||
// unique data which isn't otherwise available. | // unique data which isn't otherwise available. | ||||
$description = $tag->getDescription(); | $description = $tag->getDescription(); | ||||
} else { | } else { | ||||
if ($commit && $commit->getCommitData()) { | if ($commit) { | ||||
$description = $commit->getCommitData()->getSummary(); | $description = $commit->getSummary(); | ||||
} else { | } else { | ||||
$description = $tag->getDescription(); | $description = $tag->getDescription(); | ||||
} | } | ||||
} | } | ||||
$rows[] = array( | $rows[] = array( | ||||
$tag_link, | $tag_link, | ||||
$commit_link, | $commit_link, | ||||
Show All 25 Lines |