layerindex-web/layerindex
Paul Eggleton 6cd47bdd82 Handle web interfaces with different URL schemes
Some git web interfaces use different paths for files (blobs) and
directories when it comes to browsing; this means we need to have a
separate field for the base URL for files.

Additionally, Gitweb typically puts the path within the URL instead of
at the end (although the parameters can be reordered) and cannot handle
the file parameter (f=) being specified with no value. So, to add some
flexibility, add the ability to use a positional macro %path% to
optionally specify where to put the path. If needed, square brackets
can be used in conjunction with %path% to exclude parts of the string
when there is no path, i.e. we want to browse the root. For example, the
following base URL:

  http://git.example.com/?p=somerepo.git;a=tree;[;f=%path%];hb=HEAD

would be translated to this with a path of "path/to/dir":

  http://git.example.com/?p=somerepo.git;a=tree;f=path/to/dir;hb=HEAD

and this if no path were specified:

  http://git.example.com/?p=somerepo.git;a=tree;hb=HEAD

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2013-02-23 20:33:24 +00:00
..
static Layer details style changes 2013-02-22 17:11:20 +00:00
templatetags Improve pagination for recipe list 2013-02-19 18:28:48 +00:00
__init__.py Initial commit of layerindex-web 2013-02-13 12:09:57 +00:00
about.html Add a basic about page 2013-02-20 11:20:11 +00:00
admin.py Add stacked dependency/maintainer records to layer in admin 2013-02-23 14:16:56 +00:00
detail.html Show layer notes records as alerts on layer detail 2013-02-22 17:49:50 +00:00
forms.py Handle web interfaces with different URL schemes 2013-02-23 20:33:24 +00:00
index.html Improve pagination for recipe list 2013-02-19 18:28:48 +00:00
models.py Handle web interfaces with different URL schemes 2013-02-23 20:33:24 +00:00
rawrecipes.txt Initial commit of layerindex-web 2013-02-13 12:09:57 +00:00
recipedetail.html Initial version of recipe detail page 2013-02-19 17:22:40 +00:00
recipes.html Improve pagination for recipe list 2013-02-19 18:28:48 +00:00
simplesearch.py Improve recipe search 2013-02-19 17:22:45 +00:00
submitemail.txt Initial commit of layerindex-web 2013-02-13 12:09:57 +00:00
submitlayer.html Initial commit of layerindex-web 2013-02-13 12:09:57 +00:00
submitthanks.html Initial commit of layerindex-web 2013-02-13 12:09:57 +00:00
update.py Clear default value of DESCRIPTION before parsing recipes 2013-02-18 16:29:01 +00:00
urls.py Add a basic about page 2013-02-20 11:20:11 +00:00
views.py Add a basic about page 2013-02-20 11:20:11 +00:00