From 7e7b143cbccf3eef0bd76fc85146517165f0a036 Mon Sep 17 00:00:00 2001 From: Bojidar Marinov Date: Thu, 30 Jun 2016 18:22:23 +0300 Subject: [PATCH] Add more details to the asset listing --- src/queries.php | 2 +- templates/assets.phtml | 49 +++++++++++++++++++++++------------------- 2 files changed, 28 insertions(+), 23 deletions(-) diff --git a/src/queries.php b/src/queries.php index 35b91f8..40df918 100644 --- a/src/queries.php +++ b/src/queries.php @@ -13,7 +13,7 @@ return [ 'list' => 'SELECT category_id as id, category as name FROM `as_categories` WHERE category_type = :category_type ORDER BY category_id', ], 'asset' => [ - 'search' => 'SELECT asset_id, title, username as author, user_id as author_id, category_id, rating, cost, support_level, icon_url, version, version_string FROM `as_assets` + 'search' => 'SELECT asset_id, title, username as author, user_id as author_id, category, category_id, rating, cost, support_level, icon_url, version, version_string FROM `as_assets` LEFT JOIN `as_users` USING (user_id) LEFT JOIN `as_categories` USING (category_id) diff --git a/templates/assets.phtml b/templates/assets.phtml index d48dbaf..6b9ec96 100644 --- a/templates/assets.phtml +++ b/templates/assets.phtml @@ -1,27 +1,32 @@ - $asset): ?>
-
-
-
- - <?php echo htmlspecialchars($asset['title']) ?>'s icon' - -
-
-

- - (by ) - -

- ... + $asset): ?> +
+
+
+ + <?php echo htmlspecialchars($asset['title']) ?>'s icon + +
+
+

+ + + + + + + +

+ +

Submitted by user ;

+
-
+
- - \ No newline at end of file +