From 8eacc94822897212c07a5bc9c0980cf4f3a8e75f Mon Sep 17 00:00:00 2001 From: Leigh B Stoller Date: Thu, 27 Feb 2014 14:02:17 -0700 Subject: [PATCH] Show the description of the selected profile. --- www/aptui/myprofiles.php | 7 +++++++ www/aptui/quickvm.css | 1 + 2 files changed, 8 insertions(+) diff --git a/www/aptui/myprofiles.php b/www/aptui/myprofiles.php index 644fdc3d1..aa6ebd5e4 100644 --- a/www/aptui/myprofiles.php +++ b/www/aptui/myprofiles.php @@ -147,6 +147,13 @@ while ($row = mysql_fetch_array($query_result)) { $created = $row["created"]; $public = $row["public"]; $creator = $row["creator"]; + $rspec = $row["rspec"];; + + $parsed_xml = simplexml_load_string($rspec); + if ($parsed_xml && + $parsed_xml->rspec_tour && $parsed_xml->rspec_tour->description) { + $desc = $parsed_xml->rspec_tour->description; + } echo " diff --git a/www/aptui/quickvm.css b/www/aptui/quickvm.css index 7e00c073f..daeba142e 100644 --- a/www/aptui/quickvm.css +++ b/www/aptui/quickvm.css @@ -109,6 +109,7 @@ body { #profile_well { height: 32px; padding: 0 0 0 9px; + margin-bottom: 10px; } #profile_well #selected_profile_text { -- GitLab