From patchwork Thu Jul 1 00:05:45 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Luis Felipe X-Patchwork-Id: 30892 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 1E97227BC81; Thu, 1 Jul 2021 08:26:56 +0100 (BST) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id CDCF327BC78 for ; Thu, 1 Jul 2021 08:26:54 +0100 (BST) Received: from localhost ([::1]:36534 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lyr64-00050Z-Ag for patchwork@mira.cbaines.net; Thu, 01 Jul 2021 03:26:53 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45476) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lyr3M-00050L-KJ for guix-patches@gnu.org; Thu, 01 Jul 2021 03:24:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:47889) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lyr3L-0001y0-Sk for guix-patches@gnu.org; Thu, 01 Jul 2021 03:24:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lyr3L-00009W-6K for guix-patches@gnu.org; Thu, 01 Jul 2021 03:24:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49310] website: Redesign video pages Resent-From: Luis Felipe Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 01 Jul 2021 07:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 49310 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 49310@debbugs.gnu.org X-Debbugs-Original-To: Luis Felipe via Guix-patches Received: via spool by submit@debbugs.gnu.org id=B.1625124188513 (code B ref -1); Thu, 01 Jul 2021 07:24:01 +0000 Received: (at submit) by debbugs.gnu.org; 1 Jul 2021 07:23:08 +0000 Received: from localhost ([127.0.0.1]:59436 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lyr2R-00008D-4t for submit@debbugs.gnu.org; Thu, 01 Jul 2021 03:23:07 -0400 Received: from lists.gnu.org ([209.51.188.17]:52490) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lykEI-0003oL-4D for submit@debbugs.gnu.org; Wed, 30 Jun 2021 20:06:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52840) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lykEG-0001j2-GN for guix-patches@gnu.org; Wed, 30 Jun 2021 20:06:53 -0400 Received: from mail-0201.mail-europe.com ([51.77.79.158]:37974) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lykDv-0007vW-Lz for guix-patches@gnu.org; Wed, 30 Jun 2021 20:06:50 -0400 Date: Thu, 01 Jul 2021 00:05:45 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1625097948; bh=dC8OocND698EvuJCXtVhloY3npVvA0gUEI4n0SEchk4=; h=Date:To:From:Reply-To:Subject:From; b=QPA8FVlxVA7AmAFqZfA1itNTzmjYCEm+7ZAE1miiQw7ksglXJteckEwgAx7Gqz+g0 wnO/sAQl2HoDI/zsKiUHaRnDgdOBKiu36qKexgfkZtUV/RyGeVKmVBfLZBqaio0I3l pW2cvR0DBiKWhHwfDG6Q3g7iDBbSImMQd4foiKRo= Message-ID: MIME-Version: 1.0 Received-SPF: pass client-ip=51.77.79.158; envelope-from=luis.felipe.la@protonmail.com; helo=mail-0201.mail-europe.com X-Mailman-Approved-At: Thu, 01 Jul 2021 03:23:04 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" Reply-to: Luis Felipe X-ACL-Warn: , Luis Felipe via Guix-patches X-Patchwork-Original-From: Luis Felipe via Guix-patches via From: Luis Felipe X-getmail-retrieved-from-mailbox: Patches Hi, The attached patch introduces a new design for video pages. Some things I wanted to add but couldn't: + Sort videos/playlists in reverse chronological order. + Display only instructional videos in the home page. Currently, the videos are displayed in reverse chronological order, but by reversing the list of videos and playlists, not checking their dates. The home page does show instructional videos but just because they happen to be the most recent videos. The reason why I couldn't add these things is that while writing a "videos/reverse-chronological" and "videos/get-video" procedures, I found it very difficult to make them handle both Video records and Playlist records. I thought that redefining both the Video type and the Playlist type as GOOPS classes would make things easier, but then I ran out of time to do that. So I'm providing this patch as is hoping that it will be usable. At least the user facing part should be OK. And maybe the missing parts can be added later? Anywho, here it goes... --- Luis Felipe López Acevedo https://luis-felipe.gitlab.io/ From 4a75a8f70bef820ad6824f1bf91de0e4f561be7b Mon Sep 17 00:00:00 2001 From: Luis Felipe Date: Tue, 22 Jun 2021 18:56:28 -0500 Subject: [PATCH] website: Redesign video pages. This change introduces a multipage catalog of videos and playlists, similar to blog posts and packages pages. Modified files: * website/README (Adding videos): New section. * website/apps/base/builder.scm (home-builder): Pass 4 videos and/or playlists to the home page template. * website/apps/base/templates/home.scm (home-t): Display videos and playlists in the Instructional videos section. Move the ALL PACKAGES button below the screenshots. * website/apps/media/builder.scm (videos-builder): Use the new list of videos. Put videos in new paths (/LANG/videos/YYYY/video-slug/). (video-list-builder): Build the pages of the catalog of videos and playlists. * website/apps/media/data.scm (videos): New list of videos plus playlists. (playlist): Remove in favor of the new videos list. * website/apps/media/templates/components.scm: (playlist-preview, video-track): New components. (video-preview): Redesign video presentation. Add new keyword parameter, "playing?", to indicate whether the video is the currently playing video in a playlist. (video->shtml, video-content): Removed. Not necessary in the new design. * website/apps/media/templates/video.scm (video-t): Redesign it. * website/apps/media/templates/video-list.scm (video-list-t): Likewise. * website/apps/media/types.scm (): New record type. (