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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user