gitiles and gitiles plugin

210 views
Skip to first unread message

Björn Pedersen

unread,
Aug 13, 2015, 5:01:02 AM8/13/15
to Repo and Gerrit Discussion
Hi,

I have some troubles with the gitiles plugin:

I try to get some custom styling for the gitiles pages, but run into troubles:

It seems there is a customTemplate config var and a customHeader var to select an alternative heading.
But that seems not to work the way I tried it:
  in etc/gitiles.config:
       [gitiles]
              customTemplates =some path
              customHeader= my name

and a soy  file defining my header variant. But I get no change...

Then I tried to  build a custom gitiles with a modifed header template. The template then takes effect.
But I observed 404 for all http://localhost:8088/plugins/gitiles/+static/*.css files,
so the  styling is not really applied.

And hints and ideas?

Björn

Doug Kelly

unread,
Aug 27, 2015, 11:34:32 AM8/27/15
to Repo and Gerrit Discussion
If you're running on a Gitiles plugin from 2.11/master around this time, the plugin build was broken to a point where it would not include static resources with the plugin. This was fixed by the change:

Try updating to at least that and let me know if it works!  I'm not sure why the gitiles.config would be ignoring those header directives, though; I've not personally tried them myself.

--Doug

Björn Pedersen

unread,
Aug 27, 2015, 12:09:22 PM8/27/15
to Repo and Gerrit Discussion
Hi,

Yes, the static Ressources are working again.

The custom template is found as well, just setting the variant does not seem to work.

Bjoern

Björn Pedersen

unread,
Oct 2, 2015, 10:35:06 AM10/2/15
to Repo and Gerrit Discussion
Hi,

I am still struggling to get the customHeader setting to work.  From reading the code again it seems the setting is taken from the git-config per repository. But somehow that does not seem to work, either.

Björn
Reply all
Reply to author
Forward
0 new messages