From d4441e13a7f9a179d03001f6b83adf5ea53acf45 Mon Sep 17 00:00:00 2001 From: Darin McBride Date: Wed, 4 Feb 2015 21:04:19 -0700 Subject: [PATCH] Add admin notes on empires so that admins can mark down players who might be related (siblings both playing the game), for example, among many other possibilities. --- lib/Lacuna/Web/Admin.pm | 45 +++++++++++++++++++++++++++++++++++++++++ var/upgrades/3.0909.sql | 12 +++++++++++ 2 files changed, 57 insertions(+) diff --git a/lib/Lacuna/Web/Admin.pm b/lib/Lacuna/Web/Admin.pm index 8303cc94..a89783c2 100644 --- a/lib/Lacuna/Web/Admin.pm +++ b/lib/Lacuna/Web/Admin.pm @@ -963,6 +963,16 @@ sub www_view_empire { $out .= sprintf('Isolationist%sToggle', $empire->is_isolationist, $empire->id); $out .= sprintf('Admin%s', $empire->is_admin); $out .= sprintf('Mission Curator%sToggle', $empire->is_mission_curator, $empire->id); + + my $notes = Lacuna->db->resultset('Log::EmpireAdminNotes')->find({empire_id => $empire->id},{order_by => { -desc => 'id' }, limit => 1 }); + $out .= sprintf('Admin Notes
Last set by: %s
Last set on: %s
View Log', + $empire->id, + $notes ? $notes->notes : '', + $notes ? $notes->creator : 'not set yet', + $notes ? $notes->date_stamp : 'not set yet', + $empire->id + ); + $out .= '