定制Gerrit主页:徽标和颜色 [英] Customize gerrit home page:logo and color

查看:191
本文介绍了定制Gerrit主页:徽标和颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经安装并配置了Gerrit,我看到它具有白色背景,而不是绿色,如 https://codereview. qt-project.org (在最新版本中可能从绿色更改为白色),但是想知道我们是否可以自定义颜色并添加徽标.

I have installed and configured gerrit, I see it has white color background instead of green like https://codereview.qt-project.org (probably changed from green to white in recent versions) but, want to know if we can customize color and add a logo.

来自 gerrit文档我看到我们必须创建下面的文件并将它们放置在$ site_path/etc/中,但是,我不确定如何创建它们,HTML不好.

From gerrit-documentation I see we have to create below files and place them in $site_path/etc/ but, I am not sure how to create them, I am bad in HTML.

$site_path/etc/GerritSiteHeader.html and 
$site_path/etc/GerritSiteFooter.html
$site_path/etc/GerritSite.css
$site_path/static/logo.png

  1. 是否可以更改Gerrit页面的颜色,我的意思是从默认的白色更改为其他颜色?

  1. Is it possible to change the color of gerrit pages, I mean from default white to any other?

请向我提供示例GerritSiteHeader.html和GerritSiteFooter.html,以便可以对其进行更改并在我的gerrit中使用.我以前没有用过HTML.

Please provide me the sample GerritSiteHeader.html and GerritSiteFooter.html so that I can make changes to them and use in my gerrit. I haven't used HTML before.

推荐答案

  1. gerrit.conf中有一些设置可以更改颜色:主题设置.
  2. 我们在 review.typo3.org 上使用的主题文件的示例::

  1. There are couple of settings to change colors in gerrit.conf: theme settings.
  2. An example for our theme files we are using on review.typo3.org: GerritSiteHeader.html:

<h2 class="typo3-logo">
<a href="/"><img src="/static/typo3-logo.cache.png" alt="TYPO3" /></a>
</h2>

我不会粘贴我们的CSS文件(GerritSite.css),因为它不会给您带来很大帮助.

I won't paste our CSS file (GerritSite.css), as it won't help you a lot.

如果您写下来要放在页眉或页脚中的内容,则可以为您提供帮助.但是,当您说自己不懂HTML(这很容易..)并且不说您想要什么时,很难告诉您确切的解决方案.我至少希望 https://review.typo3.org 给您印象,如何定制它.找到一个可以写5行HTML或CSS的人应该很容易.

If you write down, what you want to put in the header or footer, one can help you. But when you say you don't know HTML (it's very easy..) and don't say, what you want, it's hard to tell you the exact soluation. I at least hope that https://review.typo3.org gives you an impression, how you can customize it. Finding somebody to write you 5 lines of HTML or CSS should be easy.

这篇关于定制Gerrit主页:徽标和颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆