summaryrefslogtreecommitdiff
path: root/library
diff options
context:
space:
mode:
authorfisharebest <fisharebest@gmail.com>2013-06-29 22:39:25 +0000
committerfisharebest <fisharebest@gmail.com>2013-06-29 22:39:25 +0000
commitde6856e41ea859cf08380430f912cbf263c0f1e4 (patch)
tree86d565526f85c883fde373699fe757ff01f4ecd7 /library
parent660cbf5fdbf1c5ece6b6c3aadc752fc09a10fd47 (diff)
downloadwebtrees-de6856e41ea859cf08380430f912cbf263c0f1e4.tar.gz
webtrees-de6856e41ea859cf08380430f912cbf263c0f1e4.tar.bz2
webtrees-de6856e41ea859cf08380430f912cbf263c0f1e4.zip
Show separate pending changes for fam->indi links and indi-fam links on the families tab
Diffstat (limited to 'library')
-rw-r--r--library/WT/Controller/Individual.php20
1 files changed, 12 insertions, 8 deletions
diff --git a/library/WT/Controller/Individual.php b/library/WT/Controller/Individual.php
index c09304fa32..17c4b720a4 100644
--- a/library/WT/Controller/Individual.php
+++ b/library/WT/Controller/Individual.php
@@ -339,19 +339,23 @@ class WT_Controller_Individual extends WT_Controller_GedcomRecord {
* @return string returns 'person_box', 'person_boxF', or 'person_boxNN'
*/
function getPersonStyle($person) {
- $sex = $person->getSex();
- switch($sex) {
- case "M":
- $isf = "";
+ switch($person->getSex()) {
+ case 'M':
+ $class = 'person_box';
break;
- case "F":
- $isf = "F";
+ case 'F':
+ $class = 'person_boxF';
break;
default:
- $isf = "NN";
+ $class = 'person_boxNN';
break;
}
- return "person_box".$isf;
+ if ($person->isOld()) {
+ $class .= ' old';
+ } elseif ($person->isNew()) {
+ $class .= ' new';
+ }
+ return $class;
}
/**