[aur-dev] [PATCH 0/5] Package details view layout changes
This patch set basically syncs the package details layout with what archweb uses and makes the rendered page, as well as the source code, look cleaner and more consistent. I plan to put more efforts in cleaning up our HTML and making the AUR integrate well with the rest of www.archlinux.org. We might eventually just use "archweb.css" with a few AUR-specific extensions. Any objections from the "Arch Linux/AUR segregation" front..? Dan, any objections? Lukas Fleischer (5): pkg_details.php: Use a table for package details pkg_details.php: Add link to category search pkg_details.php: Sync metadata layout with archweb pkg_details.php: Sync package actions layout with archweb pkg_details.php: Use sane format for date strings web/html/css/arch.css | 3 - web/html/css/containers.css | 81 +++++++++++++++ web/template/pkg_details.php | 226 +++++++++++++++++++++--------------------- 3 files changed, 196 insertions(+), 114 deletions(-) -- 1.7.7.2
Given that we only show a bunch of labels and associated details, using
a table seems reasonable here.
The CSS snippet was extracted from archweb's style sheet.
Signed-off-by: Lukas Fleischer
This can be used as a shortcut to search for other packages in the same
category.
Signed-off-by: Lukas Fleischer
On Fri, Nov 4, 2011 at 8:42 AM, Lukas Fleischer
This can be used as a shortcut to search for other packages in the same category.
Signed-off-by: Lukas Fleischer
Signed-off-by: Dan McGee --- web/template/pkg_details.php | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/web/template/pkg_details.php b/web/template/pkg_details.php index c8e703c..f5ed32a 100644 --- a/web/template/pkg_details.php +++ b/web/template/pkg_details.php @@ -24,7 +24,7 @@ if ($uid == $row["MaintainerUID"] or
} else { - $edit_cat = $row['Category']; + $edit_cat = '' . $row['Category'] . '</a>'; }
if ($row["SubmitterUID"]) { -- 1.7.7.2
Synchronize the way we display dependencies, required by packages and
sources with archweb.
Signed-off-by: Lukas Fleischer
Also, relabel the "Tarball" link to "Download tarball" and "PKGBUILD" to
"Preview PKGBUILD" to clarify that your shouldn't use the PKGBUILD to
build a package.
Signed-off-by: Lukas Fleischer
No need to show a full RFC 2822-compliant date here. Instead, display
date, hours and minutes for "Last Updated" and "First Submitted" fields
and display the date only for the out-of-date time stamp.
Signed-off-by: Lukas Fleischer
On Fri, Nov 4, 2011 at 8:42 AM, Lukas Fleischer
No need to show a full RFC 2822-compliant date here. Instead, display date, hours and minutes for "Last Updated" and "First Submitted" fields and display the date only for the out-of-date time stamp.
Signed-off-by: Lukas Fleischer
Signed-off-by: Dan McGee --- web/template/pkg_details.php | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/web/template/pkg_details.php b/web/template/pkg_details.php index de398d8..d8d1e4b 100644 --- a/web/template/pkg_details.php +++ b/web/template/pkg_details.php @@ -59,9 +59,9 @@ $license = empty($row['License']) ? $msg : $row['License']; $urlpath = URL_DIR . substr($row['Name'], 0, 2) . "/" . $row['Name'];
# Print the timestamps for last updates -$updated_time = ($row["ModifiedTS"] == 0) ? $msg : gmdate("r", intval($row["ModifiedTS"])); -$submitted_time = ($row["SubmittedTS"] == 0) ? $msg : gmdate("r", intval($row["SubmittedTS"])); -$out_of_date_time = ($row["OutOfDateTS"] == 0) ? $msg : gmdate("r", intval($row["OutOfDateTS"])); +$updated_time = ($row["ModifiedTS"] == 0) ? $msg : gmdate("Y-m-d H:i", intval($row["ModifiedTS"])); +$submitted_time = ($row["SubmittedTS"] == 0) ? $msg : gmdate("Y-m-d H:i", intval($row["SubmittedTS"])); +$out_of_date_time = ($row["OutOfDateTS"] == 0) ? $msg : gmdate("Y-m-d", intval($row["OutOfDateTS"]));
# Save package dependencies, "required by" and sources $deps = package_dependencies($row["ID"]); -- 1.7.7.2
On Fri, Nov 4, 2011 at 8:42 AM, Lukas Fleischer
This patch set basically syncs the package details layout with what archweb uses and makes the rendered page, as well as the source code, look cleaner and more consistent.
I plan to put more efforts in cleaning up our HTML and making the AUR integrate well with the rest of www.archlinux.org. We might eventually just use "archweb.css" with a few AUR-specific extensions. I'd be happy to ensure compatibility on this and keeping differences to a minimum or zero.
Any objections from the "Arch Linux/AUR segregation" front..?
Dan, any objections? Nope. I didn't look in detail at all of the patches but generally seems fine to me, as long as AUR is prominent somewhere near the top of the page and in the page title.
Lukas Fleischer (5): pkg_details.php: Use a table for package details pkg_details.php: Add link to category search pkg_details.php: Sync metadata layout with archweb pkg_details.php: Sync package actions layout with archweb pkg_details.php: Use sane format for date strings I realized I signed off on these date strings, but also noticed the dates on the front page stats and such are in the ugly format- might want to touch those up too.
web/html/css/arch.css | 3 - web/html/css/containers.css | 81 +++++++++++++++ web/template/pkg_details.php | 226 +++++++++++++++++++++--------------------- 3 files changed, 196 insertions(+), 114 deletions(-)
-- 1.7.7.2
On Fri, Nov 04, 2011 at 10:28:33AM -0500, Dan McGee wrote:
On Fri, Nov 4, 2011 at 8:42 AM, Lukas Fleischer
wrote: This patch set basically syncs the package details layout with what archweb uses and makes the rendered page, as well as the source code, look cleaner and more consistent.
I plan to put more efforts in cleaning up our HTML and making the AUR integrate well with the rest of www.archlinux.org. We might eventually just use "archweb.css" with a few AUR-specific extensions. I'd be happy to ensure compatibility on this and keeping differences to a minimum or zero.
Any objections from the "Arch Linux/AUR segregation" front..?
Dan, any objections? Nope. I didn't look in detail at all of the patches but generally seems fine to me, as long as AUR is prominent somewhere near the top of the page and in the page title.
I rebased all of these patches and refactored several parts of the AUR website, based on the archweb layout. You can find these changes in my "archweb-integration" branch [1]. Note that I might rebase this branch from time to time, so be prepared when setting up a tracking branch. The most important parts are already fixed but there's still a lot of things to do. Comments and suggestions welcome!
Lukas Fleischer (5): pkg_details.php: Use a table for package details pkg_details.php: Add link to category search pkg_details.php: Sync metadata layout with archweb pkg_details.php: Sync package actions layout with archweb pkg_details.php: Use sane format for date strings I realized I signed off on these date strings, but also noticed the dates on the front page stats and such are in the ugly format- might want to touch those up too.
web/html/css/arch.css | 3 - web/html/css/containers.css | 81 +++++++++++++++ web/template/pkg_details.php | 226 +++++++++++++++++++++--------------------- 3 files changed, 196 insertions(+), 114 deletions(-)
-- 1.7.7.2
[1] http://git.cryptocrack.de/aur.git/?h=archweb-integration
participants (2)
-
Dan McGee
-
Lukas Fleischer