Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 361035 - front page lacks direct links to individual stories
Summary: front page lacks direct links to individual stories
Status: RESOLVED OBSOLETE
Alias: None
Product: Websites
Classification: Unclassified
Component: [OLD] Articles (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Infrastructure
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-29 04:17 UTC by SpanKY
Modified: 2015-04-02 11:58 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
361035-link-on-news-items.patch (361035-link-on-news-items.patch,573 bytes, patch)
2011-03-31 11:32 UTC, Jan Kundrát (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description SpanKY gentoo-dev 2011-03-29 04:17:48 UTC
i want to get the direct link to a news story, but none of the "current" articles have links that let you get at it.

http://www.gentoo.org/

clearly they exist because if you go to the bottom of the page, there are direct links to old articles.
Comment 1 nm (RETIRED) gentoo-dev 2011-03-29 08:18:26 UTC
Infra, I guess. Certainly not the GDP; we don't do anything but /doc/.

I dunno who setup the "archiving" feature, or where, or how the links would be added to the individual articles.

If there's an easy solution that doesn't involve extending GuideXML or writing more code inside the XML news item itself, then I'm all for it. Maybe a script or some other trickery to look at the filename in /news/foo.xml that generates a URI for it, while pulling the title from the <title> element in the XML file. It would make the title clickable with an <a href="foobar.xml">Title here</a> thing.
Comment 2 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2011-03-29 13:08:55 UTC
er, I doubt anyone in infra knows about this besides Robin. IIRC the "new" homepage was created by Xavier, who is no longer around.
Comment 3 Alec Warner (RETIRED) archtester gentoo-dev Security 2011-03-29 16:43:01 UTC
I'm 99% sure this is a 1 or 2 line xsl change.  Unless robin wants to do it I will take a stab at it ;)

-A
Comment 4 Jan Kundrát (RETIRED) gentoo-dev 2011-03-31 11:32:48 UTC
Created attachment 267969 [details, diff]
361035-link-on-news-items.patch

This is an untested patch which should do what is requested here. Sorry, I don't have the dynamic stuff (dyn-index etc) available at the moment, and am bit short on time.
Comment 5 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2011-04-01 04:49:33 UTC
It should work, I've committed it.
Comment 6 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2011-04-01 05:52:41 UTC
The links work, but it's not as nice now in CSS, can that please get fixed too?
Comment 7 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2011-04-01 05:53:12 UTC
Also, the links for GLSA, new packages and blogposts are wrong.
Comment 8 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2011-06-09 07:15:35 UTC
jkt/antarus: reping please fix the GLSA/packages/blogposts links.
Comment 9 SpanKY gentoo-dev 2012-06-15 20:16:38 UTC
here's the simple fix for the css

--- main.css    28 Sep 2008 13:29:40 -0000      1.21
+++ main.css    15 Jun 2012 17:33:21 -0000
@@ -40,6 +40,11 @@ dt {
        font-family: sans-serif, Verdana, Arial, Helvetica;
 }
 
+.newshead a:link { color: white; text-decoration: none; }
+.newshead a:visited { color: white; text-decoration: none; }
+.newshead a:hover { color: white; text-decoration: underline; }
+.newshead a:active { color: white; text-decoration: underline; }
+
 a.highlight:link { color: #00ff00; text-decoration: none; }
 a.highlight:visited { color: #00ff00; text-decoration: none; }
 a.highlight:hover { color: #00ff00; text-decoration: underline; }