[Scummvm-git-logs] scummvm-sites web-planet -> be2edaf398e0f5bddd9b9e748b33c50a5f22a2b2
sev-
noreply at scummvm.org
Sun Jun 1 20:14:48 UTC 2025
This automated email contains information about 2 new commits which have been
pushed to the 'scummvm-sites' repo located at https://api.github.com/repos/scummvm/scummvm-sites .
Summary:
15d2d85625 PLANET: Replicate old planet list, showing last 30days of items
be2edaf398 JANITORIAL: Fix line endings
Commit: 15d2d856258242d71784a6f98f0bc6e409033ff8
https://github.com/scummvm/scummvm-sites/commit/15d2d856258242d71784a6f98f0bc6e409033ff8
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2025-06-01T22:13:59+02:00
Commit Message:
PLANET: Replicate old planet list, showing last 30days of items
Changed paths:
planet-scummvm/planet.scummvm.html.erb
diff --git a/planet-scummvm/planet.scummvm.html.erb b/planet-scummvm/planet.scummvm.html.erb
index 3f5006f..dd1b622 100644
--- a/planet-scummvm/planet.scummvm.html.erb
+++ b/planet-scummvm/planet.scummvm.html.erb
@@ -23,7 +23,12 @@
<!-- 2) list full articles -->
<%
- items = site.items.latest.limit(10)
+
+# Fetch items newer than 30 days and sort them by updated date, newest first.
+ items = site.items.select { |item|
+ item.updated > 30.days.ago
+ }.sort { |a, b| b.updated <=> a.updated }
+
index = 0
ItemCursor.new( items ).each do |item, new_date, new_feed|
index += 1
Commit: be2edaf398e0f5bddd9b9e748b33c50a5f22a2b2
https://github.com/scummvm/scummvm-sites/commit/be2edaf398e0f5bddd9b9e748b33c50a5f22a2b2
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2025-06-01T22:14:37+02:00
Commit Message:
JANITORIAL: Fix line endings
Changed paths:
planet-scummvm/planet.scummvm.html.erb
diff --git a/planet-scummvm/planet.scummvm.html.erb b/planet-scummvm/planet.scummvm.html.erb
index dd1b622..7c7cba5 100644
--- a/planet-scummvm/planet.scummvm.html.erb
+++ b/planet-scummvm/planet.scummvm.html.erb
@@ -1,93 +1,93 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <meta http-equiv="Content-Style-Type" content="text/css" />
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <meta name='generator' content='<%= Pluto.generator %>'>
-
- <title><%= site.title %></title>
-
- <%= stylesheet_link_tag 'css/planet.scummvm' %>
-</head>
-<body>
-
-<div id="page">
- <div id="header">
- <h1 id="top"><a href="https://planet.scummvm.org/"><img src="i/scummvm_logo.png" alt="ScummVM Planet"></a></h1>
- </div>
- <div id="innerwrap">
- <div id="content">
-
-<!-- 2) list full articles -->
-
-<%
-
-# Fetch items newer than 30 days and sort them by updated date, newest first.
- items = site.items.select { |item|
- item.updated > 30.days.ago
- }.sort { |a, b| b.updated <=> a.updated }
-
- index = 0
- ItemCursor.new( items ).each do |item, new_date, new_feed|
- index += 1
-%>
-
-<div class="article">
-
- <h2 class="article-title">
- <%= link_to item.title, item.url %>
- </h2>
-
- <p class="article-info">
- <span class="date"><%= item.updated.strftime('%m/%d/%y %H:%M') %></span>
-
- |
-
- Source:
- <%= link_to item.feed.title, item.feed.url %>
- </p>
-
- <div class="article-content">
-
- <!-- note: content goes first; than try summary
- -->
- <% if item.content %>
- <%= item.content %>
- <% else %>
- -/-
- <% end %>
-
- </div>
-</div> <!-- article -->
-
-<% end %><!-- each item -->
-
-</div> <!-- content -->
-
-<div id="sidebar" class="aside">
- <div id="sidebar-people" class="section">
- <h2>People (<%= site.feeds.count() %>)</h2>
- <ul>
- <% site.feeds.each do |feed| %>
- <li>
- <%= link_to( image_tag('i/feed-icon-10x10.png'), feed.feed_url ) %>
- <%= link_to feed.title, feed.url %>
- </li>
- <% end %>
- </ul>
- </div>
-
- <p class='small'>
- <% if site.fetched %>
- <%= site.fetched.strftime('%A, %d. %B %Y %H:%M') %>
- <% end %>
- </p>
-</div>
-
-</div>
-</div>
-
-</body>
-</html>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+ <meta http-equiv="Content-Style-Type" content="text/css" />
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+ <meta name='generator' content='<%= Pluto.generator %>'>
+
+ <title><%= site.title %></title>
+
+ <%= stylesheet_link_tag 'css/planet.scummvm' %>
+</head>
+<body>
+
+<div id="page">
+ <div id="header">
+ <h1 id="top"><a href="https://planet.scummvm.org/"><img src="i/scummvm_logo.png" alt="ScummVM Planet"></a></h1>
+ </div>
+ <div id="innerwrap">
+ <div id="content">
+
+<!-- 2) list full articles -->
+
+<%
+
+# Fetch items newer than 30 days and sort them by updated date, newest first.
+ items = site.items.select { |item|
+ item.updated > 30.days.ago
+ }.sort { |a, b| b.updated <=> a.updated }
+
+ index = 0
+ ItemCursor.new( items ).each do |item, new_date, new_feed|
+ index += 1
+%>
+
+<div class="article">
+
+ <h2 class="article-title">
+ <%= link_to item.title, item.url %>
+ </h2>
+
+ <p class="article-info">
+ <span class="date"><%= item.updated.strftime('%m/%d/%y %H:%M') %></span>
+
+ |
+
+ Source:
+ <%= link_to item.feed.title, item.feed.url %>
+ </p>
+
+ <div class="article-content">
+
+ <!-- note: content goes first; than try summary
+ -->
+ <% if item.content %>
+ <%= item.content %>
+ <% else %>
+ -/-
+ <% end %>
+
+ </div>
+</div> <!-- article -->
+
+<% end %><!-- each item -->
+
+</div> <!-- content -->
+
+<div id="sidebar" class="aside">
+ <div id="sidebar-people" class="section">
+ <h2>People (<%= site.feeds.count() %>)</h2>
+ <ul>
+ <% site.feeds.each do |feed| %>
+ <li>
+ <%= link_to( image_tag('i/feed-icon-10x10.png'), feed.feed_url ) %>
+ <%= link_to feed.title, feed.url %>
+ </li>
+ <% end %>
+ </ul>
+ </div>
+
+ <p class='small'>
+ <% if site.fetched %>
+ <%= site.fetched.strftime('%A, %d. %B %Y %H:%M') %>
+ <% end %>
+ </p>
+</div>
+
+</div>
+</div>
+
+</body>
+</html>
More information about the Scummvm-git-logs
mailing list