git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH 2/3] gitweb: Allow for href() to be used for projectless links

From
Jakub Narebski <jnareb@gmail.com>
Date
Sep 15, 2006, 07:21 UTC
Message-ID
<eedk96$tja$2@sea.gmane.org>
In-Reply-To
<7vzmd1zma7.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano wrote:
Show 9 quoted lines
> Jakub Narebski <jnareb@gmail.com> writes:
> 
>> Change adding project to params if $params{"project"} is false
>> to adding project to params if it not exist. It allows for href()
>> to be used for projectless links by using "project=>undef" as
>> argument, while still adding project to params by default
>> in the most common case.
> 
> This did not parse very well, at least for me.

O.K. let me rephrase it. Before this patch href() ensured that we had p=<project> among CGI params, by adding it if it was not provided. Some actions don't need project parameter, namely "project_list", "project_index" and "opml". Moreover "project_list" view was sed as a _home_ link, i.e. default action when project was not provided (just like summary is default action when project is provided).

The change introduced by this patch allow to use href() to generate links also for "project_list" and "opml" views. The only links which do not use href() are anchor links, and $home_link link.

-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git
Previous: Junio C HamanoNext: Jakub Narebski
Message 5 of 8 in “Add git_project_index, improve href()”
  1. 0/3 Add git_project_index, improve href()Jakub Narebski, Sep 15, 2006
  2. 1/3 gitweb: Add git_project_index for generating index.auxJakub Narebski, Sep 15, 2006
  3. 2/3 gitweb: Allow for href() to be used for projectless linksJakub Narebski, Sep 15, 2006
  4. Junio C HamanoSep 15, 2006
  5. Jakub NarebskiSep 15, 2006
  6. 3/3 gitweb: Add link to "project_index" view to "project_list" pageJakub Narebski, Sep 15, 2006
  7. 3/3 gitweb: Add link to "project_index" view to "project_list" pageJakub Narebski, Sep 15, 2006
  8. 2/3 gitweb: Allow for href() to be used for links without project paramJakub Narebski, Sep 15, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.