[aur-dev] [PATCH 4/4] Add dashboard

Lukas Fleischer lfleischer at archlinux.org
Sat Feb 4 08:41:57 UTC 2017


On Sat, 04 Feb 2017 at 00:50:32, Lukas Fleischer wrote:
> For logged in users, the home page is replaced with an overview of the
> packages the user maintains or co-maintains.
> 
> Signed-off-by: Lukas Fleischer <lfleischer at archlinux.org>
> ---
>  web/html/home.php       | 34 +++++++++++++++++++++++++++++++++-
>  web/template/header.php |  7 ++++---
>  2 files changed, 37 insertions(+), 4 deletions(-)
> 
> diff --git a/web/html/home.php b/web/html/home.php
> index 475370b..8d6884b 100644
> --- a/web/html/home.php
> +++ b/web/html/home.php
> @@ -8,13 +8,42 @@ check_sid();
>  
>  include_once('stats.inc.php');
>  
> -html_header( __("Home") );
> +if ($_COOKIE["AURSID"]) {

There was a missing isset() call here and in several other places below.
I pushed an updated version to pu; thanks to Mark Weiman for letting me
know.

> +       html_header( __("Dashboard") );
> +} else {
> +       html_header( __("Home") );
> +}
> [...]


More information about the aur-dev mailing list