google / gitiles

A simple browser for Git repositories.
https://gerrit.googlesource.com/gitiles/
Other
582 stars 174 forks source link

Add option for embedded (iframe) Gitiles views. #63

Open spearce opened 7 years ago

spearce commented 7 years ago

Originally reported on Google Code with ID 65

It is useful for applications wishing to embed Gitiles data to have access to a trimmed-down
form of Gitiles pages that omit specifically the Gitiles header and footer, focusing
only on the requested content. This is useful for applications wishing to embed Gitiles
data in (for example) an iframe.

The ability to render a embedded view should be independent of the content of that
view. In other words, the parameter should not use the "pretty" parameter. Instead,
a "view" parameter is proposed. The default "view" value is the current view. However,
alternative views can be supplied. In this case, the iframe-embeddable view would use
"?view=embed".

Reported by None on 2014-09-17 16:23:32

spearce commented 7 years ago
It is useful for applications wishing to embed Gitiles data to have access to a trimmed-down
form of Gitiles pages that omit specifically the Gitiles header and footer, focusing
only on the requested content. This is useful for applications wishing to embed Gitiles
data in (for example) an iframe.

The ability to render a embedded view should be independent of the content of that
view. In other words, the parameter should not use the "pretty" parameter. Instead,
a "view" parameter is proposed. The default "view" value is the current view. However,
alternative views can be supplied. In this case, the iframe-embeddable view would use
"?view=embed".

Reported by None on 2014-09-17 16:23:32

spearce commented 7 years ago
We talked about this privately and basically my response is "go for it" :)

Reported by None on 2014-09-19 15:01:26