Render per-project themes on the client side

Always include the relevant <style>/<div> tags in the host page, even
if they are empty. Have Gerrit store the sitewide values, and swap
them in and out when loading project-specific screens.

Change-Id: Iab6d2c91bf636ef361e2031dd39904e0c7e9bf41
This commit is contained in:
Dave Borowitz
2013-04-09 14:48:42 -07:00
parent 1e49e143ec
commit de117a33fb
12 changed files with 183 additions and 36 deletions

View File

@@ -21,4 +21,13 @@
<when-property-is name="user.agent" value="ie8"/>
</any>
</replace-with>
<replace-with class="com.google.gerrit.client.Themer.ThemerIE">
<when-type-is class="com.google.gerrit.client.Themer" />
<any>
<when-property-is name="user.agent" value="ie6"/>
<when-property-is name="user.agent" value="ie8"/>
<when-property-is name="user.agent" value="ie9"/>
</any>
</replace-with>
</module>