git-arr/views
Eric Sunshine 93b161c23e views: fix broken URLs involving hierarchical branch names
Git branch names can be hierarchical (for example, "wip/parser/fix"),
however, git-arr does not take this into account when formulating URLs
on branch, tree, and blobs pages. These URLs are dysfunctional because
it is assumed incorrectly that a single "../" is sufficient to climb
over the branch name when computing relative paths to resources higher
in the hierarchy. This problem manifests as failure to load static
resources (stylesheet, etc.), broken links to commits on branch pages,
and malfunctioning breadcrumb trails.

Fix this problem by computing the the proper number of "../" based upon
the branch name, rather than assuming that a single "../" will work
unconditionally. (This is analogous to the treatment already given to
hierarchical pathnames in tree and blob views.)

Signed-off-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Alberto Bertogli <albertito@blitiri.com.ar>
2015-01-11 21:18:22 +00:00
..
blob.html views: fix broken URLs involving hierarchical branch names 2015-01-11 21:18:22 +00:00
branch.html views: fix broken URLs involving hierarchical branch names 2015-01-11 21:18:22 +00:00
commit-list.html Initial commit 2012-11-10 17:49:54 +00:00
commit.html Fix committer field in the commit view 2013-11-03 10:57:54 +00:00
index.html Show the age of a repository in the index, via javascript 2013-11-02 22:18:33 +00:00
paginate.html views: branch/paginate: fix incorrectly enabled "next" link 2015-01-11 21:18:22 +00:00
summary.html views: summary: suppress extra horizontal rule when no "master" branch 2015-01-11 21:18:06 +00:00
tree.html views: fix broken URLs involving hierarchical branch names 2015-01-11 21:18:22 +00:00